1{ 2 "__inputs": [ 3 { 4 "name": "DS_ICINGA2", 5 "label": "Icinga2", 6 "description": "", 7 "type": "datasource", 8 "pluginId": "influxdb", 9 "pluginName": "InfluxDB" 10 }, 11 { 12 "name": "VAR_HOSTNAME", 13 "type": "constant", 14 "label": "hostname", 15 "value": "null", 16 "description": "" 17 }, 18 { 19 "name": "VAR_SERVICE", 20 "type": "constant", 21 "label": "service", 22 "value": "null", 23 "description": "" 24 }, 25 { 26 "name": "VAR_COMMAND", 27 "type": "constant", 28 "label": "command", 29 "value": "null", 30 "description": "" 31 } 32 ], 33 "__requires": [ 34 { 35 "type": "grafana", 36 "id": "grafana", 37 "name": "Grafana", 38 "version": "4.6.3" 39 }, 40 { 41 "type": "panel", 42 "id": "graph", 43 "name": "Graph", 44 "version": "" 45 }, 46 { 47 "type": "datasource", 48 "id": "influxdb", 49 "name": "InfluxDB", 50 "version": "1.0.0" 51 } 52 ], 53 "annotations": { 54 "list": [ 55 { 56 "builtIn": 1, 57 "datasource": "-- Grafana --", 58 "enable": true, 59 "hide": true, 60 "iconColor": "rgba(0, 211, 255, 1)", 61 "name": "Annotations & Alerts", 62 "type": "dashboard" 63 } 64 ] 65 }, 66 "editable": true, 67 "gnetId": null, 68 "graphTooltip": 0, 69 "hideControls": false, 70 "id": null, 71 "links": [], 72 "rows": [ 73 { 74 "collapse": false, 75 "height": "250px", 76 "panels": [ 77 { 78 "aliasColors": { 79 "time": "#64b0c8" 80 }, 81 "bars": false, 82 "dashLength": 10, 83 "dashes": false, 84 "datasource": "${DS_ICINGA2}", 85 "fill": 1, 86 "id": 1, 87 "legend": { 88 "alignAsTable": true, 89 "avg": true, 90 "current": true, 91 "max": true, 92 "min": true, 93 "show": true, 94 "total": false, 95 "values": true 96 }, 97 "lines": true, 98 "linewidth": 1, 99 "links": [], 100 "nullPointMode": "null", 101 "percentage": false, 102 "pointradius": 5, 103 "points": false, 104 "renderer": "flot", 105 "seriesOverrides": [], 106 "spaceLength": 10, 107 "span": 12, 108 "stack": false, 109 "steppedLine": false, 110 "targets": [ 111 { 112 "alias": "$tag_metric", 113 "dsType": "influxdb", 114 "groupBy": [ 115 { 116 "params": [ 117 "$__interval" 118 ], 119 "type": "time" 120 }, 121 { 122 "params": [ 123 "metric" 124 ], 125 "type": "tag" 126 }, 127 { 128 "params": [ 129 "none" 130 ], 131 "type": "fill" 132 } 133 ], 134 "measurement": "ssh", 135 "orderByTime": "ASC", 136 "policy": "default", 137 "refId": "A", 138 "resultFormat": "time_series", 139 "select": [ 140 [ 141 { 142 "params": [ 143 "value" 144 ], 145 "type": "field" 146 }, 147 { 148 "params": [], 149 "type": "mean" 150 } 151 ] 152 ], 153 "tags": [ 154 { 155 "key": "hostname", 156 "operator": "=~", 157 "value": "/^$hostname$/" 158 }, 159 { 160 "condition": "AND", 161 "key": "service", 162 "operator": "=~", 163 "value": "/^$service$/" 164 } 165 ] 166 } 167 ], 168 "thresholds": [], 169 "timeFrom": null, 170 "timeShift": null, 171 "title": "$service", 172 "tooltip": { 173 "shared": true, 174 "sort": 0, 175 "value_type": "individual" 176 }, 177 "type": "graph", 178 "xaxis": { 179 "buckets": null, 180 "mode": "time", 181 "name": null, 182 "show": true, 183 "values": [] 184 }, 185 "yaxes": [ 186 { 187 "format": "s", 188 "label": null, 189 "logBase": 1, 190 "max": null, 191 "min": null, 192 "show": true 193 }, 194 { 195 "format": "short", 196 "label": null, 197 "logBase": 1, 198 "max": null, 199 "min": null, 200 "show": false 201 } 202 ] 203 } 204 ], 205 "repeat": null, 206 "repeatIteration": null, 207 "repeatRowId": null, 208 "showTitle": false, 209 "title": "Dashboard Row", 210 "titleSize": "h6" 211 } 212 ], 213 "schemaVersion": 14, 214 "style": "dark", 215 "tags": [], 216 "templating": { 217 "list": [ 218 { 219 "current": { 220 "value": "${VAR_HOSTNAME}", 221 "text": "${VAR_HOSTNAME}" 222 }, 223 "hide": 2, 224 "label": null, 225 "name": "hostname", 226 "options": [ 227 { 228 "value": "${VAR_HOSTNAME}", 229 "text": "${VAR_HOSTNAME}" 230 } 231 ], 232 "query": "${VAR_HOSTNAME}", 233 "type": "constant" 234 }, 235 { 236 "current": { 237 "value": "${VAR_SERVICE}", 238 "text": "${VAR_SERVICE}" 239 }, 240 "hide": 2, 241 "label": null, 242 "name": "service", 243 "options": [ 244 { 245 "value": "${VAR_SERVICE}", 246 "text": "${VAR_SERVICE}" 247 } 248 ], 249 "query": "${VAR_SERVICE}", 250 "type": "constant" 251 }, 252 { 253 "current": { 254 "value": "${VAR_COMMAND}", 255 "text": "${VAR_COMMAND}" 256 }, 257 "hide": 2, 258 "label": null, 259 "name": "command", 260 "options": [ 261 { 262 "value": "${VAR_COMMAND}", 263 "text": "${VAR_COMMAND}" 264 } 265 ], 266 "query": "${VAR_COMMAND}", 267 "type": "constant" 268 } 269 ] 270 }, 271 "time": { 272 "from": "now-6h", 273 "to": "now" 274 }, 275 "timepicker": { 276 "refresh_intervals": [ 277 "5s", 278 "10s", 279 "30s", 280 "1m", 281 "5m", 282 "15m", 283 "30m", 284 "1h", 285 "2h", 286 "1d" 287 ], 288 "time_options": [ 289 "5m", 290 "15m", 291 "1h", 292 "6h", 293 "12h", 294 "24h", 295 "2d", 296 "7d", 297 "30d" 298 ] 299 }, 300 "timezone": "", 301 "title": "ssh", 302 "version": 1 303}