Skip to content

Instantly share code, notes, and snippets.

@YavorK
Created June 25, 2021 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YavorK/fdac1dd9b1df5680abf65fa2e31166ff to your computer and use it in GitHub Desktop.
Save YavorK/fdac1dd9b1df5680abf65fa2e31166ff to your computer and use it in GitHub Desktop.
tresholds not working.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 14,
"links": [],
"panels": [
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"panels": [],
"repeat": null,
"title": "APIs",
"type": "row"
},
{
"datasource": " Fiilix - AuditDb",
"description": "Example of thresholds not working.\nThreshold is set to 80 (absolute), values are above 200 and they are showing in the normal color.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 14,
"x": 0,
"y": 1
},
"id": 40,
"options": {
"showHeader": true
},
"pluginVersion": "8.0.2",
"repeat": null,
"targets": [
{
"format": "time_series",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": false,
"rawSql": "SELECT\n \"createdAt\" AS \"time\",\n \"memoryRssMb\"\nFROM \"logsNodeMonitoring\"\nWHERE\n \"processCode\" = 'api'\nORDER BY 1",
"refId": "Graph Data",
"select": [
[
{
"params": [
"\"memoryRssMb\""
],
"type": "column"
}
]
],
"table": "\"logsNodeMonitoring\"",
"timeColumn": "\"createdAt\"",
"timeColumnType": "timestamptz",
"where": [
{
"datatype": "varchar",
"name": "",
"params": [
"\"processCode\"",
"=",
"'api'"
],
"type": "expression"
}
]
}
],
"title": "Ram alert for pids in last 5 mins",
"type": "table"
}
],
"refresh": "",
"schemaVersion": 30,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Z thresholds not working. all values are > 200. threshold at 80 (absolute)",
"uid": "6cHNSGz7z",
"version": 46
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment