{"id":26454112,"url":"https://github.com/coolapso/prometheus-exporter-boilerplate","last_synced_at":"2026-05-10T10:07:39.756Z","repository":{"id":253651449,"uuid":"844128558","full_name":"coolapso/prometheus-exporter-boilerplate","owner":"coolapso","description":"Working boilerplate code to create a prometheus exporter","archived":false,"fork":false,"pushed_at":"2024-08-18T13:25:24.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-18T14:38:42.781Z","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/coolapso.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":"2024-08-18T13:23:59.000Z","updated_at":"2024-08-18T14:38:46.435Z","dependencies_parsed_at":"2024-08-18T14:56:18.975Z","dependency_job_id":null,"html_url":"https://github.com/coolapso/prometheus-exporter-boilerplate","commit_stats":null,"previous_names":["coolapso/prometheus-exporter-boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolapso%2Fprometheus-exporter-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolapso%2Fprometheus-exporter-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolapso%2Fprometheus-exporter-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolapso%2Fprometheus-exporter-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coolapso","download_url":"https://codeload.github.com/coolapso/prometheus-exporter-boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244292649,"owners_count":20429708,"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":"2025-03-18T19:44:28.599Z","updated_at":"2026-05-10T10:07:39.701Z","avatar_url":"https://github.com/coolapso.png","language":"Go","funding_links":["https://www.buymeacoffee.com/coolapso"],"categories":[],"sub_categories":[],"readme":"# PROMETHEUS EXPORTER BOILERPLATE\n\nA working example to build prometheus exporter\n\n## Features\n\n* Cobra and Viper to handle environment variables and cli flags\n* standard library logger with `log/slog`\n* Working Dockerfile example to build multi arch docker images\n\n## How to get started\n\nJust copy the project and tweak it to your needs. \n\n## Structure\n\n*cmd/* contains the CLI aspect of the exporter, loads the CLI flags, initializes the settings, the exporter and starts the web server.\n*internal/* contains the internal packages for the different components of the exporter, this packages are only to be used by the project and cannot be imported by other projects\n*internal/collectors* contains the exporter logic\n*internal/httpServer* contains the http server responsible for serving the metrics\n*internal/slogLogger* contains the logger initialization logic\n\n# Contributions\n\nImprovements and suggestions are always welcome, feel free to check for any open issues, open a new Issue or Pull Request\n\nIf you like this project and want to support / contribute in a different way you can always: \n\n\u003ca href=\"https://www.buymeacoffee.com/coolapso\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 51px !important;width: 217px !important;\" /\u003e\n\u003c/a\u003e\n\n# Projects built using this example\n\n* [prometheus-twitch-exporter](https://github.com/coolapso/prometheus-twitch-exporter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolapso%2Fprometheus-exporter-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoolapso%2Fprometheus-exporter-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolapso%2Fprometheus-exporter-boilerplate/lists"}