Skip to content

Commit 20e3346

Browse files
authored
Add increment metric on num of requests metric handler initialization (#18)
1 parent d0fc6a3 commit 20e3346

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/sidecarproxy/metricshandler/numofrequests/metricshandler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ func (n *metricsHandler) Start() error {
7777
if err := n.createProxies(); err != nil {
7878
return errors.Wrap(err, "Failed to initiate proxies")
7979
}
80+
81+
// adds one data point on service initialization so metric will be initialized and queryable
82+
n.incrementMetric()
8083
return nil
8184
}
8285

0 commit comments

Comments
 (0)