2023-03-28 18:39:22 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2023-01-06 18:33:53 +00:00
|
|
|
package rate
|
|
|
|
|
|
|
|
import "github.com/armon/go-metrics/prometheus"
|
|
|
|
|
|
|
|
var Counters = []prometheus.CounterDefinition{
|
2023-02-03 12:01:57 +00:00
|
|
|
{
|
|
|
|
Name: []string{"rpc", "rate_limit", "exceeded"},
|
|
|
|
Help: "Increments whenever an RPC is over a configured rate limit. Note: in permissive mode, the RPC will have still been allowed to proceed.",
|
|
|
|
},
|
2023-01-06 18:33:53 +00:00
|
|
|
{
|
|
|
|
Name: []string{"rpc", "rate_limit", "log_dropped"},
|
|
|
|
Help: "Increments whenever a log that is emitted because an RPC exceeded a rate limit gets dropped because the output buffer is full.",
|
|
|
|
},
|
|
|
|
}
|