Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running docker image janeczku/powerdns-exporter #13

Open
awsmaythem opened this issue Aug 24, 2021 · 1 comment
Open

running docker image janeczku/powerdns-exporter #13

awsmaythem opened this issue Aug 24, 2021 · 1 comment

Comments

@awsmaythem
Copy link

awsmaythem commented Aug 24, 2021

Hello

When i try
docker run -p 9120:9120 janeczku/powerdns-exporter -api-url="http://host:port/" -api-key="api-key"
the response :
level=fatal msg="Could not fetch PowerDNS server info: Not Found" source="powerdns_exporter.go:332"
My host and port and api-key is correct i tested the api by
curl -H 'X-API-Key: api-key' http://host:port/api/v1/servers/localhost/zones/example.org. | jq .
there is a response back.
how to solve it?

my os : centos 7
powerdns 4.5.1

@MichiMeyer
Copy link

funnily enough I've just had the same. I could resolve that with given api-url the full url as /api/v1/ seems to need set there aswell. So just modify -api-url="http://host:port/" to -api-url="http://host:port/api/v1/" solved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants