janeczku / powerdns_exporter

:chart_with_upwards_trend: Prometheus metrics exporter for PowerDNS
Apache License 2.0
37 stars 36 forks source link

Clarification regarding api url in the documentation #4

Closed pentiumoverdrive closed 7 years ago

pentiumoverdrive commented 7 years ago

In pdns 4.0.1 you would access the api via a different URL that is suggested, its:

./powerdns_exporter -api-url="http://localhost:8081/api/v1/" -api-key='mykey"

A minor documentation thing, but the usage example is missing a "-" for api-url (which should also show /api/v1:

go run powerdns_exporter api-url="http://<HOST>:<API-PORT>/api/v1" -api-key="<YOUR_API_KEY>"

Now its working, great exporter btw :)

pentiumoverdrive commented 7 years ago

didn't read the documentation good enough :)