replace prometheus with mimir
This commit is contained in:
parent
03f6253560
commit
82b4283535
4 changed files with 31 additions and 23 deletions
|
@ -13,7 +13,7 @@ services:
|
||||||
# - 8888:8888 # Prometheus metrics exposed by the Collector
|
# - 8888:8888 # Prometheus metrics exposed by the Collector
|
||||||
links:
|
links:
|
||||||
- loki
|
- loki
|
||||||
- prometheus
|
- mimir
|
||||||
- tempo
|
- tempo
|
||||||
networks:
|
networks:
|
||||||
- www
|
- www
|
||||||
|
@ -33,7 +33,7 @@ services:
|
||||||
loki:
|
loki:
|
||||||
image: grafana/loki:3.0.0
|
image: grafana/loki:3.0.0
|
||||||
links:
|
links:
|
||||||
- prometheus
|
- mimir
|
||||||
expose:
|
expose:
|
||||||
- "3100"
|
- "3100"
|
||||||
command: -config.file=/etc/loki/config.yaml
|
command: -config.file=/etc/loki/config.yaml
|
||||||
|
@ -41,23 +41,20 @@ services:
|
||||||
- ./loki/config.yaml:/etc/loki/config.yaml
|
- ./loki/config.yaml:/etc/loki/config.yaml
|
||||||
- loki_data:/loki
|
- loki_data:/loki
|
||||||
|
|
||||||
prometheus:
|
mimir:
|
||||||
image: prom/prometheus:v2.51.1
|
image: grafana/mimir:2.12.0
|
||||||
expose:
|
expose:
|
||||||
- "9090"
|
- "9009"
|
||||||
|
command: [-config.file=/etc/mimir/config.yaml]
|
||||||
volumes:
|
volumes:
|
||||||
- ./prometheus/config.yaml:/etc/prometheus/config.yaml
|
- ./mimir/config.yaml:/etc/mimir/config.yaml
|
||||||
- prometheus_data:/prometheus
|
- mimir_data:/mimir
|
||||||
command:
|
|
||||||
- "--config.file=/etc/prometheus/config.yaml"
|
|
||||||
- "--storage.tsdb.path=/prometheus"
|
|
||||||
- "--web.enable-remote-write-receiver"
|
|
||||||
|
|
||||||
tempo:
|
tempo:
|
||||||
image: grafana/tempo:2.4.1
|
image: grafana/tempo:2.4.1
|
||||||
command: ["-config.file=/etc/tempo/config.yaml"]
|
command: ["-config.file=/etc/tempo/config.yaml"]
|
||||||
depends_on:
|
depends_on:
|
||||||
- prometheus
|
- mimir
|
||||||
volumes:
|
volumes:
|
||||||
- ./tempo/config.yaml:/etc/tempo/config.yaml
|
- ./tempo/config.yaml:/etc/tempo/config.yaml
|
||||||
- tempo_data:/tempo-data
|
- tempo_data:/tempo-data
|
||||||
|
@ -99,7 +96,7 @@ networks:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
loki_data:
|
loki_data:
|
||||||
prometheus_data:
|
mimir_data:
|
||||||
tempo_data:
|
tempo_data:
|
||||||
grafana_data:
|
grafana_data:
|
||||||
pyroscope_data:
|
pyroscope_data:
|
||||||
|
|
18
mimir/config.yaml
Normal file
18
mimir/config.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
blocks_storage:
|
||||||
|
backend: filesystem
|
||||||
|
filesystem:
|
||||||
|
dir: /mimir/data
|
||||||
|
tsdb:
|
||||||
|
dir: /mimir/tsdb
|
||||||
|
|
||||||
|
compactor:
|
||||||
|
data_dir: /mimir/compactor
|
||||||
|
|
||||||
|
ruler_storage:
|
||||||
|
backend: filesystem
|
||||||
|
filesystem:
|
||||||
|
dir: /mimir/rules
|
||||||
|
|
||||||
|
server:
|
||||||
|
http_listen_port: 9009
|
||||||
|
log_level: error
|
|
@ -26,8 +26,8 @@ exporters:
|
||||||
endpoint: tempo:4317
|
endpoint: tempo:4317
|
||||||
tls:
|
tls:
|
||||||
insecure: true
|
insecure: true
|
||||||
prometheusremotewrite:
|
otlphttp/mimir:
|
||||||
endpoint: http://prometheus:7900/api/prom/push
|
endpoint: http://mimir:9009/otlp
|
||||||
otlphttp/loki:
|
otlphttp/loki:
|
||||||
endpoint: http://loki:3100/otlp
|
endpoint: http://loki:3100/otlp
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ service:
|
||||||
receivers: [otlp, prometheus/self]
|
receivers: [otlp, prometheus/self]
|
||||||
processors: [batch]
|
processors: [batch]
|
||||||
exporters:
|
exporters:
|
||||||
- prometheusremotewrite
|
- otlphttp/mimir
|
||||||
logs:
|
logs:
|
||||||
receivers: [otlp]
|
receivers: [otlp]
|
||||||
processors: [batch]
|
processors: [batch]
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
global:
|
|
||||||
scrape_interval: 15s
|
|
||||||
|
|
||||||
scrape_configs:
|
|
||||||
- job_name: "prometheus"
|
|
||||||
static_configs:
|
|
||||||
- targets: ["localhost:9090"]
|
|
Loading…
Reference in a new issue