Grafana Graph Exporting
Thruk exports third-party performance graphs through a single URL. It currently supports only Grafana.
Use the .../extinfo.cgi?type=grafana&options_see_below... URL to export graphs.
List of Options
host: Hostname to export.service: Service description to export. Leave empty for host graphs.format: Can be eitherpng(default) orbase64.from: Either a unixtimestamp of the start date or relative date like-2h.to: Either unixtimestamp of the end date or relative date likenow.width: Image width in px.height: Image height in px.source: If a Grafana dashboard has multiple graphs, usesourceto select one. The index starts at1.disablePanelTitle: Can be set to1to hide the panel title.legend: Can be set to0to hide the legend.theme: Can be eitherlightordarkand sets the grafana theme.font_color: Sets the font color, ex.:#000000background_color: Sets the background color, can be eithertransparentor a hex colour like#FFFFFF
Example
Fetch an exported graph with curl:
%> curl -k 'https://user:password@your_webserver/thruk/cgi-bin/extinfo.cgi?type=grafana&host=localhost&service=Ping&from=-1d&to=now'