I have Zabbix 3.4.12 and Prometheus 2.7.1 and can't get items and triggers created in Zabbix.
Configuration:
$ kubectl exec -it prometheus-zabbix-webhook-78fc67bffc-6xr8p -c alertmanager-zabbix-provisioner -- /bin/sh -c 'cat /etc/provisioner/config.yaml'
# URL to the Status/Rules page
rulesUrl: http://prometheus-operator-prometheus.monitoring.svc.cluster.local:9090/rules
# Polling interval in seconds
rulesPollingInterval: 3600
# Full URL to your Zabbix API
zabbixApiUrl: https://zabbix.some.host/zabbix/api_jsonrpc.php
# Zabbix items key prefix, keys will be zabbixKeyPrefix.alertname
zabbixKeyPrefix: prometheus
# List of host configuration
zabbixHosts:
# Name of the host in zabbix
- name: gmauleon-test01
selector:
zabbix: gmauleon-test01
hostGroups:
- some_group
itemDefaultApplication: prometheus
I have Zabbix 3.4.12 and Prometheus 2.7.1 and can't get items and triggers created in Zabbix. Configuration:
logs:
Configuration for alert in Prometheus:
I do see this alert at prometheus:9090/rules page:
What I expect to see Host
gmauleon-test01
in Zabbix at least one item and trigger forKubeStatefulSetReplicasMismatch
alert.What I see Host
gmauleon-test01
in Zabbix with no items or triggers.Sidenotes Debug logging could help to find out what is the problem, but it's hardcoded into application - no way to configure it via yaml.