Flask service that collects and exposes Prometheus metrics for operator pipelines.
Metrics collected:
- Pipeline run counts and durations (pushed by operator-pipelines Tekton tasks via
POST /v1/metrics/pipelinerun) - Operator repo statistics — operator counts, bundle counts, FBC migration status (scraped from git repos every 24h)
Endpoints:
GET /ping— health checkGET /metrics— Prometheus metricsPOST /v1/metrics/pipelinerun— ingest pipeline run data
podman build -t pipeline-metrics .
podman run -p 8080:8080 -v ./repos.yml:/home/user/repos.yml:Z pipeline-metricscurl http://localhost:8080/ping
curl http://localhost:8080/metricspip install -e '.[dev]'
tox # mypy, black, pylint, yamllint, bandit, pip-audit