Skip to content

Commit

Permalink
prometheus: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
conscious-puppet committed Feb 28, 2024
1 parent 7d9a4cc commit 9a68bf5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/prometheus.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Prometheus

Prometheus is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts when specified conditions are observed.
[Prometheus] is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts when specified conditions are observed.

[Prometheus]: https://github.com/prometheus/prometheus

## Getting Started

Expand All @@ -17,11 +19,9 @@ Prometheus is a systems and service monitoring system. It collects metrics from
{#scrape-configs}
### Adding Scrape Configs

`scrape_configs`, controls what resources Prometheus monitor.

Since Prometheus also exposes data about itself as an HTTP endpoint it can scrape and monitor its own health. In the [default example configuration](https://github.com/prometheus/prometheus/blob/3f686cad8bee405229b2532584ef181ce9f6a8b3/documentation/examples/prometheus.yml) there is a single job, called prometheus.
`scrape_configs` controls what resources Prometheus monitors.

To add `scrape_configs`, we can use the following config:
Since Prometheus also exposes data about itself as an HTTP endpoint it can scrape and monitor its own health. In the [default example configuration](https://github.com/prometheus/prometheus/blob/3f686cad8bee405229b2532584ef181ce9f6a8b3/documentation/examples/prometheus.yml) there is a single job, called prometheus. We can add it to `scrape_configs` using the following config:

```nix
{
Expand Down

0 comments on commit 9a68bf5

Please sign in to comment.