Hands-on task
This task is step 7 of the course “Monitoring and metrics”
Prometheus: metric with labels
Create a file /root/metrics.prom in Prometheus textfile format with the metric http_requests_total, labeled with: method="get", code="200" with value 42 and method="post", code="500" with value 3.
The file is handy to type in the Editor tab: create metrics.prom in /root (Ctrl+S saves it).
What you'll practise:
- prometheus
- metrics format
- labels
- time series
- text export