在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:caarlos0/github_releases_exporter开源软件地址:https://github.com/caarlos0/github_releases_exporter开源编程语言:Go 91.8%开源软件介绍:github_releases_exporterExports GitHub release metrics to the Prometheus format. Running./github_releases_exporter Or with docker: docker run -p 127.0.0.1:9222:9222 caarlos0/github_releases_exporter ConfigurationYou can set it up on docker compose like: version: '3'
services:
releases:
image: caarlos0/github_releases_exporter:v1
restart: always
volumes:
- /path/to/releases.yml:/etc/releases.yml:ro
command:
- '--config.file=/etc/releases.yml'
ports:
- 127.0.0.1:9222:9222
env_file:
- .env The repositories:
- goreleaser/goreleaser
- caarlos0/github_releases_exporter On the prometheus settings, add the releases job like this: - job_name: 'releases'
static_configs:
- targets: ['releases:9222'] And you are done! Configuration ReloadYou can reload the configuration at any time by sending a Grafana DashboardI have a dashvboard like this: You can get it from the grafana website
or just import the dashboard Building locallyInstall the needed tooling and libs: make setup Run with: go run main.go Run tests with: make test |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论