{"id":13550904,"url":"https://github.com/fuze/powerdns_exporter","last_synced_at":"2025-04-03T01:30:40.617Z","repository":{"id":45591159,"uuid":"185690708","full_name":"fuze/powerdns_exporter","owner":"fuze","description":":chart_with_upwards_trend: Prometheus metrics exporter for PowerDNS","archived":false,"fork":true,"pushed_at":"2021-12-06T20:36:05.000Z","size":1307,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-03T21:33:45.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Jimdo/powerdns_exporter","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fuze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-08T23:03:58.000Z","updated_at":"2021-12-06T20:36:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fuze/powerdns_exporter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuze%2Fpowerdns_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuze%2Fpowerdns_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuze%2Fpowerdns_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuze%2Fpowerdns_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuze","download_url":"https://codeload.github.com/fuze/powerdns_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246921921,"owners_count":20855339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:01:39.298Z","updated_at":"2025-04-03T01:30:37.915Z","avatar_url":"https://github.com/fuze.png","language":"Go","funding_links":[],"categories":["Go","others"],"sub_categories":[],"readme":"# PowerDNS Exporter\n\n[![Travis](https://img.shields.io/travis/janeczku/powerdns_exporter.svg)](https://travis-ci.org/janeczku/powerdns_exporter)\n\n[PowerDNS](https://www.powerdns.com/) exporter for [Prometheus](http://prometheus.io/)\n\nPeriodically scrapes metrics via the [PowerDNS HTTP-API](https://doc.powerdns.com/md/httpapi/README/) and exports them via HTTP/JSON for consumption by Prometheus.\n\n#### The following PowerDNS products are supported\n* [Authoritative Server](https://www.powerdns.com/auth.html)\n* [Recursor](https://www.powerdns.com/recursor.html)\n* [Dnsdist](http://dnsdist.org/) (coming soon)\n\n---\n\n## Flags\n\nName | Description | Default\n---- | ---- | ----\nlisten-address | Host:Port pair to run exporter on | `:9120`\nmetric-path | Path under which to expose metrics for Prometheus | `/metrics`\napi-url | Base-URL of PowerDNS authoritative server/recursor API | `http://localhost:8081/api/v1/`\napi-key | PowerDNS API Key | `-`\n\nThe `api-url` flag value should be passed in this format:\n\n* PowerDNS server/recursor 3.x: `http://\u003cHOST\u003e:\u003cAPI-PORT\u003e/`\n* PowerDNS server/recursor 4.x: `http://\u003cHOST\u003e:\u003cAPI-PORT\u003e/api/v1/`\n\n## Building\n\n```bash\ngit clone https://github.com/fuze/powerdns_exporter.git\ncd powerdns_exporter\ndocker run -it -v $(pwd):/powerdns_exporter golang:1.12 /bin/bash\ncd /powerdns_exporter\ngo get github.com/prometheus/client_golang/prometheus\ngo get github.com/sirupsen/logrus\ngo get gopkg.in/alecthomas/kingpin.v2\nmake build\n```\n\nA Makefile is provided in case you find a need for it.\n\n## Usage\n\n[See here](https://doc.powerdns.com/md/httpapi/README/) for instructions on how to enable the HTTP API in PowerDNS.\n\nThen run the exporter like this:\n\n```bash\npowerdns_exporter -api-url=\"http://\u003cHOST\u003e:\u003cAPI-PORT\u003e/api/v1/\" -api-key=\"\u003cYOUR_API_KEY\u003e\"\n```\n\nShow help:\n\n```bash\npowerdns_exporter --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuze%2Fpowerdns_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuze%2Fpowerdns_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuze%2Fpowerdns_exporter/lists"}