From 037e9ac0d7922c9324ea530f923943c4b3dd2bfe Mon Sep 17 00:00:00 2001 From: Justas Balcas Date: Thu, 19 Dec 2024 11:38:42 -0600 Subject: [PATCH] use rate on all switch flow queries --- autogole-api/src/templates/switchflow.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autogole-api/src/templates/switchflow.json b/autogole-api/src/templates/switchflow.json index 977d3cf..30fe8e1 100644 --- a/autogole-api/src/templates/switchflow.json +++ b/autogole-api/src/templates/switchflow.json @@ -79,7 +79,7 @@ }, "editorMode": "code", "exemplar": true, - "expr": "deriv(interface_statistics{Key=\"ifHCInOctets\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8", + "expr": "rate(interface_statistics{Key=\"ifHCInOctets\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8", "interval": "", "legendFormat": "IN {{ifDescr}} ({{ifAlias}})", "range": true, @@ -91,7 +91,7 @@ "uid": "REPLACEME_DATASOURCE" }, "editorMode": "code", - "expr": "deriv(interface_statistics{Key=\"ifHCOutOctets\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8*-1", + "expr": "rate(interface_statistics{Key=\"ifHCOutOctets\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8*-1", "hide": false, "legendFormat": "Out {{ifDescr}} ({{ifAlias}})", "range": true, @@ -283,7 +283,7 @@ }, "editorMode": "code", "exemplar": true, - "expr": "deriv(interface_statistics{Key=\"ifInErrors\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8", + "expr": "rate(interface_statistics{Key=\"ifInErrors\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8", "interval": "", "legendFormat": "IN {{ifDescr}} ({{ifAlias}})", "range": true, @@ -295,7 +295,7 @@ "uid": "REPLACEME_DATASOURCE" }, "editorMode": "code", - "expr": "deriv(interface_statistics{Key=\"ifOutErrors\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8*-1", + "expr": "rate(interface_statistics{Key=\"ifOutErrors\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8*-1", "hide": false, "legendFormat": "Out {{ifDescr}} ({{ifAlias}})", "range": true,