{"id":13581501,"url":"https://github.com/raylas/nextdns-exporter","last_synced_at":"2026-01-11T23:06:25.464Z","repository":{"id":63865681,"uuid":"568267898","full_name":"raylas/nextdns-exporter","owner":"raylas","description":"Export NextDNS metrics","archived":false,"fork":false,"pushed_at":"2025-03-06T21:40:58.000Z","size":779,"stargazers_count":56,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-06T22:27:56.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raylas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-20T01:01:29.000Z","updated_at":"2025-03-06T21:41:00.000Z","dependencies_parsed_at":"2023-12-11T23:14:06.400Z","dependency_job_id":"61c4b601-bb7c-4edd-b3d5-601017615b80","html_url":"https://github.com/raylas/nextdns-exporter","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":"0.38888888888888884","last_synced_commit":"7631154baf3d42d826c765aa05237a8893873ea0"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raylas%2Fnextdns-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raylas%2Fnextdns-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raylas%2Fnextdns-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raylas%2Fnextdns-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raylas","download_url":"https://codeload.github.com/raylas/nextdns-exporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247470357,"owners_count":20944146,"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-01T15:02:03.689Z","updated_at":"2026-01-11T23:06:25.453Z","avatar_url":"https://github.com/raylas.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# nextdns-exporter\n\n[![Main](https://github.com/raylas/nextdns-exporter/actions/workflows/main.yaml/badge.svg)](https://github.com/raylas/nextdns-exporter/actions/workflows/main.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/raylas/nextdns-exporter)](https://goreportcard.com/report/github.com/raylas/nextdns-exporter)\n\nA [Prometheus exporter](https://prometheus.io/docs/instrumenting/exporters/) for [NextDNS data](https://nextdns.github.io/api/#analytics).\n\n## Configuration\n\n- `LOG_LEVEL` (default: `INFO`)\n- `METRICS_PORT` (default: `9948`)\n- `METRICS_PATH` (default: `/metrics`)\n- `NEXTDNS_RESULT_WINDOW` (default: `-5m`)\n- `NEXTDNS_RESULT_LIMIT` (default: `50`)\n- `NEXTDNS_PROFILE` (required: [docs](https://nextdns.github.io/api/#profile). You can provide multiple profiles separated by commas)\n- `NEXTDNS_API_KEY` (required: [docs](https://nextdns.github.io/api/#authentication))\n\nFor most accurate data, the scrape interval _should_ match the value set via `NEXTDNS_RESULT_WINDOW`.\n\nRecommended scrape timeout is `10` seconds.\n\n## Usage\n\n### Binary\n\nEither [download a recent release](https://github.com/raylas/nextdns-exporter/releases) or compile the binary yourself (`go build -o nextdns-exporter`) and run:\n```sh\nexport NEXTDNS_PROFILE=\u003cprofile_id\u003e\nexport NEXTDNS_API_KEY=\u003capi_key\u003e\n./nextdns-exporter\n2022-11-19T12:39:34.479-0800 [INFO]  starting exporter: port=:9948 path=/metrics\n```\n\n### Docker\n\n```sh\ndocker run -d \\\n  -p 9948:9948 \\\n  -e NEXTDNS_PROFILE=\u003cprofile_id\u003e \\\n  -e NEXTDNS_API_KEY=\u003capi_key\u003e \\\n  ghcr.io/raylas/nextdns-exporter\n```\n\n### Compose\n\nThe following will create a local stack of the exporter, Prometheus, and Grafana:\n```sh\nNEXTDNS_PROFILE=\u003cprofile_id\u003e \\\nNEXTDNS_API_KEY=\u003capi_key\u003e \\\ndocker-compose up -d\n```\n\nAccess Grafana by navigating to [http://localhost:3000](http://localhost:3000).\n\n**Note:** Data will take a few minutes to trickle in.\n\n## Dashboard\n\nA basic Grafana dashboard is found [here](/grafana/dashboards/nextdns.json).\n\n![Grafana dashboard](/grafana/dashboards/nextdns.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraylas%2Fnextdns-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraylas%2Fnextdns-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraylas%2Fnextdns-exporter/lists"}