Skip to content
Snippets Groups Projects
Commit dbcf4cbc authored by mgy20's avatar mgy20
Browse files

Edit Prometheus.md

parent 2f3776e1
No related branches found
No related tags found
No related merge requests found
......@@ -51,13 +51,13 @@ cp postgres_exporter /usr/local/bin
chown postgres:postgres /usr/local/bin/postgres_exporter
```
Crie o arquivo /opt/postgres_exporter/postgres_exporter.env para configurar o acesso ao banco (localhost no exemplo abaixo).
Crie o arquivo `/opt/postgres_exporter/postgres_exporter.env` para configurar o acesso ao banco (localhost no exemplo abaixo).
```env
DATA_SOURCE_NAME="postgresql://postgres:postgres@localhost:5432/?sslmode=disable"
```
Crie o arquivo /etc/systemd/system/postgres_exporter.service para o serviço.
Crie o arquivo `/etc/systemd/system/postgres_exporter.service` para o serviço.
```service
[Unit]
......@@ -124,7 +124,7 @@ chown prometheus:prometheus /usr/local/bin/prometheus
chown prometheus:prometheus /usr/local/bin/promtool
```
Crie o arquivo /opt/prometheus/prometheus.yml
Crie o arquivo `/opt/prometheus/prometheus.yml`
```yaml
# my global config
global:
......@@ -162,7 +162,7 @@ scrape_configs:
- targets: ["localhost:9187"]
```
Crie o arquivo /etc/systemd/system/prometheus.service
Crie o arquivo `/etc/systemd/system/prometheus.service`
```service
[Unit]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment