🚀 Try this Example
Steps to run:- Save this as
pushgateway.py:
- Deploy it:
/) shows the Pushgateway web interface, which is useful for quickly checking pushed metric groups.
Push and Scrape Metrics
Set your base URL:Prometheus Scrape Configuration
Usefal.run as the target host and include your app path in metrics_path: