1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grafana_ynh.git synced 2024-09-03 20:36:29 +02:00
grafana_ynh/conf/grafana_init_data.sql

9 lines
62 KiB
MySQL
Raw Normal View History

2017-02-18 16:45:43 +01:00
-- https://blog.hda.me/2017/01/09/using-netdata-with-influxdb-backend.html
-- https://grafana.net/dashboards/1295
-- We set fixed id at 99999 to update able to update them later if needed
INSERT INTO `data_source` (`id`, `org_id`, `version`, `type`, `name`, `access`, `url`, `password`, `user`, `database`, `basic_auth`, `basic_auth_user`, `basic_auth_password`, `is_default`, `json_data`, `created`, `updated`, `with_credentials`, `secure_json_data`) VALUES
(99999, 1, 0, 'influxdb', 'InfluxDB', 'proxy', 'http://localhost:8086', '', '', 'opentsdb', 0, '', '', 0, '{"tsdbResolution":1,"tsdbVersion":1}', '2017-02-12 14:35:33', '2017-02-12 14:36:27', 0, '{}');
INSERT INTO `dashboard` (`id`, `version`, `slug`, `title`, `data`, `org_id`, `created`, `updated`) VALUES
(99999, 0, 'NetData', 'NetData', '{"__requires":[{"id":"graph","name":"Graph","type":"panel","version":""},{"id":"grafana","name":"Grafana","type":"grafana","version":"4.0.2"},{"id":"influxdb","name":"InfluxDB","type":"datasource","version":"1.0.0"}],"annotations":{"list":[]},"description":"Dashboard for netdata","editable":true,"gnetId":1295,"hideControls":false,"id":null,"links":[],"refresh":false,"rows":[{"collapse":false,"height":"250px","panels":[{"aliasColors":{},"bars":false,"datasource":"InfluxDB","editable":true,"error":false,"fill":1,"id":1,"legend":{"avg":false,"current":false,"max":false,"min":false,"show":true,"total":false,"values":false},"lines":true,"linewidth":1,"links":[],"nullPointMode":"connected","percentage":false,"pointradius":5,"points":false,"renderer":"flot","seriesOverrides":[],"span":6,"stack":false,"steppedLine":false,"targets":[{"alias":"softirq","dsType":"influxdb","groupBy":[{"params":["$interval"],"type":"time"},{"params":["null"],"type":"fill"}],"measurement":"netdata.system.cpu.softirq","policy":"default","refId":"A","resultFormat":"time_series","select":[[{"params":["value"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[{"key":"host","operator":"=","value":"yunohost.yunohost.org"}]},{"alias":"user","dsType":"influxdb","groupBy":[{"params":["$interval"],"type":"time"},{"params":["null"],"type":"fill"}],"measurement":"netdata.system.cpu.user","policy":"default","refId":"C","resultFormat":"time_series","select":[[{"params":["value"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[{"key":"host","operator":"=","value":"yunohost.yunohost.org"}]},{"alias":"system","dsType":"influxdb","groupBy":[{"params":["$interval"],"type":"time"},{"params":["null"],"type":"fill"}],"measurement":"netdata.system.cpu.system","policy":"default","refId":"D","resultFormat":"time_series","select":[[{"params":["value"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[{"key":"host","operator":"=","value":"yunohost.yunohost.org"}]},{"alias":"iowait","dsType":"influxdb","groupBy":[{"params":["$interval"],"type":"time"},{"params":["null"],"type":"fill"}],"measurement":"netdata.system.cpu.iowait","policy":"default","refId":"E","resultFormat":"time_series","select":[[{"params":["value"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[{"key":"host","operator":"=","value":"yunohost.yunohost.org"}]}],"thresholds":[],"timeFrom":null,"timeShift":null,"title":"CPU Utilization","tooltip":{"msResolution":false,"shared":true,"sort":0,"value_type":"individual"},"type":"graph","xaxis":{"mode":"time","name":null,"show":true,"values":[]},"yaxes":[{"format":"percent","label":null,"logBase":1,"max":null,"min":null,"show":true},{"format":"short","label":null,"logBase":1,"max":null,"min":null,"show":true}]},{"aliasColors":{},"bars":false,"datasource":"InfluxDB","editable":true,"error":false,"fill":1,"id":2,"legend":{"avg":false,"current":false,"max":false,"min":false,"show":true,"total":false,"values":false},"lines":true,"linewidth":1,"links":[],"nullPointMode":"connected","percentage":false,"pointradius":5,"points":false,"renderer":"flot","seriesOverrides":[],"span":6,"stack":false,"steppedLine":false,"targets":[{"alias":"Load during the last minute","dsType":"influxdb","groupBy":[{"params":["$interval"],"type":"time"},{"params":["null"],"type":"fill"}],"measurement":"netdata.system.load.load1","policy":"default","refId":"B","resultFormat":"time_series","select":[[{"params":["value"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[{"key":"host","operator":"=","value":"yunohost.yunohost.org"}]},{"alias":"Load during the last 5 minutes","dsType":"influxdb","groupBy":[{"params":["$interval"],"type":"time"},{"params":["null"],"type":"fill"}],"measurement":"netdata.system.load.load5","policy":"default","refId":"C","resultFormat":"time_series","select":[[{"params":["value"],"type":"field"},{"params":[],"type":"mean"}]],"tags":[{"key":"host","operator":"=","value":"yunohost.yunohost.org"}]},{"alias":"Load during the last 15 minutes","dsType":"influxdb","groupBy":[{"params":["$interval"],"type":"time"},{"params"