diff --git a/README.rst b/README.rst index 58a22c9..56ae5bd 100644 --- a/README.rst +++ b/README.rst @@ -674,6 +674,8 @@ We are running a `demo Grafana server `_ that a * `Graphite server `_ reports on Carbon/Graphite own monitoring. +**Note** that a Grafana dashboard sample is available in the */usr/local/etc/alignak/sample/grafana* directory created when you installed the alignak-demo package;) + Install node.js on your server according to the recommended installation process. On FreeBSD: :: diff --git a/alignak_demo/etc/sample/grafana/example_dashboard_alignak_internal.json b/alignak_demo/etc/sample/grafana/example_dashboard_alignak_internal.json new file mode 100644 index 0000000..10597d6 --- /dev/null +++ b/alignak_demo/etc/sample/grafana/example_dashboard_alignak_internal.json @@ -0,0 +1,1841 @@ +{ + "__inputs": [ + { + "name": "DS_587C903CA03284774AAD4A28", + "label": "587c903ca03284774aad4a28", + "description": "", + "type": "datasource", + "pluginId": "graphite", + "pluginName": "Graphite" + } + ], + "__requires": [ + { + "type": "panel", + "id": "singlestat", + "name": "Singlestat", + "version": "" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "3.1.1" + }, + { + "type": "datasource", + "id": "graphite", + "name": "Graphite", + "version": "1.0.0" + } + ], + "id": null, + "title": "Alignak internal metrics", + "tags": [ + "alignak", + "statsd" + ], + "style": "dark", + "timezone": "browser", + "editable": true, + "hideControls": false, + "sharedCrosshair": false, + "rows": [ + { + "collapse": false, + "editable": true, + "height": "100px", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 37, + "interval": null, + "isNew": true, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "minSpan": 2, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "repeat": "schedulers", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "refId": "A", + "target": "stats.gauges.$alignak_prefix.scheduler-$schedulers.configuration.hosts" + } + ], + "thresholds": "", + "title": "Scheduler $schedulers hosts", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + } + ], + "title": "New row" + }, + { + "collapse": false, + "editable": true, + "height": "100px", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 38, + "interval": null, + "isNew": true, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "minSpan": 2, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "repeat": "schedulers", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "refId": "A", + "target": "stats.gauges.$alignak_prefix.scheduler-$schedulers.checks.total" + } + ], + "thresholds": "", + "title": "Scheduler $schedulers checks", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + } + ], + "title": "New row" + }, + { + "collapse": false, + "editable": true, + "height": "100px", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 39, + "interval": null, + "isNew": true, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "minSpan": 4, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "repeat": "schedulers", + "span": 4, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "targets": [ + { + "refId": "A", + "target": "stats.gauges.$alignak_prefix.scheduler-$schedulers.actions.notifications", + "textEditor": false + } + ], + "thresholds": "", + "title": "Scheduler $schedulers notifications", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + } + ], + "title": "New row" + }, + { + "collapse": true, + "editable": true, + "height": "150px", + "panels": [ + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "id": 23, + "interval": null, + "isNew": true, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "span": 3, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": false, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "targets": [ + { + "refId": "A", + "target": "statsd.numStats" + } + ], + "thresholds": "", + "title": "Number of statistics", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "avg" + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 7, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "stats.statsd.graphiteStats.calculationtime" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Calculation time", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": false, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 8, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "statsd.numStats" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Number of metrics", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": false, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 1, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 3, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "stats.statsd.metrics_received" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Received metrics", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "transparent": false, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": true, + "title": "StatsD metrics" + }, + { + "collapse": false, + "editable": true, + "height": "150px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "height": "", + "id": 2, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "minSpan": 4, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "brokers", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "alias(stats.timers.$alignak_prefix.broker-$brokers.get-new-broks.poller.mean, 'From poller')", + "textEditor": false + }, + { + "refId": "B", + "target": "alias(stats.timers.$alignak_prefix.broker-$brokers.get-new-broks.reactionner.mean, 'From reactionner')", + "textEditor": false + }, + { + "refId": "C", + "target": "alias(stats.timers.$alignak_prefix.broker-$brokers.get-new-broks.receiver.mean, 'From receiver')", + "textEditor": false + }, + { + "refId": "D", + "target": "alias(stats.timers.$alignak_prefix.broker-$brokers.get-new-broks.scheduler.mean, 'From scheduler')", + "textEditor": false + }, + { + "refId": "E", + "target": "alias(stats.timers.$alignak_prefix.broker-$brokers.get-new-broks.arbiter.mean, 'From arbiter')", + "textEditor": false + }, + { + "refId": "F", + "target": "alias(stats.timers.$alignak_prefix.broker-$brokers.get-new-broks.broker.mean, 'From self')", + "textEditor": false + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Broker $brokers, time to get broks", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": "", + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 5, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "minSpan": 4, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "brokers", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "alias(stats.timers.$alignak_prefix.broker-$brokers.core.put-to-external-queue.mean, 'To external modules')" + }, + { + "refId": "B", + "target": "alias(stats.timers.$alignak_prefix.broker-$brokers.core.manage-broks.mean, 'With internal modules')" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Broker $brokers, time to manage broks", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": true, + "title": "Brokers metrics" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 6, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "B", + "target": "alias(stats.timers.$alignak_prefix.arbiter-master.core.check-alive.mean, 'Check daemons are alive')" + }, + { + "refId": "A", + "target": "alias(stats.timers.$alignak_prefix.arbiter-master.core.check-dispatch.mean, 'Check configuration dispatch')" + }, + { + "refId": "C", + "target": "alias(stats.timers.$alignak_prefix.arbiter-master.core.dispatch.mean, 'Dispatch configuration')" + }, + { + "refId": "D", + "target": "alias(stats.timers.$alignak_prefix.arbiter-master.core.check-bad-dispatch.mean, 'Check correct dispatch')" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Arbiter daemons monitoring", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "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": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 10, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "B", + "target": "alias(stats.timers.$alignak_prefix.arbiter-master.core.hook.get_objects.mean, 'Get objects hook')" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Arbiter get objects", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 11, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "B", + "target": "alias(stats.timers.$alignak_prefix.arbiter-$arbiters.core.push-external-commands.mean, 'Push external commands')" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Push external commands", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": true, + "title": "Arbiters metrics" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 9, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "minSpan": 4, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "pollers", + "seriesOverrides": [], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "D", + "target": "stats.gauges.$alignak_prefix.poller-$pollers.core.worker-fork.queue-size", + "textEditor": false + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Poller $pollers - workers queue size", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": true, + "title": "Pollers metrics" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 29, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "minSpan": 4, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": "schedulers", + "seriesOverrides": [ + { + "alias": "Mean duration", + "yaxis": 1 + } + ], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "hide": false, + "refId": "A", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.whole.mean, 'Whole loop')", + "textEditor": false + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Scheduler $schedulers total loop duration", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 1, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 14, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": true, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "minSpan": 4, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": "schedulers", + "seriesOverrides": [ + { + "alias": "Mean duration", + "yaxis": 1 + } + ], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "hide": true, + "refId": "A", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.whole.mean, 'Whole loop')", + "textEditor": false + }, + { + "refId": "B", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.update_downtimes_and_comments.mean, 'Update downtimes')", + "textEditor": false + }, + { + "refId": "G", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.schedule.mean, 'Schedule')", + "textEditor": false + }, + { + "refId": "C", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.check_freshness.mean, 'Check freshness')", + "textEditor": false + }, + { + "refId": "D", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.consume_results.mean, 'Consume results')", + "textEditor": false + }, + { + "refId": "I", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.get_new_actions.mean, 'Get new actions')", + "textEditor": false + }, + { + "refId": "H", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.scatter_master_notifications.mean, 'Scatter notifications')", + "textEditor": false + }, + { + "refId": "E", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.get_new_broks.mean, 'Get new broks')", + "textEditor": false + }, + { + "refId": "J", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.delete_zombie_checks.mean, 'Delete zombie checks')", + "textEditor": false + }, + { + "refId": "K", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.delete_zombie_actions.mean, 'Delete zombie actions')", + "textEditor": false + }, + { + "refId": "F", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.clean_caches.mean, 'Clean cache')", + "textEditor": false + }, + { + "hide": true, + "refId": "L", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.update_retention_file.mean, 'Update retention file')", + "textEditor": false + }, + { + "refId": "M", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.check_orphaned.mean, 'Check orphaned')", + "textEditor": false + }, + { + "refId": "N", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.get_and_register_update_program_status_brok.mean, 'Program status brok')", + "textEditor": false + }, + { + "refId": "O", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.check_for_system_time_change.mean, 'Check time change')", + "textEditor": false + }, + { + "refId": "P", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.manage_internal_checks.mean, 'Internal checks')", + "textEditor": false + }, + { + "refId": "Q", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.clean_queues.mean, 'Clean queues')", + "textEditor": false + }, + { + "refId": "R", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.update_business_values.mean, 'Update business values')", + "textEditor": false + }, + { + "refId": "S", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.reset_topology_change_flag.mean, 'Reset topology flag')", + "textEditor": false + }, + { + "refId": "T", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.check_for_expire_acknowledge.mean, 'Check acknowledges')", + "textEditor": false + }, + { + "refId": "U", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.send_broks_to_modules.mean, 'Send broks')", + "textEditor": false + }, + { + "refId": "V", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.get_objects_from_from_queues.mean, 'Get from queues')", + "textEditor": false + }, + { + "refId": "W", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.loop.get_latency_average_percentile.mean, 'Compute latency')", + "textEditor": false + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Scheduler $schedulers loop duration details", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 1, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ] + }, + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 28, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "minSpan": 4, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 2, + "points": false, + "renderer": "flot", + "repeat": "schedulers", + "seriesOverrides": [ + { + "alias": "Mean duration", + "yaxis": 1 + } + ], + "span": 4, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "G", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.core.hook.load_retention.mean, 'Load retention')", + "textEditor": false + }, + { + "refId": "A", + "target": "alias(stats.timers.$alignak_prefix.scheduler-$schedulers.core.hook.save_retention.mean, 'Save retention')", + "textEditor": false + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Scheduler $schedulers retention", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 1, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ] + } + ], + "showTitle": true, + "title": "Schedulers metrics" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 36, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "minSpan": 4, + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "receivers", + "seriesOverrides": [], + "span": 6, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "alias(stats.timers.$alignak_prefix.receiver-$receivers.core.get-objects-from-queues.mean, 'Get objects from modules')", + "textEditor": false + }, + { + "refId": "B", + "target": "alias(stats.timers.$alignak_prefix.receiver-$receivers.core.push-external-commands.mean, 'Push external commands')", + "textEditor": false + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Receiver $receivers timers", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "showTitle": true, + "title": "Receivers metrics" + }, + { + "collapse": false, + "editable": true, + "height": "250px", + "panels": [ + { + "aliasColors": {}, + "bars": false, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "editable": true, + "error": false, + "fill": 1, + "id": 53, + "isNew": true, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "span": 12, + "stack": false, + "steppedLine": false, + "targets": [ + { + "refId": "A", + "target": "stats.gauges.$alignak_prefix.scheduler-master.load.average" + }, + { + "refId": "B", + "target": "stats.gauges.$alignak_prefix.scheduler-master.load.load" + }, + { + "refId": "C", + "target": "stats.gauges.$alignak_prefix.scheduler-master.load.sleep" + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Scheduler load !", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "title": "New row" + } + ], + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "templating": { + "list": [ + { + "allValue": null, + "current": { + "text": "alignak-demo", + "value": "alignak-demo" + }, + "hide": 0, + "includeAll": false, + "label": "Alignak prefix", + "multi": false, + "name": "alignak_prefix", + "options": [ + { + "selected": true, + "text": "alignak-demo", + "value": "alignak-demo" + } + ], + "query": "alignak-demo", + "type": "custom" + }, + { + "allValue": null, + "current": {}, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "hide": 0, + "includeAll": true, + "label": null, + "multi": false, + "name": "arbiters", + "options": [], + "query": "stats.timers.alignak.*", + "refresh": 1, + "regex": "/arbiter-(.*)/", + "sort": 0, + "tagValuesQuery": null, + "tagsQuery": null, + "type": "query" + }, + { + "allValue": null, + "current": {}, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "hide": 0, + "includeAll": true, + "label": null, + "multi": false, + "name": "schedulers", + "options": [], + "query": "stats.timers.alignak.*", + "refresh": 1, + "regex": "/scheduler-(.*)/", + "sort": 0, + "tagValuesQuery": null, + "tagsQuery": null, + "type": "query" + }, + { + "allValue": null, + "current": {}, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "hide": 0, + "includeAll": true, + "label": null, + "multi": false, + "name": "brokers", + "options": [], + "query": "stats.timers.alignak.*", + "refresh": 1, + "regex": "/broker-(.*)/", + "sort": 0, + "tagValuesQuery": null, + "tagsQuery": null, + "type": "query" + }, + { + "allValue": null, + "current": {}, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "hide": 0, + "includeAll": true, + "label": null, + "multi": false, + "name": "pollers", + "options": [], + "query": "stats.timers.alignak.*", + "refresh": 1, + "regex": "/poller-(.*)/", + "sort": 0, + "tagValuesQuery": null, + "tagsQuery": null, + "type": "query" + }, + { + "allValue": null, + "current": {}, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "hide": 0, + "includeAll": true, + "label": null, + "multi": false, + "name": "reactionners", + "options": [], + "query": "stats.timers.alignak.*", + "refresh": 1, + "regex": "/reactionner-(.*)/", + "sort": 0, + "tagValuesQuery": null, + "tagsQuery": null, + "type": "query" + }, + { + "allValue": null, + "current": {}, + "datasource": "${DS_587C903CA03284774AAD4A28}", + "hide": 0, + "includeAll": true, + "label": null, + "multi": false, + "name": "receivers", + "options": [], + "query": "stats.timers.alignak.*", + "refresh": 1, + "regex": "/receiver-(.*)/", + "sort": 0, + "tagValuesQuery": null, + "tagsQuery": null, + "type": "query" + } + ] + }, + "annotations": { + "list": [] + }, + "refresh": "30s", + "schemaVersion": 13, + "version": 40, + "links": [], + "gnetId": null +} \ No newline at end of file diff --git a/version.py b/version.py index 3a417df..b2bc245 100755 --- a/version.py +++ b/version.py @@ -18,7 +18,7 @@ __checks_type__ = u"demo" # Application manifest -__version__ = u"0.1.11" +__version__ = u"0.1.12" __author__ = u"Frédéric Mohier" __author_email__ = u"frederic.mohier@alignak.net" __copyright__ = u"(c) 2015-2017 - %s" % __author__