Skip to content

Commit cc2b9e2

Browse files
committed
README: update the configuration for the exporter plus add note
1 parent 5e58153 commit cc2b9e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ make build
113113
It is strongly advisable to configure the Prometheus server with the following parameters:
114114

115115
```
116+
scrape_configs:
117+
116118
#
117119
# SLURM resource manager:
118120
#
@@ -129,6 +131,8 @@ It is strongly advisable to configure the Prometheus server with the following p
129131
* **scrape_interval**: a 30 seconds interval will avoid possible 'overloading' on the SLURM master due to frequent calls of sdiag/squeue/sinfo commands through the exporter.
130132
* **scrape_timeout**: on a busy SLURM master a too short scraping timeout will abort the communication from the Prometheus server toward the exporter, thus generating a ``context_deadline_exceeded`` error.
131133

134+
The previous configuration file can be immediately used with a fresh installation of Promethues. At the same time, we highly recommend to include at least the ``global`` section into the configuration. Official documentation about __configuring Prometheus__ is [available here](https://prometheus.io/docs/prometheus/latest/configuration/configuration/).
135+
132136
**NOTE**: the Prometheus server is using __YAML__ as format for its configuration file, thus **indentation** is really important. Before reloading the Prometheus server it would be better to check the syntax:
133137

134138
```

0 commit comments

Comments
 (0)