在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Prometheus Gitee ExporterExposes basic metrics for your repositories from the Gitee API, to a Prometheus compatible endpoint. ( Most of the inspiration comes from ConfigurationThis exporter is setup to take input from environment variables: Required
At least one of those 3 options should be provided. Optional
Install and deployRun manually from Docker Hub: docker run -d --restart=always -p 9190:9190 -e REPOS="oscstudio/gitee-exporter, atompitestorg/testrepo" oscstudio/gitee-exporter Build a docker image: docker build -t <image-name> .docker run -d --restart=always -p 9190:9190 -e REPOS="oscstudio/gitee-exporter, atompitestorg/testrepo" <image-name> Docker composegitee-exporter: tty: true stdin_open: true expose: - 9190 ports: - 9190:9190 image: oscstudio/gitee-exporter:latest environment: - REPOS=<REPOS you want to monitor> - GITEE_TOKEN=<your gitee api token> MetricsMetrics will be made available on port 9190 by defaultAn example of these metrics can be found in the TestsThere is a set of blackbox behavioural tests which validate metrics endpoint in the make test |
请发表评论