Hi
I need to integrate Grafana Oncall OSS and Zabbix
Both are installed on seperate local virtual machines
Both can ping each other via IP address
I cant get Grafana OSS OnCall to integrate with Local instance of Zabbix. The Dashboard works fine and pulls data via API but i need the OnCall alerting system to work. The heartbeat URL doesn’t work even when using the IP instead of LocalHost.
Thank you
DUGi
April 13, 2023, 6:56am
2
Hello,
to be honest it is very poorly documented !
If you are running Grafana and oncall on the same machine, there are 2 “services” Grafana GUI running on port 3000 and Oncall engine runing on port 8080.
you have 2 options:
change IP, Port and PROTOCOL on the link:
https://grafana.example.com/integrations/v1/zabbix/Hj5737643756/
to:
http://192.168.1.40:8080/integrations/v1/zabbix/Hj5737643756/
or if you are using nginx proxy you can create separate location redirected to second service:
my config:
server {
listen 80;
server_name grafana.example.com;
if ($host = grafana.example.com) {
return 301 https://$host$request_uri;
}
}
# this is required to proxy Grafana Live WebSocket connections.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream grafana {
server community.grafana.com;
}
server {
listen 443 ssl http2;
server_name grafana.example.com;
location / {
proxy_pass http://192.168.1.88:3000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
}
# Proxy Grafana Live WebSocket connections.
location /api/live/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $http_host;
proxy_pass http://grafana;
}
location /integrations/ {
proxy_pass http://192.168.1.88:8080;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
}
access_log /var/log/nginx/grafana.access.log;
error_log /var/log/nginx/grafana.error.log;
ssl_certificate /etc/letsencrypt/live/grafana.example.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/grafana.example.com/privkey.pem; # managed by Certbot
}
DUGi
April 13, 2023, 7:15am
3
Hello,
I replied but bot hidden my reply, I hope that it will re-appear soon.
in quick you have to change in the link: