Skip to content

Commit

Permalink
feat(metrics): Collect process and Go runtime metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Henderson <[email protected]>
  • Loading branch information
hairyhenderson committed Nov 22, 2024
1 parent 69e0084 commit 9026b12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/relayproxy/metric/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package metric

import (
prom "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
)

// GOFFSubSystem is the name of the prefix we are using for all the metrics
Expand Down Expand Up @@ -101,6 +102,8 @@ func NewMetrics() (Metrics, error) {
flagDeleteCounterVec,
flagCreateCounterVec,
forceRefreshCounter,
collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),
collectors.NewGoCollector(),
}

// register all the metric in the custom registry
Expand Down

0 comments on commit 9026b12

Please sign in to comment.