Update Prometheus authored by Administrator's avatar Administrator
......@@ -2,7 +2,7 @@ Prometheus is configured by a configuration file, which is found at `<your_proje
The following is an example of how your Prometheus configuration should look like:
```
```plaintext
scrape_configs:
- job_name: 'my-application'
metrics_path: '/metrics' # Unless your scrape endpoint requires otherwise the default is /metrics
......@@ -17,5 +17,21 @@ scrape_configs:
# password:
```
For more specific information please consult the official Prometheus documentation at:
<https://prometheus.io/docs/prometheus/latest/configuration/configuration/>
\ No newline at end of file
For more specific information please consult the official Prometheus documentation at: <https://prometheus.io/docs/prometheus/latest/configuration/configuration/>
For Prometheus alert rules, modify `<your_project>/<your_environment>/prometheus/rules/rules.yml`
Following is an example of a rules config:
```
groups:
- name: example
rules:
- alert: HighRequestLatency
expr: job:request_latency_seconds:mean5m{job="myjob"} > 0.5
for: 10m
labels:
severity: page
annotations:
summary: High request latency
```
\ No newline at end of file