-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
items haven't been created. #9
Comments
[root@coshk3cvdv00294 zabbix_provisioner]# cat config.yaml # Polling interval in seconds # Full URL to your Zabbix API # If your Zabbix server use internal certificates, you can provide a CA bundle for your company (or leave it blank) # This can also be set via the environment variable ZABBIX_API_USER # This can also be set via the environment variable ZABBIX_API_PASSWORD # Zabbix items key prefix, keys will be zabbixKeyPrefix.alertname # List of host configuration
|
I'm getting the same problem: cat /prometheus/alert.rules
The provisioner logs: The used config file: Need your help Gael, pls. |
The config file is idented. |
after i start the provisioner, i found these logs. and cannot found item created. please help.
time="2020-04-21T07:25:10Z" level=info msg="loading configuration at '/etc/provisioner/config.yaml'"
time="2020-04-21T07:25:10Z" level=info msg="configuration loaded"
time="2020-04-21T07:25:10Z" level=info msg="GetHostGroupsByState = State: Equal, Name: prometheus"
time="2020-04-21T07:25:10Z" level=info msg="GetHostByState = State: Equal, Name: prometheus"
time="2020-04-21T07:25:10Z" level=info msg="Updating host: prometheus"
[root@coshk3cvdv00294 zabbix_provisioner]# cat ../alertmanager/data/alert.rules
groups:
rules:
alert: ContainerKilled
expr: sum(container_memory_rss{name=~".+"}) by (image, instance) < 1
for: 1s
labels:
severity: warning
annotations:
zabbix: "prometheus"
summary: "Container killed (instance {{ $labels.image }})"
description: "A container has disappeared\n VALUE = {{ $value }}\n LABELS: {{ $labels.image }}"
alert: InfluxdbDown
expr: absent(container_last_seen{name='influxdb'})
for: 3m
labels:
severity: page
annotations:
zabbix: "prometheus"
summary: "InfluxdbDown"
description: "InfluxdbDown."
alert: GrafanaDown
expr: absent(container_last_seen{name='grafana'})
for: 3m
labels:
severity: page
annotations:
zabbix: "prometheus"
summary: "GrafanaDown"
description: "GrafanaDown."
alert: CadvisorDown
expr: up{job="cadvisor"} == 0
for: 10s
labels:
severity: page
annotations:
zabbix: "prometheus"
summary: "Cadvisor Down (instance {{ $labels.instance }})"
description: "A cadvisor has down\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
The text was updated successfully, but these errors were encountered: