This commit is contained in:
@ -160,7 +160,7 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
loki:
|
||||
image: grafana/loki:2.8.0
|
||||
image: grafana/loki:latest
|
||||
restart: unless-stopped
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
volumes:
|
||||
@ -169,7 +169,7 @@ services:
|
||||
- backend
|
||||
|
||||
promtail:
|
||||
image: grafana/promtail:2.8.0
|
||||
image: grafana/promtail:latest
|
||||
security_opt:
|
||||
- label:disable
|
||||
restart: unless-stopped
|
||||
@ -182,6 +182,18 @@ services:
|
||||
networks:
|
||||
- backend
|
||||
|
||||
mimir:
|
||||
image: grafana/mimir:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./mimir.yml:/etc/mimir-config/mimir.yaml:ro,Z
|
||||
entrypoint:
|
||||
- /bin/mimir
|
||||
- -config.file=/etc/mimir-config/mimir.yaml
|
||||
- -validation.max-label-names-per-series=60
|
||||
networks:
|
||||
- backend
|
||||
- default
|
||||
|
||||
volumes:
|
||||
prom_data:
|
||||
|
@ -7,6 +7,16 @@ datasources:
|
||||
isDefault: true
|
||||
access: proxy
|
||||
editable: true
|
||||
- name: Mimir Netcup
|
||||
type: prometheus
|
||||
jsonData:
|
||||
httpHeaderName1: "X-Scope-OrgID"
|
||||
secureJsonData:
|
||||
httpHeaderValue1: "host-nc-chaoswg-org"
|
||||
url: http://mimir:8080/prometheus
|
||||
isDefault: false
|
||||
access: proxy
|
||||
editable: true
|
||||
- name: Loki
|
||||
type: loki
|
||||
access: proxy
|
||||
|
44
coreos-config/plays/services/prometheus/mimir.yml
Normal file
44
coreos-config/plays/services/prometheus/mimir.yml
Normal file
@ -0,0 +1,44 @@
|
||||
# Do not use this configuration in production.
|
||||
# It is for demonstration purposes only.
|
||||
# Run Mimir in single process mode, with all components running in 1 process.
|
||||
target: all
|
||||
# ,alertmanager,overrides-exporter
|
||||
|
||||
# Configure Mimir to use Minio as object storage backend.
|
||||
common:
|
||||
storage:
|
||||
backend: s3
|
||||
s3:
|
||||
endpoint: s3.tobiasmanske.de
|
||||
access_key_id: "{{ mimir.s3.access_key }}"
|
||||
secret_access_key: "{{ mimir.s3.secret_key }}"
|
||||
bucket_name: mimir
|
||||
|
||||
# Blocks storage requires a prefix when using a common object storage bucket.
|
||||
blocks_storage:
|
||||
s3:
|
||||
bucket_name: mimir-blocks
|
||||
|
||||
ingester:
|
||||
ring:
|
||||
replication_factor: 1
|
||||
|
||||
store_gateway:
|
||||
sharding_ring:
|
||||
replication_factor: 1
|
||||
|
||||
# ruler:
|
||||
# rule_path: /data/ruler
|
||||
# alertmanager_url: http://127.0.0.1:8080/alertmanager
|
||||
# ring:
|
||||
# # Quickly detect unhealthy rulers to speed up the tutorial.
|
||||
# heartbeat_period: 2s
|
||||
# heartbeat_timeout: 10s
|
||||
#
|
||||
# alertmanager:
|
||||
# data_dir: /data/alertmanager
|
||||
# fallback_config_file: /etc/alertmanager-fallback-config.yaml
|
||||
# external_url: http://localhost:9009/alertmanager
|
||||
|
||||
server:
|
||||
log_level: warn
|
@ -52,3 +52,7 @@ scrape_configs:
|
||||
basic_auth:
|
||||
username: "{{ prometheus.scrape.kuma.user }}"
|
||||
password: "{{ prometheus.scrape.kuma.password }}"
|
||||
remote_write:
|
||||
- url: http://mimir:8080/api/v1/push
|
||||
headers:
|
||||
X-Scope-OrgID: host-nc-chaoswg-org
|
||||
|
Reference in New Issue
Block a user