Skip to content

Commit

Permalink
use rate on all switch flow queries
Browse files Browse the repository at this point in the history
  • Loading branch information
juztas authored Dec 19, 2024
1 parent 9f09b78 commit 037e9ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autogole-api/src/templates/switchflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 037e9ac

Please sign in to comment.