Commit 12d98ec0 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Properly indent codeblocks

parent c1ae5bc0
...@@ -24,7 +24,7 @@ dashboard tool like [Grafana]. ...@@ -24,7 +24,7 @@ dashboard tool like [Grafana].
## Configuring Prometheus ## Configuring Prometheus
>**Note:** NOTE: **Note:**
For installations from source you'll have to install and configure it yourself. For installations from source you'll have to install and configure it yourself.
Prometheus and it's exporters are on by default, starting with GitLab 9.0. Prometheus and it's exporters are on by default, starting with GitLab 9.0.
...@@ -47,7 +47,7 @@ To disable Prometheus and all of its exporters, as well as any added in the futu ...@@ -47,7 +47,7 @@ To disable Prometheus and all of its exporters, as well as any added in the futu
### Changing the port and address Prometheus listens on ### Changing the port and address Prometheus listens on
>**Note:** NOTE: **Note:**
The following change was added in [GitLab Omnibus 8.17][1261]. Although possible, The following change was added in [GitLab Omnibus 8.17][1261]. Although possible,
it's not recommended to change the port Prometheus listens it's not recommended to change the port Prometheus listens
on as this might affect or conflict with other services running on the GitLab on as this might affect or conflict with other services running on the GitLab
...@@ -113,7 +113,9 @@ To use an external Prometheus server: ...@@ -113,7 +113,9 @@ To use an external Prometheus server:
1. [Reconfigure GitLab][reconfigure] to apply the changes 1. [Reconfigure GitLab][reconfigure] to apply the changes
1. Edit the Prometheus server's configuration file. 1. Edit the Prometheus server's configuration file.
1. Add each node's exporters to the Prometheus server's [scrape target configuration](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#%3Cscrape_config%3E). For example, a sample snippet using `static_configs`: 1. Add each node's exporters to the Prometheus server's
[scrape target configuration](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#%3Cscrape_config%3E).
For example, a sample snippet using `static_configs`:
```yaml ```yaml
scrape_configs: scrape_configs:
...@@ -126,6 +128,7 @@ To use an external Prometheus server: ...@@ -126,6 +128,7 @@ To use an external Prometheus server:
static_configs: static_configs:
- targets: ['1.1.1.1:443'] - targets: ['1.1.1.1:443']
``` ```
1. Restart the Prometheus server. 1. Restart the Prometheus server.
## Viewing performance metrics ## Viewing performance metrics
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment