mirror of https://github.com/statping/statping
				
				
				
			
		
			
				
	
	
		
			607 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			JSON
		
	
	
			
		
		
	
	
			607 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			JSON
		
	
	
{
 | 
						|
  "__inputs": [
 | 
						|
    {
 | 
						|
      "name": "DS_PROMETHEUS",
 | 
						|
      "label": "prometheus",
 | 
						|
      "description": "Required Prometheus endpoint",
 | 
						|
      "type": "datasource",
 | 
						|
      "pluginId": "prometheus",
 | 
						|
      "pluginName": "Prometheus"
 | 
						|
    }
 | 
						|
  ],
 | 
						|
  "__requires": [
 | 
						|
    {
 | 
						|
      "type": "grafana",
 | 
						|
      "id": "grafana",
 | 
						|
      "name": "Grafana",
 | 
						|
      "version": "5.2.1"
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "panel",
 | 
						|
      "id": "graph",
 | 
						|
      "name": "Graph",
 | 
						|
      "version": "5.0.0"
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "datasource",
 | 
						|
      "id": "prometheus",
 | 
						|
      "name": "Prometheus",
 | 
						|
      "version": "5.0.0"
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "panel",
 | 
						|
      "id": "singlestat",
 | 
						|
      "name": "Singlestat",
 | 
						|
      "version": "5.0.0"
 | 
						|
    }
 | 
						|
  ],
 | 
						|
  "annotations": {
 | 
						|
    "list": [
 | 
						|
      {
 | 
						|
        "builtIn": 1,
 | 
						|
        "datasource": "-- Grafana --",
 | 
						|
        "enable": true,
 | 
						|
        "hide": true,
 | 
						|
        "iconColor": "rgba(0, 211, 255, 1)",
 | 
						|
        "name": "Annotations & Alerts",
 | 
						|
        "type": "dashboard"
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "editable": true,
 | 
						|
  "gnetId": 6950,
 | 
						|
  "graphTooltip": 0,
 | 
						|
  "id": null,
 | 
						|
  "iteration": 1531455265624,
 | 
						|
  "links": [],
 | 
						|
  "panels": [
 | 
						|
    {
 | 
						|
      "cacheTimeout": null,
 | 
						|
      "colorBackground": false,
 | 
						|
      "colorValue": true,
 | 
						|
      "colors": [
 | 
						|
        "#890f02",
 | 
						|
        "rgba(237, 129, 40, 0.89)",
 | 
						|
        "rgb(72, 198, 35)"
 | 
						|
      ],
 | 
						|
      "datasource": "${DS_PROMETHEUS}",
 | 
						|
      "format": "locale",
 | 
						|
      "gauge": {
 | 
						|
        "maxValue": 1,
 | 
						|
        "minValue": 0,
 | 
						|
        "show": false,
 | 
						|
        "thresholdLabels": false,
 | 
						|
        "thresholdMarkers": true
 | 
						|
      },
 | 
						|
      "gridPos": {
 | 
						|
        "h": 2,
 | 
						|
        "w": 5,
 | 
						|
        "x": 0,
 | 
						|
        "y": 0
 | 
						|
      },
 | 
						|
      "id": 6,
 | 
						|
      "interval": null,
 | 
						|
      "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"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "sparkline": {
 | 
						|
        "fillColor": "rgba(31, 118, 189, 0.18)",
 | 
						|
        "full": false,
 | 
						|
        "lineColor": "rgb(31, 120, 193)",
 | 
						|
        "show": false
 | 
						|
      },
 | 
						|
      "tableColumn": "",
 | 
						|
      "targets": [
 | 
						|
        {
 | 
						|
          "expr": "statup_service_online{name=\"${service}\"}",
 | 
						|
          "format": "time_series",
 | 
						|
          "intervalFactor": 1,
 | 
						|
          "refId": "A"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "thresholds": "0,1",
 | 
						|
      "title": "",
 | 
						|
      "transparent": true,
 | 
						|
      "type": "singlestat",
 | 
						|
      "valueFontSize": "120%",
 | 
						|
      "valueMaps": [
 | 
						|
        {
 | 
						|
          "op": "=",
 | 
						|
          "text": "ONLINE",
 | 
						|
          "value": "1"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "op": "=",
 | 
						|
          "text": "OFFLINE",
 | 
						|
          "value": "0"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "valueName": "current"
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "aliasColors": {},
 | 
						|
      "bars": false,
 | 
						|
      "dashLength": 10,
 | 
						|
      "dashes": false,
 | 
						|
      "datasource": "${DS_PROMETHEUS}",
 | 
						|
      "fill": 1,
 | 
						|
      "gridPos": {
 | 
						|
        "h": 8,
 | 
						|
        "w": 19,
 | 
						|
        "x": 5,
 | 
						|
        "y": 0
 | 
						|
      },
 | 
						|
      "id": 2,
 | 
						|
      "legend": {
 | 
						|
        "avg": false,
 | 
						|
        "current": false,
 | 
						|
        "max": false,
 | 
						|
        "min": false,
 | 
						|
        "show": false,
 | 
						|
        "total": false,
 | 
						|
        "values": false
 | 
						|
      },
 | 
						|
      "lines": true,
 | 
						|
      "linewidth": 1,
 | 
						|
      "links": [],
 | 
						|
      "nullPointMode": "null",
 | 
						|
      "percentage": false,
 | 
						|
      "pointradius": 5,
 | 
						|
      "points": false,
 | 
						|
      "renderer": "flot",
 | 
						|
      "seriesOverrides": [],
 | 
						|
      "spaceLength": 10,
 | 
						|
      "stack": false,
 | 
						|
      "steppedLine": false,
 | 
						|
      "targets": [
 | 
						|
        {
 | 
						|
          "expr": "statup_service_latency{name=\"${service}\"}",
 | 
						|
          "format": "time_series",
 | 
						|
          "intervalFactor": 1,
 | 
						|
          "legendFormat": "{{name}}",
 | 
						|
          "refId": "A"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "thresholds": [],
 | 
						|
      "timeFrom": null,
 | 
						|
      "timeShift": null,
 | 
						|
      "title": "${service} Latency",
 | 
						|
      "tooltip": {
 | 
						|
        "shared": true,
 | 
						|
        "sort": 0,
 | 
						|
        "value_type": "individual"
 | 
						|
      },
 | 
						|
      "type": "graph",
 | 
						|
      "xaxis": {
 | 
						|
        "buckets": null,
 | 
						|
        "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
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "yaxis": {
 | 
						|
        "align": false,
 | 
						|
        "alignLevel": null
 | 
						|
      }
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "cacheTimeout": null,
 | 
						|
      "colorBackground": false,
 | 
						|
      "colorValue": false,
 | 
						|
      "colors": [
 | 
						|
        "#299c46",
 | 
						|
        "rgba(237, 129, 40, 0.89)",
 | 
						|
        "#890f02"
 | 
						|
      ],
 | 
						|
      "datasource": "${DS_PROMETHEUS}",
 | 
						|
      "decimals": 0,
 | 
						|
      "format": "ms",
 | 
						|
      "gauge": {
 | 
						|
        "maxValue": 500,
 | 
						|
        "minValue": 1,
 | 
						|
        "show": true,
 | 
						|
        "thresholdLabels": true,
 | 
						|
        "thresholdMarkers": true
 | 
						|
      },
 | 
						|
      "gridPos": {
 | 
						|
        "h": 7,
 | 
						|
        "w": 5,
 | 
						|
        "x": 0,
 | 
						|
        "y": 2
 | 
						|
      },
 | 
						|
      "id": 7,
 | 
						|
      "interval": null,
 | 
						|
      "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"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "sparkline": {
 | 
						|
        "fillColor": "rgba(31, 118, 189, 0.18)",
 | 
						|
        "full": false,
 | 
						|
        "lineColor": "rgb(31, 120, 193)",
 | 
						|
        "show": false
 | 
						|
      },
 | 
						|
      "tableColumn": "",
 | 
						|
      "targets": [
 | 
						|
        {
 | 
						|
          "expr": "statup_service_latency{name=\"${service}\"}",
 | 
						|
          "format": "time_series",
 | 
						|
          "intervalFactor": 1,
 | 
						|
          "refId": "A"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "thresholds": "250,400",
 | 
						|
      "title": "",
 | 
						|
      "transparent": true,
 | 
						|
      "type": "singlestat",
 | 
						|
      "valueFontSize": "50%",
 | 
						|
      "valueMaps": [
 | 
						|
        {
 | 
						|
          "op": "=",
 | 
						|
          "text": "N/A",
 | 
						|
          "value": "null"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "valueName": "current"
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "aliasColors": {},
 | 
						|
      "bars": false,
 | 
						|
      "dashLength": 10,
 | 
						|
      "dashes": false,
 | 
						|
      "datasource": "${DS_PROMETHEUS}",
 | 
						|
      "fill": 1,
 | 
						|
      "gridPos": {
 | 
						|
        "h": 8,
 | 
						|
        "w": 19,
 | 
						|
        "x": 5,
 | 
						|
        "y": 8
 | 
						|
      },
 | 
						|
      "id": 8,
 | 
						|
      "legend": {
 | 
						|
        "avg": false,
 | 
						|
        "current": false,
 | 
						|
        "max": false,
 | 
						|
        "min": false,
 | 
						|
        "show": false,
 | 
						|
        "total": false,
 | 
						|
        "values": false
 | 
						|
      },
 | 
						|
      "lines": true,
 | 
						|
      "linewidth": 1,
 | 
						|
      "links": [],
 | 
						|
      "nullPointMode": "null",
 | 
						|
      "percentage": false,
 | 
						|
      "pointradius": 5,
 | 
						|
      "points": false,
 | 
						|
      "renderer": "flot",
 | 
						|
      "seriesOverrides": [],
 | 
						|
      "spaceLength": 10,
 | 
						|
      "stack": false,
 | 
						|
      "steppedLine": false,
 | 
						|
      "targets": [
 | 
						|
        {
 | 
						|
          "expr": "statup_service_response_length{name=\"${service}\"}",
 | 
						|
          "format": "time_series",
 | 
						|
          "intervalFactor": 1,
 | 
						|
          "legendFormat": "{{name}}",
 | 
						|
          "refId": "A"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "thresholds": [],
 | 
						|
      "timeFrom": null,
 | 
						|
      "timeShift": null,
 | 
						|
      "title": "${service} Response Size",
 | 
						|
      "tooltip": {
 | 
						|
        "shared": true,
 | 
						|
        "sort": 0,
 | 
						|
        "value_type": "individual"
 | 
						|
      },
 | 
						|
      "type": "graph",
 | 
						|
      "xaxis": {
 | 
						|
        "buckets": null,
 | 
						|
        "mode": "time",
 | 
						|
        "name": null,
 | 
						|
        "show": true,
 | 
						|
        "values": []
 | 
						|
      },
 | 
						|
      "yaxes": [
 | 
						|
        {
 | 
						|
          "format": "bytes",
 | 
						|
          "label": null,
 | 
						|
          "logBase": 1,
 | 
						|
          "max": null,
 | 
						|
          "min": null,
 | 
						|
          "show": true
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "format": "short",
 | 
						|
          "label": null,
 | 
						|
          "logBase": 1,
 | 
						|
          "max": null,
 | 
						|
          "min": null,
 | 
						|
          "show": true
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "yaxis": {
 | 
						|
        "align": false,
 | 
						|
        "alignLevel": null
 | 
						|
      }
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "cacheTimeout": null,
 | 
						|
      "colorBackground": false,
 | 
						|
      "colorValue": false,
 | 
						|
      "colors": [
 | 
						|
        "#299c46",
 | 
						|
        "rgba(237, 129, 40, 0.89)",
 | 
						|
        "#d44a3a"
 | 
						|
      ],
 | 
						|
      "datasource": "${DS_PROMETHEUS}",
 | 
						|
      "format": "locale",
 | 
						|
      "gauge": {
 | 
						|
        "maxValue": 100,
 | 
						|
        "minValue": 0,
 | 
						|
        "show": false,
 | 
						|
        "thresholdLabels": false,
 | 
						|
        "thresholdMarkers": true
 | 
						|
      },
 | 
						|
      "gridPos": {
 | 
						|
        "h": 3,
 | 
						|
        "w": 5,
 | 
						|
        "x": 0,
 | 
						|
        "y": 9
 | 
						|
      },
 | 
						|
      "id": 5,
 | 
						|
      "interval": null,
 | 
						|
      "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"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "sparkline": {
 | 
						|
        "fillColor": "rgba(31, 118, 189, 0.18)",
 | 
						|
        "full": false,
 | 
						|
        "lineColor": "rgb(31, 120, 193)",
 | 
						|
        "show": false
 | 
						|
      },
 | 
						|
      "tableColumn": "",
 | 
						|
      "targets": [
 | 
						|
        {
 | 
						|
          "expr": "statup_service_status_code{name=\"${service}\"}",
 | 
						|
          "format": "time_series",
 | 
						|
          "intervalFactor": 1,
 | 
						|
          "refId": "A"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "thresholds": "",
 | 
						|
      "title": "Response Status Code",
 | 
						|
      "type": "singlestat",
 | 
						|
      "valueFontSize": "120%",
 | 
						|
      "valueMaps": [
 | 
						|
        {
 | 
						|
          "op": "=",
 | 
						|
          "text": "N/A",
 | 
						|
          "value": "null"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "valueName": "current"
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "cacheTimeout": null,
 | 
						|
      "colorBackground": false,
 | 
						|
      "colorValue": false,
 | 
						|
      "colors": [
 | 
						|
        "#299c46",
 | 
						|
        "rgba(237, 129, 40, 0.89)",
 | 
						|
        "#d44a3a"
 | 
						|
      ],
 | 
						|
      "datasource": "${DS_PROMETHEUS}",
 | 
						|
      "format": "bytes",
 | 
						|
      "gauge": {
 | 
						|
        "maxValue": 100,
 | 
						|
        "minValue": 0,
 | 
						|
        "show": false,
 | 
						|
        "thresholdLabels": false,
 | 
						|
        "thresholdMarkers": true
 | 
						|
      },
 | 
						|
      "gridPos": {
 | 
						|
        "h": 3,
 | 
						|
        "w": 5,
 | 
						|
        "x": 0,
 | 
						|
        "y": 12
 | 
						|
      },
 | 
						|
      "id": 4,
 | 
						|
      "interval": null,
 | 
						|
      "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"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "sparkline": {
 | 
						|
        "fillColor": "rgba(31, 118, 189, 0.18)",
 | 
						|
        "full": false,
 | 
						|
        "lineColor": "rgb(31, 120, 193)",
 | 
						|
        "show": false
 | 
						|
      },
 | 
						|
      "tableColumn": "",
 | 
						|
      "targets": [
 | 
						|
        {
 | 
						|
          "expr": "statup_service_response_length{name=\"${service}\"}",
 | 
						|
          "format": "time_series",
 | 
						|
          "intervalFactor": 1,
 | 
						|
          "refId": "A"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "thresholds": "",
 | 
						|
      "title": "Response Size",
 | 
						|
      "type": "singlestat",
 | 
						|
      "valueFontSize": "80%",
 | 
						|
      "valueMaps": [
 | 
						|
        {
 | 
						|
          "op": "=",
 | 
						|
          "text": "N/A",
 | 
						|
          "value": "null"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "valueName": "current"
 | 
						|
    }
 | 
						|
  ],
 | 
						|
  "schemaVersion": 16,
 | 
						|
  "style": "dark",
 | 
						|
  "tags": [],
 | 
						|
  "templating": {
 | 
						|
    "list": [
 | 
						|
      {
 | 
						|
        "hide": 0,
 | 
						|
        "label": "datasource",
 | 
						|
        "name": "DS_PROMETHEUS",
 | 
						|
        "options": [],
 | 
						|
        "query": "prometheus",
 | 
						|
        "refresh": 1,
 | 
						|
        "regex": "",
 | 
						|
        "type": "datasource"
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "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"
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "timezone": "",
 | 
						|
  "title": "Statping",
 | 
						|
  "uid": "6BzRjddmz",
 | 
						|
  "version": 25,
 | 
						|
  "description": "Monitor your websites and applications using Statping service. View more information at https://github.com/statping/statping"
 | 
						|
}
 |