Prometheus: Difference between revisions

From wikinotes
No edit summary
Line 20: Line 20:
</blockquote><!-- Tutorials -->
</blockquote><!-- Tutorials -->


= Locations =
= Routes =
<blockquote>
<blockquote>
{| class="wikitable"
{| class="wikitable"
|-
| <code>9090</code> || default web-ui
|-
|-
| <code>http://${IP_ADDR}:9090</code> || web-ui
| <code>http://${IP_ADDR}:9090</code> || web-ui
|-
|-
| <code>http://${IP_ADDR}:9090/targets</code> || web-gui (health of queried metrics)
| <code>http://${IP_ADDR}:9090/targets</code> || web-gui (health of queried metrics)
|-
| <code>${PREFIX}/etc/prometheus.yml</code> || main configuration
|-
|-
|}
|}
</blockquote><!-- Locations -->
</blockquote><!-- Routes -->


= Ports =
= Locations =
<blockquote>
<blockquote>
{| class="wikitable"
{| class="wikitable"
|-
|-
| <code>9090</code> || default web-ui
| <code>${PREFIX}/etc/prometheus.yml</code> || main configuration
|-
| <code>/var/db/prometheus</code> || data dir
|-
|-
|}
|}
</blockquote><!-- Ports -->
</blockquote><!-- Locations -->


= Quickstart =
= Quickstart =

Revision as of 17:17, 20 February 2022

A system monitoring tool.
Metrics are polled/persisted over REST,

Documentation

home https://prometheus.io/

Tutorials

overview https://sbcode.net/prometheus/

Routes

9090 default web-ui
http://${IP_ADDR}:9090 web-ui
http://${IP_ADDR}:9090/targets web-gui (health of queried metrics)

Locations

${PREFIX}/etc/prometheus.yml main configuration
/var/db/prometheus data dir

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  # validate rule
amtool check-config alertmanager.yml              # validate alertmanager config

Notes

Setup

prometheus install
prometheus exporters
prometheus alerters

Configuration

prometheus configuration
prometheus rules

Usage

prometheus web ui
prometheus http api
prometheus promql

Integrations

Dashboards

prometheus grafana metric/graph dashboards