Documentation
¶
Index ¶
- Constants
- func BuildPromExporter() (*prometheus.Exporter, error)
- type MetricCounter
- func (c *MetricCounter) Commit(ctx context.Context)
- func (c *MetricCounter) WithAttribute(key string, value interface{}) *MetricCounter
- func (c *MetricCounter) WithEntryFields(e log.Entry) *MetricCounter
- func (c *MetricCounter) WithError(err error) *MetricCounter
- func (c *MetricCounter) WithValue(value int64) *MetricCounter
Constants ¶
View Source
const (
ServiceName = "gort-controller"
)
Variables ¶
This section is empty.
Functions ¶
func BuildPromExporter ¶
func BuildPromExporter() (*prometheus.Exporter, error)
Types ¶
type MetricCounter ¶
type MetricCounter struct {
// contains filtered or unexported fields
}
func TotalRequests ¶
func TotalRequests() *MetricCounter
TotalRequestCount increments the unauthorized requests counter.
func UnauthorizedRequests ¶
func UnauthorizedRequests() *MetricCounter
UnauthorizedRequestCount increments the total requests counter.
func (*MetricCounter) Commit ¶
func (c *MetricCounter) Commit(ctx context.Context)
func (*MetricCounter) WithAttribute ¶
func (c *MetricCounter) WithAttribute(key string, value interface{}) *MetricCounter
func (*MetricCounter) WithEntryFields ¶
func (c *MetricCounter) WithEntryFields(e log.Entry) *MetricCounter
func (*MetricCounter) WithError ¶
func (c *MetricCounter) WithError(err error) *MetricCounter
func (*MetricCounter) WithValue ¶
func (c *MetricCounter) WithValue(value int64) *MetricCounter
Click to show internal directories.
Click to hide internal directories.