No description
This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 94.9%
  • Shell 5.1%
Find a file
renovate[bot] 3ec9263d52
Some checks failed
ci / tests (push) Successful in 1m17s
ci / release (push) Failing after 7m29s
Update dependency black to v24 (#20)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-24 14:52:07 +01:00
.github/workflows fix prometheus version and add ruff and refurb 2024-01-09 16:47:20 +02:00
fastapi_prometheus_metrics Update dependency blinker to <1.8 (#11) 2024-04-24 14:34:50 +01:00
tests fix prometheus version and add ruff and refurb 2024-01-09 16:47:20 +02:00
.coverage Initial commit. Adds utils for common BPL use case 2021-12-17 12:23:55 +00:00
.coveragerc Initial commit. Adds utils for common BPL use case 2021-12-17 12:23:55 +00:00
.gitignore Initial commit. Adds utils for common BPL use case 2021-12-17 12:23:55 +00:00
CODEOWNERS Initial commit. Adds utils for common BPL use case 2021-12-17 12:23:55 +00:00
poetry.lock Update dependency black to v24 (#20) 2024-04-24 14:52:07 +01:00
pyproject.toml Update dependency black to v24 (#20) 2024-04-24 14:52:07 +01:00
README.md Initial commit. Adds utils for common BPL use case 2021-12-17 12:23:55 +00:00
renovate.json Configure Renovate (#9) 2024-04-18 15:27:45 +01:00
style.sh fix prometheus version and add ruff and refurb 2024-01-09 16:47:20 +02:00

FastAPI Prometheus Metrics

Utilities for providing internal HTTP metrics for FastAPI.

Provides

  • /metrics endpoint
  • Middleware to ensure /metrics is accessed only on port 9100 and other URLs not accessible on port 9100
  • Middleware to manipulate prometheus_client metric objects

Environment Variables

  • PROMETHEUS_MULTIPROC_DIR (required - the location to store metrics data)
  • METRICS_DEBUG (false by default - to view /metrics endpoing on standard port)