commit
e2a0e34af3
3 changed files with 45 additions and 0 deletions
@ -0,0 +1,23 @@
|
||||
services: |
||||
node-exporter: |
||||
container_name: node-exporter |
||||
image: prom/node-exporter:latest |
||||
network_mode: bridge |
||||
ports: |
||||
- "9100:9100" |
||||
|
||||
prometheus: |
||||
container_name: prometheus |
||||
image: prom/prometheus:latest |
||||
network_mode: bridge |
||||
ports: |
||||
- "9090:9090" |
||||
volumes: |
||||
- /home/yutsuo/forge/monitor/prometheus.yml:/etc/prometheus/prometheus.yml |
||||
|
||||
grafana: |
||||
container_name: grafana |
||||
image: grafana/grafana:latest |
||||
network_mode: bridge |
||||
ports: |
||||
- "9080:3000" |
||||
@ -0,0 +1,22 @@
|
||||
global: |
||||
scrape_interval: 15s |
||||
external_labels: |
||||
monitor: "codelab-monitor" |
||||
|
||||
scrape_configs: |
||||
- job_name: "cfe-acesso" |
||||
scheme: "https" |
||||
scrape_interval: 5s |
||||
static_configs: |
||||
- targets: ["mobi2.bb.com.br"] |
||||
metrics_path: "/cfe-acesso/api/v1/info/metrics" |
||||
|
||||
- job_name: "node-exporter" |
||||
scrape_interval: 5s |
||||
static_configs: |
||||
- targets: ["host.docker.internal:9100"] |
||||
|
||||
- job_name: "prometheus" |
||||
scrape_interval: 5s |
||||
static_configs: |
||||
- targets: ["host.docker.internal:9090"] |
||||
Loading…
Reference in new issue