mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
test vmagent remotewrite auth args
This commit is contained in:
parent
b2765c45d0
commit
f024841153
2 changed files with 20 additions and 0 deletions
|
@ -87,3 +87,7 @@ groups:
|
||||||
In some cases for components like vmagent or vminsert the alert might trigger if there are too many clients
|
In some cases for components like vmagent or vminsert the alert might trigger if there are too many clients
|
||||||
making write attempts. If vmagent's or vminsert's CPU usage and network saturation are at normal level, then
|
making write attempts. If vmagent's or vminsert's CPU usage and network saturation are at normal level, then
|
||||||
it might be worth adjusting `-maxConcurrentInserts` cmd-line flag."
|
it might be worth adjusting `-maxConcurrentInserts` cmd-line flag."
|
||||||
|
- alert: alwaysFiring
|
||||||
|
expr: 1
|
||||||
|
labels:
|
||||||
|
severity: critical
|
|
@ -16,6 +16,11 @@ services:
|
||||||
command:
|
command:
|
||||||
- "--promscrape.config=/etc/prometheus/prometheus.yml"
|
- "--promscrape.config=/etc/prometheus/prometheus.yml"
|
||||||
- "--remoteWrite.url=http://victoriametrics:8428/api/v1/write"
|
- "--remoteWrite.url=http://victoriametrics:8428/api/v1/write"
|
||||||
|
- "-envflag.enable=true"
|
||||||
|
- "-envflag.prefix=VM_"
|
||||||
|
environment:
|
||||||
|
- VM_remoteWrite_basicAuth_username=admin
|
||||||
|
- VM_remoteWrite_basicAuth_password=pass
|
||||||
networks:
|
networks:
|
||||||
- vm_net
|
- vm_net
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -40,6 +45,8 @@ services:
|
||||||
- "--httpListenAddr=:8428"
|
- "--httpListenAddr=:8428"
|
||||||
- "--influxListenAddr=:8089"
|
- "--influxListenAddr=:8089"
|
||||||
- "--vmalert.proxyURL=http://vmalert:8880"
|
- "--vmalert.proxyURL=http://vmalert:8880"
|
||||||
|
- "-httpAuth.username=admin"
|
||||||
|
- "-httpAuth.password=pass"
|
||||||
networks:
|
networks:
|
||||||
- vm_net
|
- vm_net
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -77,12 +84,21 @@ services:
|
||||||
- ./alerts-health.yml:/etc/alerts/alerts-health.yml
|
- ./alerts-health.yml:/etc/alerts/alerts-health.yml
|
||||||
- ./alerts-vmagent.yml:/etc/alerts/alerts-vmagent.yml
|
- ./alerts-vmagent.yml:/etc/alerts/alerts-vmagent.yml
|
||||||
- ./alerts-vmalert.yml:/etc/alerts/alerts-vmalert.yml
|
- ./alerts-vmalert.yml:/etc/alerts/alerts-vmalert.yml
|
||||||
|
environment:
|
||||||
|
- VM_remoteWrite_basicAuth_username=admin
|
||||||
|
- VM_remoteWrite_basicAuth_password=pass
|
||||||
|
- VM_remoteRead_basicAuth_username=admin
|
||||||
|
- VM_remoteRead_basicAuth_password=pass
|
||||||
|
- VM_datasource_basicAuth_username=admin
|
||||||
|
- VM_datasource_basicAuth_password=pass
|
||||||
command:
|
command:
|
||||||
- "--datasource.url=http://victoriametrics:8428/"
|
- "--datasource.url=http://victoriametrics:8428/"
|
||||||
- "--remoteRead.url=http://victoriametrics:8428/"
|
- "--remoteRead.url=http://victoriametrics:8428/"
|
||||||
- "--remoteWrite.url=http://victoriametrics:8428/"
|
- "--remoteWrite.url=http://victoriametrics:8428/"
|
||||||
- "--notifier.url=http://alertmanager:9093/"
|
- "--notifier.url=http://alertmanager:9093/"
|
||||||
- "--rule=/etc/alerts/*.yml"
|
- "--rule=/etc/alerts/*.yml"
|
||||||
|
- "-envflag.enable=true"
|
||||||
|
- "-envflag.prefix=VM_"
|
||||||
# display source of alerts in grafana
|
# display source of alerts in grafana
|
||||||
- "--external.url=http://127.0.0.1:3000" #grafana outside container
|
- "--external.url=http://127.0.0.1:3000" #grafana outside container
|
||||||
# when copypaste the line be aware of '$$' for escaping in '$expr'
|
# when copypaste the line be aware of '$$' for escaping in '$expr'
|
||||||
|
|
Loading…
Reference in a new issue