Skip to content

Commit

Permalink
Use rate, not deriv - issue with nulling values
Browse files Browse the repository at this point in the history
  • Loading branch information
juztas committed Dec 19, 2024
1 parent 27c6ee7 commit 9f09b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogole-api/src/templates/switchflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "deriv(interface_statistics{Key=\"ifInDiscards\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8",
"expr": "rate(interface_statistics{Key=\"ifInDiscards\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8",
"interval": "",
"legendFormat": "IN {{ifDescr}} ({{ifAlias}})",
"range": true,
Expand All @@ -193,7 +193,7 @@
"uid": "REPLACEME_DATASOURCE"
},
"editorMode": "code",
"expr": "deriv(interface_statistics{Key=\"ifOutDiscards\", sitename=\"REPLACEME_SITENAME\", hostname=\"REPLACEME_HOSTNAME\", ifDescr=~\"REPLACEME_INTERFACE\"}[2m])*8*-1",
"expr": "rate(interface_statistics{Key=\"ifOutDiscards\", 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 9f09b78

Please sign in to comment.