Add prom histogram for forwarding latency and jitter. (#4044)

* Add prom histogram for forwarding latency and jitter.

Using short term stats for histogram.

An example setting is
1s - short term
1m - long term

Using the 1s (short term) data for histogram. In that 1 second, all
packet forwarding latencies are averaged for latency and std. dev. of
the collection is used as jitter.

* try different staticcheck
This commit is contained in:
Raja Subramanian
2025-11-01 23:25:03 +05:30
committed by GitHub
parent 1eefeb3089
commit e183657cff
2 changed files with 30 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.24'
go-version: "^1.24"
- name: Set up gotestfmt
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1
@@ -57,7 +57,7 @@ jobs:
args: build
- name: Static Check
uses: amarpal/staticcheck-action@master
uses: dominikh/staticcheck-action@v1
with:
checks: '["all", "-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022", "-SA1019"]'
install-go: false