Skip to content

Commit

Permalink
remove summary metric
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
  • Loading branch information
Frank Jogeleit committed Mar 4, 2024
1 parent 308452d commit 6abe973
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 430 deletions.
16 changes: 2 additions & 14 deletions pkg/listener/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,8 @@ func ResultListeners(
}
}

prCallback := metrics.CreateDetailedResultMetricListener(filter, metrics.RegisterDetailedResultGauge(ResultGaugeName))
pCallback := metrics.CreatePolicyReportMetricsListener(reportFilter)

crCallback := metrics.CreateDetailedClusterResultMetricListener(filter, metrics.RegisterDetailedClusterResultGauge(ClusterResultGaugeName))
cCallback := metrics.CreateClusterPolicyReportMetricsListener(reportFilter)

return []report.PolicyReportListener{
func(event report.LifecycleEvent) {
pCallback(event)
prCallback(event)
},
func(event report.LifecycleEvent) {
cCallback(event)
crCallback(event)
},
metrics.CreateDetailedResultMetricListener(filter, metrics.RegisterDetailedResultGauge(ResultGaugeName)),
metrics.CreateDetailedClusterResultMetricListener(filter, metrics.RegisterDetailedClusterResultGauge(ClusterResultGaugeName)),
}
}
50 changes: 0 additions & 50 deletions pkg/listener/metrics/cluster_policy_report.go

This file was deleted.

173 changes: 0 additions & 173 deletions pkg/listener/metrics/cluster_policy_report_test.go

This file was deleted.

50 changes: 0 additions & 50 deletions pkg/listener/metrics/policy_report.go

This file was deleted.

Loading

0 comments on commit 6abe973

Please sign in to comment.