[{
	"apiVersion": "influxdata.com/v2alpha1",
	"kind": "CheckThreshold",
	"metadata": {
		"name": "high-redis-memory"
	},
	"spec": {
		"description": "Triggers when the average percent of used memory for Redis reaches a defined threshold. To tune this alert, modify the value for the appropriate alert level.",
		"every": "1m",
		"name": "High Redis Memory Usage",
		"query": "from(bucket: \"telegraf/so_short_term\")\n  |\u003e range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |\u003e filter(fn: (r) =\u003e r[\"_measurement\"] == \"redisqueue\")\n  |\u003e filter(fn: (r) =\u003e r[\"_field\"] == \"mem_used\")\n  |\u003e aggregateWindow(every: 1m, fn: mean, createEmpty: false)\n  |\u003e yield(name: \"mean\")",
		"status": "active",
		"statusMessageTemplate": "The amount of available memory for Redis on the ${r.host} node has reached the ${r._level} threshold. The current percent of used memory is ${r.mem_used}.",
		"thresholds": [
			{
				"level": "WARN",
				"type": "greater",
				"value": 80
			},
			{
				"level": "CRIT",
				"type": "greater",
				"value": 90
			}
		]
	}
}]

