Skip to content

Commit

Permalink
updated config/grafana/*.json (exported from grafana)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Budne committed May 9, 2024
1 parent a5bc61a commit 686454b
Show file tree
Hide file tree
Showing 2 changed files with 288 additions and 99 deletions.
47 changes: 17 additions & 30 deletions conf/grafana/story-indexer-alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"query": {
"params": [
"A",
"5m",
"24h",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
"type": "sum"
},
"type": "query"
}
Expand All @@ -59,11 +59,12 @@
]
},
"aliasColors": {},
"bars": false,
"bars": true,
"cacheTimeout": "",
"dashLength": 10,
"dashes": false,
"datasource": null,
"description": "based on ES document count",
"fill": 0,
"fillGradient": 0,
"gridPos": {
Expand All @@ -82,7 +83,7 @@
"total": false,
"values": false
},
"lines": true,
"lines": false,
"linewidth": 1,
"maxDataPoints": "",
"nullPointMode": "null",
Expand All @@ -99,24 +100,10 @@
"steppedLine": false,
"targets": [
{
"hide": true,
"refCount": 1,
"hide": false,
"refCount": -1,
"refId": "A",
"target": "timeShift(sumSeries(stats.gauges.mc.prod.story-indexer.elastic-stats.indices.stats.docs.*), '1d')",
"textEditor": true
},
{
"hide": true,
"refCount": 1,
"refId": "B",
"target": "timeShift(sumSeries(stats.gauges.mc.prod.story-indexer.elastic-stats.indices.stats.docs.*), '1m')",
"textEditor": true
},
{
"refCount": 0,
"refId": "C",
"target": "diffSeries(#B, #A)",
"targetFull": "diffSeries(timeShift(sumSeries(stats.gauges.mc.prod.story-indexer.elastic-stats.indices.stats.docs.*), '1m'), timeShift(sumSeries(stats.gauges.mc.prod.story-indexer.elastic-stats.indices.stats.docs.*), '1d'))",
"target": "summarize(nonNegativeDerivative(stats.gauges.mc.prod.story-indexer.elastic-stats.all.primaries.docs.count), '1h', 'sum', false)",
"textEditor": false
}
],
Expand All @@ -132,7 +119,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Stories Added in last 24 hours",
"title": "Stories Added to ES by hour",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down Expand Up @@ -176,7 +163,7 @@
{
"evaluator": {
"params": [
2000000
50000
],
"type": "gt"
},
Expand Down Expand Up @@ -259,7 +246,7 @@
"fill": true,
"line": true,
"op": "gt",
"value": 2000000
"value": 50000
}
],
"timeFrom": null,
Expand Down Expand Up @@ -357,7 +344,7 @@
"for": "5m",
"frequency": "1m",
"handler": 1,
"name": "Panel Title alert",
"name": "prod indexer unhealthy indices alert",
"noDataState": "no_data",
"notifications": [
{
Expand All @@ -372,6 +359,7 @@
"dashLength": 10,
"dashes": false,
"datasource": null,
"description": "",
"fill": 1,
"fillGradient": 0,
"gridPos": {
Expand Down Expand Up @@ -430,7 +418,7 @@
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "ES Index health",
"title": "ES unhealthy indices",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down Expand Up @@ -499,7 +487,7 @@
"for": "5m",
"frequency": "1m",
"handler": 1,
"name": "Panel Title alert",
"name": "prod indexer quarantine queues alert",
"noDataState": "no_data",
"notifications": [
{
Expand Down Expand Up @@ -558,8 +546,7 @@
"fill": true,
"line": true,
"op": "gt",
"value": 100000,
"yaxis": "left"
"value": 100000
}
],
"timeFrom": null,
Expand Down Expand Up @@ -631,5 +618,5 @@
"timezone": "",
"title": "story-indexer alerts",
"uid": "hN1OxidSk",
"version": 7
"version": 12
}
Loading

0 comments on commit 686454b

Please sign in to comment.