2024-01-26 17:12:58 +01:00
{
2024-02-06 22:40:40 +01:00
"annotations" : {
2024-01-26 17:12:58 +01:00
"list" : [
{
"builtIn" : 1 ,
"datasource" : {
"type" : "grafana" ,
"uid" : "-- Grafana --"
} ,
"enable" : true ,
"hide" : true ,
"iconColor" : "rgba(0, 211, 255, 1)" ,
"name" : "Annotations & Alerts" ,
"type" : "dashboard"
}
]
} ,
"editable" : true ,
"fiscalYearStartMonth" : 0 ,
"graphTooltip" : 1 ,
2024-02-06 22:40:40 +01:00
"links" : [ ] ,
2024-01-26 17:12:58 +01:00
"liveNow" : false ,
"panels" : [
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"description" : "" ,
"gridPos" : {
"h" : 5 ,
"w" : 19 ,
"x" : 0 ,
"y" : 0
} ,
"id" : 33 ,
"options" : {
"code" : {
"language" : "plaintext" ,
"showLineNumbers" : false ,
"showMiniMap" : false
} ,
2024-02-06 22:40:40 +01:00
"content" : "If you don't observe any data initially, please wait a few minutes for it to appear. \n\nUpon the first running the guide (if there is not enough node_exporter monitoring data collected in your system), you may notice a significant number of false positive anomalies found. The predictions will become more accurate with at least two weeks' (full `fit_window`) worth of data provided to vmanomaly.\n\nEach row displays information for a distinct mode. The query used for anomaly detection is `sum(rate(node_cpu_seconds_total[5m])) by (mode, instance, job)`.\n" ,
2024-01-26 17:12:58 +01:00
"mode" : "markdown"
} ,
"pluginVersion" : "10.2.1" ,
"title" : "Overview" ,
"type" : "text"
} ,
{
"collapsed" : false ,
"gridPos" : {
"h" : 1 ,
"w" : 24 ,
"x" : 0 ,
"y" : 5
} ,
"id" : 2 ,
"panels" : [ ] ,
"repeat" : "mode" ,
"repeatDirection" : "h" ,
"title" : "CPU Mode: $mode" ,
"type" : "row"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
2024-02-06 22:40:40 +01:00
"description" : "sum(rate(node_cpu_seconds_total{mode=~\"$mode\"}[5m])) by (mode, instance,job)" ,
2024-01-26 17:12:58 +01:00
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
"axisBorderShow" : false ,
"axisCenteredZero" : false ,
"axisColorMode" : "text" ,
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 0 ,
"gradientMode" : "none" ,
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
} ,
"insertNulls" : false ,
"lineInterpolation" : "linear" ,
2024-02-06 22:40:40 +01:00
"lineStyle" : {
"fill" : "solid"
} ,
2024-01-26 17:12:58 +01:00
"lineWidth" : 1 ,
2024-02-06 22:40:40 +01:00
"pointSize" : 1 ,
2024-01-26 17:12:58 +01:00
"scaleDistribution" : {
"type" : "linear"
} ,
2024-02-06 22:40:40 +01:00
"showPoints" : "never" ,
2024-01-26 17:12:58 +01:00
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
} ,
"thresholdsStyle" : {
"mode" : "off"
}
} ,
"mappings" : [ ] ,
2024-02-06 22:40:40 +01:00
"min" : 0 ,
2024-01-26 17:12:58 +01:00
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
2024-02-06 22:40:40 +01:00
} ,
"unit" : "none"
2024-01-26 17:12:58 +01:00
} ,
"overrides" : [
{
"__systemRef" : "hideSeriesFrom" ,
"matcher" : {
"id" : "byNames" ,
"options" : {
"mode" : "exclude" ,
"names" : [
"Instance: node-exporter:9100, Job: node-exporter"
] ,
"prefix" : "All except:" ,
"readOnly" : true
}
} ,
"properties" : [
{
"id" : "custom.hideFrom" ,
"value" : {
"legend" : false ,
"tooltip" : false ,
2024-01-27 14:16:02 +01:00
"viz" : false
2024-01-26 17:12:58 +01:00
}
}
]
}
]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 12 ,
"x" : 0 ,
"y" : 6
} ,
"id" : 3 ,
"options" : {
"legend" : {
"calcs" : [
"min" ,
"max" ,
"lastNotNull"
] ,
"displayMode" : "table" ,
"placement" : "bottom" ,
"showLegend" : true
} ,
"tooltip" : {
2024-02-06 22:40:40 +01:00
"mode" : "multi" ,
2024-01-26 17:12:58 +01:00
"sort" : "none"
}
} ,
"targets" : [
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"editorMode" : "code" ,
2024-02-06 22:40:40 +01:00
"expr" : "sum(rate(node_cpu_seconds_total{mode=~\"$mode\"}[5m])) by (mode, instance,job)" ,
2024-01-26 17:12:58 +01:00
"instant" : false ,
"legendFormat" : "Instance: {{instance}}, Job {{job}}" ,
"range" : true ,
"refId" : "A"
}
] ,
2024-02-06 22:40:40 +01:00
"title" : "CPU rate sum for $mode mode" ,
2024-01-26 17:12:58 +01:00
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
"axisBorderShow" : false ,
"axisCenteredZero" : false ,
"axisColorMode" : "text" ,
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 0 ,
"gradientMode" : "none" ,
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
} ,
"insertNulls" : false ,
"lineInterpolation" : "linear" ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"scaleDistribution" : {
"type" : "linear"
} ,
2024-02-06 22:40:40 +01:00
"showPoints" : "never" ,
2024-01-26 17:12:58 +01:00
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
} ,
"thresholdsStyle" : {
"mode" : "dashed"
}
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
}
]
}
} ,
2024-02-06 22:40:40 +01:00
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "threshold"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "red" ,
"mode" : "fixed"
}
}
]
}
]
2024-01-26 17:12:58 +01:00
} ,
"gridPos" : {
"h" : 8 ,
"w" : 12 ,
"x" : 12 ,
"y" : 6
} ,
"id" : 1 ,
"options" : {
"legend" : {
"calcs" : [
"min" ,
"max" ,
"lastNotNull"
] ,
"displayMode" : "table" ,
"placement" : "bottom" ,
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"targets" : [
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"editorMode" : "code" ,
"expr" : "anomaly_score{mode=~\"$mode\"}" ,
"instant" : false ,
"legendFormat" : "Instance: {{instance}}, Job: {{job}}" ,
"range" : true ,
"refId" : "A"
2024-02-06 22:40:40 +01:00
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"editorMode" : "code" ,
"expr" : "vector(1)" ,
"hide" : false ,
"instant" : false ,
"legendFormat" : "threshold" ,
"range" : true ,
"refId" : "B"
2024-01-26 17:12:58 +01:00
}
] ,
"title" : "Anomaly Scores for $mode mode" ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
"axisBorderShow" : false ,
"axisCenteredZero" : false ,
"axisColorMode" : "text" ,
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 0 ,
"gradientMode" : "none" ,
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
} ,
"insertNulls" : false ,
"lineInterpolation" : "linear" ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"scaleDistribution" : {
"type" : "linear"
} ,
2024-02-06 22:40:40 +01:00
"showPoints" : "never" ,
2024-01-26 17:12:58 +01:00
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
} ,
"thresholdsStyle" : {
"mode" : "off"
}
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "Predicted Upper Boundary"
} ,
"properties" : [
{
"id" : "custom.fillBelowTo" ,
2024-02-06 22:40:40 +01:00
"value" : "Predicted Lower Boundary"
2024-01-26 17:12:58 +01:00
}
]
}
]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 12 ,
"x" : 0 ,
"y" : 14
} ,
"id" : 4 ,
"options" : {
"legend" : {
"calcs" : [ ] ,
"displayMode" : "table" ,
2024-02-06 22:40:40 +01:00
"placement" : "bottom" ,
2024-01-26 17:12:58 +01:00
"showLegend" : true
} ,
"tooltip" : {
2024-02-06 22:40:40 +01:00
"mode" : "multi" ,
2024-01-26 17:12:58 +01:00
"sort" : "none"
}
} ,
"targets" : [
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"editorMode" : "code" ,
"expr" : "yhat{mode=~\"$mode\"}" ,
"instant" : false ,
"legendFormat" : "Predicted Value: yhat" ,
"range" : true ,
"refId" : "A"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"editorMode" : "code" ,
"expr" : "yhat_lower{mode=~\"$mode\"}" ,
"hide" : false ,
"instant" : false ,
"legendFormat" : "Predicted Lower Boundary" ,
"range" : true ,
"refId" : "B"
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"editorMode" : "code" ,
"expr" : "yhat_upper{mode=~\"$mode\"}" ,
"hide" : false ,
"instant" : false ,
"legendFormat" : "Predicted Upper Boundary" ,
"range" : true ,
"refId" : "C"
2024-02-06 22:40:40 +01:00
} ,
{
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"editorMode" : "code" ,
"expr" : "sum(rate(node_cpu_seconds_total{mode=~\"$mode\"}[5m])) by (mode, instance,job)" ,
"hide" : false ,
"instant" : false ,
"legendFormat" : "Value" ,
"range" : true ,
"refId" : "D"
2024-01-26 17:12:58 +01:00
}
] ,
"title" : "Predicted Value and Boundaries for $mode mode" ,
"type" : "timeseries"
}
] ,
"refresh" : "" ,
"schemaVersion" : 38 ,
"tags" : [ ] ,
"templating" : {
"list" : [
{
"allValue" : ".*" ,
2024-02-06 22:40:40 +01:00
"current" : { } ,
2024-01-26 17:12:58 +01:00
"datasource" : {
"type" : "prometheus" ,
"uid" : "VictoriaMetrics"
} ,
"definition" : "label_values(node_cpu_seconds_total,mode)" ,
"hide" : 2 ,
"includeAll" : true ,
"label" : "Mode" ,
"multi" : true ,
"name" : "mode" ,
"options" : [ ] ,
"query" : {
"qryType" : 1 ,
"query" : "label_values(node_cpu_seconds_total,mode)" ,
"refId" : "PrometheusVariableQueryEditor-VariableQuery"
} ,
"refresh" : 2 ,
"regex" : "" ,
"skipUrlSync" : false ,
2024-02-06 22:40:40 +01:00
"sort" : 2 ,
2024-01-26 17:12:58 +01:00
"type" : "query"
}
]
} ,
"time" : {
2024-02-06 22:40:40 +01:00
"from" : "now-3h" ,
2024-01-26 17:12:58 +01:00
"to" : "now"
} ,
"timepicker" : { } ,
"timezone" : "" ,
"title" : "Vmanomaly Guide" ,
"uid" : "cfa61e6a-6074-4626-8e54-ea33e08746b9" ,
2024-02-06 22:40:40 +01:00
"version" : 3 ,
2024-01-26 17:12:58 +01:00
"weekStart" : ""
}