add visuals
This commit is contained in:
+24
-12
@@ -2,7 +2,7 @@ global:
|
|||||||
scrape_interval: 60s
|
scrape_interval: 60s
|
||||||
evaluation_interval: 60s
|
evaluation_interval: 60s
|
||||||
scrape_timeout: 10s
|
scrape_timeout: 10s
|
||||||
sample_limit: 1000 # Limit samples per scrape to prevent overload
|
sample_limit: 1000
|
||||||
|
|
||||||
# Rule files
|
# Rule files
|
||||||
rule_files:
|
rule_files:
|
||||||
@@ -14,31 +14,43 @@ alerting:
|
|||||||
- targets:
|
- targets:
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
# Prometheus itself
|
# Prometheus
|
||||||
- job_name: 'prometheus'
|
- job_name: 'prometheus'
|
||||||
sample_limit: 50000
|
sample_limit: 50000
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['prometheus:9090']
|
- targets: ['prometheus:9090']
|
||||||
|
|
||||||
# Container metrics via cAdvisor
|
# Container metrics via cAdvisor
|
||||||
- job_name: 'cadvisor'
|
- job_name: 'ktpv-orch_cadvisor'
|
||||||
sample_limit: 50000
|
sample_limit: 50000
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['cadvisor:8080']
|
- targets: ['cadvisor:8080']
|
||||||
metrics_path: /metrics
|
metrics_path: /metrics
|
||||||
scheme: http
|
scheme: http
|
||||||
|
|
||||||
# Host metrics via node-exporter
|
- job_name: 'ktpv-apps01_cadvisor'
|
||||||
- job_name: 'node-exporter'
|
sample_limit: 50000
|
||||||
|
static_configs:
|
||||||
|
- targets: ['10.249.84.41:9050']
|
||||||
|
metrics_path: /metrics
|
||||||
|
scheme: http
|
||||||
|
|
||||||
|
# Metrics via node-exporter
|
||||||
|
- job_name: 'ktpv-orch_node-exporter'
|
||||||
sample_limit: 50000
|
sample_limit: 50000
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['node-exporter:9100']
|
- targets: ['node-exporter:9100']
|
||||||
|
|
||||||
# Loki metrics
|
- job_name: 'ktpv-apps01_node-exporter'
|
||||||
- job_name: 'loki'
|
|
||||||
sample_limit: 50000
|
sample_limit: 50000
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['loki:3100']
|
- targets: ['10.249.84.41:9060']
|
||||||
|
|
||||||
|
# Loki metrics
|
||||||
|
# - job_name: 'loki'
|
||||||
|
# sample_limit: 50000
|
||||||
|
# static_configs:
|
||||||
|
# - targets: ['loki:3100']
|
||||||
|
|
||||||
# Grafana metrics
|
# Grafana metrics
|
||||||
- job_name: 'grafana'
|
- job_name: 'grafana'
|
||||||
@@ -47,7 +59,7 @@ scrape_configs:
|
|||||||
- targets: ['grafana:3000']
|
- targets: ['grafana:3000']
|
||||||
|
|
||||||
# Alloy metrics
|
# Alloy metrics
|
||||||
- job_name: 'alloy'
|
# - job_name: 'alloy'
|
||||||
sample_limit: 50000
|
# sample_limit: 50000
|
||||||
static_configs:
|
# static_configs:
|
||||||
- targets: ['alloy:12345']
|
# - targets: ['alloy:12345']
|
||||||
|
|||||||
+27
-28
@@ -24,40 +24,39 @@ services:
|
|||||||
- ./config/provisioning/alerting:/etc/grafana/provisioning/alerting
|
- ./config/provisioning/alerting:/etc/grafana/provisioning/alerting
|
||||||
- ./config/dashboards:/var/lib/grafana/dashboards
|
- ./config/dashboards:/var/lib/grafana/dashboards
|
||||||
depends_on:
|
depends_on:
|
||||||
- loki
|
|
||||||
- prometheus
|
- prometheus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- monitoring
|
- monitoring
|
||||||
|
|
||||||
loki:
|
# loki:
|
||||||
image: grafana/loki:latest
|
# image: grafana/loki:latest
|
||||||
container_name: loki
|
# container_name: loki
|
||||||
ports:
|
# ports:
|
||||||
- "9020:3100"
|
# - "9020:3100"
|
||||||
volumes:
|
# volumes:
|
||||||
- ./config/loki.yml:/etc/loki/local-config.yaml
|
# - ./config/loki.yml:/etc/loki/local-config.yaml
|
||||||
- loki-data:/var/loki
|
# - loki-data:/var/loki
|
||||||
restart: unless-stopped
|
# restart: unless-stopped
|
||||||
networks:
|
# networks:
|
||||||
- monitoring
|
# - monitoring
|
||||||
|
|
||||||
alloy:
|
# alloy:
|
||||||
image: grafana/alloy:latest
|
# image: grafana/alloy:latest
|
||||||
container_name: grafana-alloy
|
# container_name: grafana-alloy
|
||||||
ports:
|
# ports:
|
||||||
- "9030:12345"
|
# - "9030:12345"
|
||||||
volumes:
|
# volumes:
|
||||||
- ./config/alloy.conf:/etc/alloy/config.alloy
|
# - ./config/alloy.conf:/etc/alloy/config.alloy
|
||||||
- alloy-data:/var/lib/alloy/data
|
# - alloy-data:/var/lib/alloy/data
|
||||||
command:
|
# command:
|
||||||
- run
|
# - run
|
||||||
- --server.http.listen-addr=0.0.0.0:12345
|
# - --server.http.listen-addr=0.0.0.0:12345
|
||||||
- --storage.path=/var/lib/alloy/data
|
# - --storage.path=/var/lib/alloy/data
|
||||||
- /etc/alloy/config.alloy
|
# - /etc/alloy/config.alloy
|
||||||
restart: unless-stopped
|
# restart: unless-stopped
|
||||||
networks:
|
# networks:
|
||||||
- monitoring
|
# - monitoring
|
||||||
|
|
||||||
# AlertManager for handling alerts
|
# AlertManager for handling alerts
|
||||||
alertmanager:
|
alertmanager:
|
||||||
|
|||||||
Reference in New Issue
Block a user