Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
389ds_exporter
.build
.tarballs
bin
.vscode
.vscode
config.*
.docker
7 changes: 0 additions & 7 deletions Dockerfile

This file was deleted.

31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,34 @@ sudo chown -R go-ldap-metrics-exporter:go-ldap-metrics-exporter /opt/go-ldap-met
```

The go-ldap-metrics-exporter service can then be started using the service file provided in the repository. The service file is named `go-ldap-metrics-exporter.service`.

## Configuration

The configuration file is a .json file, and must contain the following fields:

```json
{
"ldap": {
"address": "ldap://localhost",
"fullDn": "uid=<service-user-account>,ou=<org-unit-of-service-user>,dc=local,dc=domain,dc=com",
"baseDn": "dc=local,dc=domain,dc=com",
"password": "admin"
},
"scrape": {
"interval": 60
},
"server": {
"active": true,
"address": "localhost",
"port": "9496"
},
"log": {
"level": "info",
"json": true
},
"export": {
"file": "/home/adve/go-ldap-metrics-exporter/textfile_collector/metrics.prom",
"interval": 300
}
}
```
26 changes: 0 additions & 26 deletions config.json

This file was deleted.

13 changes: 0 additions & 13 deletions internal/pkg/common/format.go

This file was deleted.

57 changes: 0 additions & 57 deletions internal/pkg/common/gauge.go

This file was deleted.

118 changes: 0 additions & 118 deletions internal/pkg/ldap/query.go

This file was deleted.

36 changes: 0 additions & 36 deletions internal/pkg/prometheus/init.go

This file was deleted.

Loading
Loading