Prometheus Pushgateway: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
=Internal= | =Internal= | ||
* [[Prometheus Concepts#Pushgateway|Prometheus Concepts]] | * [[Prometheus Concepts#Pushgateway|Prometheus Concepts]] | ||
=Operations= | |||
==Push a Metric Sample== | |||
<syntaxhighlight lang='bash'> | |||
echo "some_metric 3.14" | curl --data-binary @- http://localhost:9091/metrics/job/some_job | |||
</syntaxhighlight> | |||
==Query Metrics== | |||
<syntaxhighlight lang='bash'> | |||
curl http://localhost:9091/metrics/ | |||
</syntaxhighlight> | |||
==Health== | |||
<syntaxhighlight lang='bash'> | |||
curl http://localhost:9091/-/healthy | |||
</syntaxhighlight> | |||
==Readiness== | |||
<syntaxhighlight lang='bash'> | |||
curl http://localhost:9091/-/ready | |||
</syntaxhighlight> |
Revision as of 19:43, 14 October 2020
External
- https://prometheus.io/docs/instrumenting/pushing/
- https://github.com/prometheus/pushgateway/blob/master/README.md
Internal
Operations
Push a Metric Sample
echo "some_metric 3.14" | curl --data-binary @- http://localhost:9091/metrics/job/some_job
Query Metrics
curl http://localhost:9091/metrics/
Health
curl http://localhost:9091/-/healthy
Readiness
curl http://localhost:9091/-/ready