prometheus-clientEasy Playground

Instrument Python apps with Prometheus metrics

Getting started with prometheus-clientRun locally
Install
pip install prometheus-client
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: prometheus_client)

prometheus-client is a third-party package. Instrument Python apps with Prometheus metrics. Install with: pip install prometheus-client

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?