Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change prometheus metrics type from summary to histogram #1202

Merged
merged 1 commit into from
Sep 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pkg/controller/metrics/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ var (
Help: "The total number of internal-networkpolicy processed",
StabilityLevel: metrics.STABLE,
})
DurationAppliedToGroupSyncing = metrics.NewSummary(&metrics.SummaryOpts{
DurationAppliedToGroupSyncing = metrics.NewHistogram(&metrics.HistogramOpts{
Name: "antrea_controller_applied_to_group_sync_duration_milliseconds",
Help: "The duration of syncing applied-to-group",
StabilityLevel: metrics.STABLE,
StabilityLevel: metrics.ALPHA,
})
DurationAddressGroupSyncing = metrics.NewSummary(&metrics.SummaryOpts{
DurationAddressGroupSyncing = metrics.NewHistogram(&metrics.HistogramOpts{
Name: "antrea_controller_address_group_sync_duration_milliseconds",
Help: "The duration of syncing address-group",
StabilityLevel: metrics.STABLE,
StabilityLevel: metrics.ALPHA,
})
DurationInternalNetworkPolicySyncing = metrics.NewSummary(&metrics.SummaryOpts{
DurationInternalNetworkPolicySyncing = metrics.NewHistogram(&metrics.HistogramOpts{
Name: "antrea_controller_network_policy_sync_duration_milliseconds",
Help: "The duration of syncing internal-networkpolicy",
StabilityLevel: metrics.STABLE,
StabilityLevel: metrics.ALPHA,
})
LengthAppliedToGroupQueue = metrics.NewGauge(&metrics.GaugeOpts{
Name: "antrea_controller_length_applied_to_group_queue",
Expand Down