{"id":15286481,"url":"https://github.com/samber/promql-exporter","last_synced_at":"2025-08-19T21:20:17.730Z","repository":{"id":240283425,"uuid":"802207157","full_name":"samber/promql-exporter","owner":"samber","description":"Prometheus exporter for PromQL endpoints (replacing federation and remote-write)","archived":false,"fork":false,"pushed_at":"2024-05-17T18:49:12.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T15:37:07.188Z","etag":null,"topics":["exporter","federation","go","grafana","mimir","monitoring","prometheus","promql","query","remote-write","stats"],"latest_commit_sha":null,"homepage":"","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/samber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["samber"]}},"created_at":"2024-05-17T18:21:29.000Z","updated_at":"2025-06-13T21:46:53.000Z","dependencies_parsed_at":"2024-05-17T19:48:43.955Z","dependency_job_id":null,"html_url":"https://github.com/samber/promql-exporter","commit_stats":null,"previous_names":["samber/promql-exporter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/samber/promql-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fpromql-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fpromql-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fpromql-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fpromql-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samber","download_url":"https://codeload.github.com/samber/promql-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fpromql-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271223679,"owners_count":24721720,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["exporter","federation","go","grafana","mimir","monitoring","prometheus","promql","query","remote-write","stats"],"created_at":"2024-09-30T15:15:08.711Z","updated_at":"2025-08-19T21:20:17.697Z","avatar_url":"https://github.com/samber.png","language":"Go","funding_links":["https://github.com/sponsors/samber"],"categories":[],"sub_categories":[],"readme":"\n# PromQL Exporter\n\n[![tag](https://img.shields.io/github/tag/samber/promql-exporter.svg)](https://github.com/samber/promql-exporter/releases)\n![Go Version](https://img.shields.io/badge/Go-%3E%3D%201.18.0-%23007d9c)\n[![GoDoc](https://godoc.org/github.com/samber/promql-exporter?status.svg)](https://pkg.go.dev/github.com/samber/promql-exporter)\n![Build Status](https://github.com/samber/promql-exporter/actions/workflows/test.yml/badge.svg)\n[![Go report](https://goreportcard.com/badge/github.com/samber/promql-exporter)](https://goreportcard.com/report/github.com/samber/promql-exporter)\n[![Coverage](https://img.shields.io/codecov/c/github/samber/promql-exporter)](https://codecov.io/gh/samber/promql-exporter)\n[![Contributors](https://img.shields.io/github/contributors/samber/promql-exporter)](https://github.com/samber/promql-exporter/graphs/contributors)\n[![License](https://img.shields.io/github/license/samber/promql-exporter)](./LICENSE)\n\n\u003e A Prometheus Exporter for PromQL-compatible endpoints\n\nSome cloud providers do not offer federation endpoint or remote write. This exporter aims to export metrics using the /query API endpoint.\n\n## 🚀 Run\n\nUsing Docker:\n\n```sh\ndocker run --rm -it -p 9517:9517 -e ENDPOINT=http://demo.robustperception.io:9090 samber/promql-exporter:v0.1.0\n```\n\nOr using a binary:\n\n```sh\nwget -O promql_exporter https://github.com/samber/promql-exporter/releases/download/v0.1.0/promql_exporter_0.1.0_linux_amd64\nchmod +x promql_exporter\n./promql_exporter --endpoint xxxx --header 'x-token: yyyy' --header 'x-token: zzzz'\n```\n\n## 💡 Usage\n\n```sh\n./promql_exporter\nusage: promql_exporter --endpoint=http://demo.robustperception.io:9090 [\u003cflags\u003e]\n\nFlags:\n  -h, --help                           Show context-sensitive help (also try --help-long and --help-man).\n      --endpoint                       PromQL http endpoint ($ENDPOINT)\n      --header                         PromQL http header ($HEADER)\n      --namespace=\"promql\"             Namespace for metrics ($PROMQL_EXPORTER_NAMESPACE)\n      --web.listen-address=\":9517\"     Address to listen on for web interface and telemetry. ($PROMQL_EXPORTER_WEB_LISTEN_ADDRESS)\n      --web.telemetry-path=\"/metrics\"  Path under which to expose metrics. ($PROMQL_EXPORTER_WEB_TELEMETRY_PATH)\n      --log.format=\"txt\"               Log format, valid options are txt and json ($PROMQL_EXPORTER_LOG_FORMAT)\n      --version                        Show application version.\n```\n\n## 🤝 Contributing\n\n- Ping me on Twitter [@samuelberthe](https://twitter.com/samuelberthe) (DMs, mentions, whatever :))\n- Fork the [project](https://github.com/samber/promql-exporter)\n- Fix [open issues](https://github.com/samber/promql-exporter/issues) or request new features\n\nDon't hesitate ;)\n\n```bash\n# Install some dev dependencies\nmake tools\n\n# Run tests\nmake test\n# or\nmake watch-test\n```\n\n## 👤 Contributors\n\n![Contributors](https://contrib.rocks/image?repo=samber/promql-exporter)\n\n## 💫 Show your support\n\nGive a ⭐️ if this project helped you!\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/samber?style=for-the-badge)](https://github.com/sponsors/samber)\n\n## 📝 License\n\nCopyright © 2024 [Samuel Berthe](https://github.com/samber).\n\nThis project is [MIT](./LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fpromql-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamber%2Fpromql-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fpromql-exporter/lists"}