We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65b78e8 commit 7cb2fd7Copy full SHA for 7cb2fd7
1 file changed
backend/pkg/metrics/metrics.go
@@ -156,6 +156,9 @@ func RegisterAndInstrument(api *api.API) error {
156
157
// calculateMetrics calculates the application metrics and updates the respective metric.
158
func calculateMetrics(api *api.API) error {
159
+ // reset instance stats on each refresh
160
+ latestInstanceStatsGaugeMetric.Reset()
161
+
162
aipcMetrics, err := api.GetAppInstancesPerChannelMetrics()
163
if err != nil {
164
return fmt.Errorf("failed to get app instances per channel metrics: %w", err)
0 commit comments