Skip to content

Instantly share code, notes, and snippets.

@descrepes
Created January 19, 2016 14:39
Show Gist options
  • Save descrepes/ed379d0355a2b135fe59 to your computer and use it in GitHub Desktop.
Save descrepes/ed379d0355a2b135fe59 to your computer and use it in GitHub Desktop.
{
"id": 22,
"title": "Shinken Alerts",
"originalTitle": "Shinken Alerts",
"tags": [
"monitoring"
],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"rows": [
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{
"columns": [
{
"text": "@timestamp",
"value": "@timestamp"
},
{
"text": "host_name",
"value": "host_name"
},
{
"text": "service_description",
"value": "service_description"
},
{
"text": "plugin_output",
"value": "plugin_output"
},
{
"text": "state",
"value": "state"
}
],
"datasource": "Shinken2",
"editable": true,
"error": false,
"fontSize": "100%",
"id": 1,
"interval": ">60s",
"isNew": true,
"links": [],
"pageSize": 50,
"scroll": false,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"span": 12,
"styles": [
{
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "@timestamp",
"type": "date"
},
{
"colorMode": "row",
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"decimals": 0,
"pattern": "state",
"thresholds": [
"0",
"1",
"2"
],
"type": "number",
"unit": "none"
},
{
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"pattern": "/host_name|service_description|plugin_output/",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
{
"bucketAggs": [],
"dsType": "elasticsearch",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"metrics": [
{
"field": "select field",
"id": "1",
"meta": {},
"settings": {},
"type": "raw_document"
}
],
"query": "type:(ALERT) AND state_type:(HARD) AND host_name:(*[[host_search]]*) AND service_description:(*[[service_search]]*) AND plugin_output:(*[[output_search]]*)",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [],
"timeField": "@timestamp"
}
],
"timeFrom": null,
"title": "Shinken Alerts",
"transform": "json",
"transparent": true,
"type": "table"
}
],
"title": "Row"
}
],
"time": {
"from": "now-15m",
"to": "now"
},
"timepicker": {
"now": true,
"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": [
{
"allFormat": "lucene",
"current": {
"tags": [],
"text": "*",
"value": "*"
},
"datasource": "Shinken2",
"includeAll": false,
"label": "Host",
"multi": false,
"multiFormat": "lucene",
"name": "host_search",
"options": [
{
"selected": true,
"text": "*",
"value": "*"
}
],
"query": "*",
"refresh": false,
"regex": "",
"tagValuesQuery": "",
"tagsQuery": "",
"type": "custom",
"useTags": false
},
{
"allFormat": "lucene",
"current": {
"tags": [],
"text": "*",
"value": "*"
},
"datasource": "Shinken2",
"includeAll": false,
"label": "Service",
"multi": false,
"multiFormat": "lucene",
"name": "service_search",
"options": [
{
"selected": true,
"text": "*",
"value": "*"
}
],
"query": "*",
"refresh": false,
"regex": "",
"tagValuesQuery": "",
"tagsQuery": "",
"type": "custom",
"useTags": false
},
{
"allFormat": "lucene",
"current": {
"text": "*",
"value": "*"
},
"datasource": "Shinken2",
"includeAll": false,
"label": "Output",
"multi": false,
"multiFormat": "lucene",
"name": "output_search",
"options": [
{
"selected": true,
"text": "*",
"value": "*"
}
],
"query": "*",
"refresh": false,
"regex": "",
"tagValuesQuery": "",
"tagsQuery": "",
"type": "custom",
"useTags": false
}
]
},
"annotations": {
"list": []
},
"refresh": "30s",
"schemaVersion": 8,
"version": 15,
"links": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment