Add web.external-url
This commit is contained in:
parent
c20c412019
commit
d3d3b431cd
|
@ -12,7 +12,7 @@ receivers:
|
||||||
- name: 'telegram'
|
- name: 'telegram'
|
||||||
telegram_configs:
|
telegram_configs:
|
||||||
- bot_token: "00000:ddddddddddddddddddd"
|
- bot_token: "00000:ddddddddddddddddddd"
|
||||||
chat_id: -000000
|
chat_id: -3453435345
|
||||||
|
|
||||||
# https://api.telegram.org/botINSERT_BOT_ID_HERE/getUpdates - to get chat_id
|
# https://api.telegram.org/botINSERT_BOT_ID_HERE/getUpdates - to get chat_id
|
||||||
# amtool --alertmanager.url=http://localhost:9093/ alert add alertname="Test alert" severity="warning" job="test-job" - to send test alert
|
# amtool --alertmanager.url=http://localhost:9093/ alert add alertname="Test alert" severity="warning" job="test-job" - to send test alert
|
|
@ -15,6 +15,13 @@ services:
|
||||||
image: prom/prometheus:v2.42.0
|
image: prom/prometheus:v2.42.0
|
||||||
ports:
|
ports:
|
||||||
- "9090:9090"
|
- "9090:9090"
|
||||||
|
# Change 127.0.0.1 to ip address of node where docker satck is deployed
|
||||||
|
command:
|
||||||
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||||
|
- "--storage.tsdb.path=/prometheus"
|
||||||
|
- "--web.external-url=http://127.0.0.1:9090"
|
||||||
|
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
||||||
|
- "--web.console.templates=/usr/share/prometheus/consoles"
|
||||||
volumes:
|
volumes:
|
||||||
- prom-data:/prometheus
|
- prom-data:/prometheus
|
||||||
- ./configs/prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml
|
- ./configs/prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml
|
||||||
|
@ -24,6 +31,11 @@ services:
|
||||||
image: prom/alertmanager:v0.25.0
|
image: prom/alertmanager:v0.25.0
|
||||||
ports:
|
ports:
|
||||||
- "9093:9093"
|
- "9093:9093"
|
||||||
|
# Change 127.0.0.1 to ip address of node where docker satck is deployed
|
||||||
|
command:
|
||||||
|
- "--config.file=/etc/alertmanager/alertmanager.yml"
|
||||||
|
- "--storage.path=/alertmanager"
|
||||||
|
- "--web.external-url=http://127.0.0.1:9093"
|
||||||
volumes:
|
volumes:
|
||||||
- alert-data:/alertmanager
|
- alert-data:/alertmanager
|
||||||
- ./configs/alertmanager.yml:/etc/alertmanager/alertmanager.yml
|
- ./configs/alertmanager.yml:/etc/alertmanager/alertmanager.yml
|
||||||
|
|
Loading…
Reference in New Issue