Prometheus: Difference between revisions
From wikinotes
(→Notes) |
|||
Line 41: | Line 41: | ||
</blockquote><!-- Ports --> | </blockquote><!-- Ports --> | ||
= | = Quickstart = | ||
<blockquote> | <blockquote> | ||
* '''prometheus''' polls HTTP endpoints for collected metrics | * '''prometheus''' polls HTTP endpoints for collected metrics | ||
* these endpoints are called '''exporters''', and they are generated/exposed using '''clients''' | * these endpoints are called '''exporters''', and they are generated/exposed using '''clients''' | ||
* you can configure '''rules''' to persist data, or emit '''alerts''' when a metric fails | * you can configure '''rules''' to persist data, or emit '''alerts''' when a metric fails | ||
</blockquote><!-- | |||
<syntaxhighlight lang="bash"> | |||
xdg-open localhost:9090 # prometheus-ui | |||
promtool check rules /path/to/example.rules.yml # syntax-check rules | |||
</syntaxhighlight> | |||
</blockquote><!-- Quickstart --> | |||
= Notes = | = Notes = |
Revision as of 01:48, 18 February 2022
A system monitoring tool
Documentation
home https://prometheus.io/
Tutorials
FreeBSD prometheus/grafana https://blog.andreev.it/?p=5289
Locations
http://${IP_ADDR}:9090
web-ui http://${IP_ADDR}:9090/targets
web-gui (health of queried metrics) ${PREFIX}/etc/prometheus.yml
main configuration
Ports
9090
default web-ui
Quickstart
- prometheus polls HTTP endpoints for collected metrics
- these endpoints are called exporters, and they are generated/exposed using clients
- you can configure rules to persist data, or emit alerts when a metric fails
xdg-open localhost:9090 # prometheus-ui promtool check rules /path/to/example.rules.yml # syntax-check rules
Notes
Setup
prometheus install prometheus exporters Configuration
prometheus configuration prometheus rules prometheus alerts Usage
prometheus web ui prometheus http api prometheus promql Dashboards
prometheus grafana