metric

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package metric contains utilities for creating and getting file.d metric.

Index

Constants

View Source
const PromNamespace = "file_d"

Variables

This section is empty.

Functions

func GetCounter

func GetCounter(subsystem, metricName string) prom.Counter

GetCounter returns counter for a given metric.

func GetGauge

func GetGauge(subsystem, metricName string) prom.Gauge

GetGauge returns gauge for a given metric.

func InitStats

func InitStats()

func RegisterCounter

func RegisterCounter(metricDesc *MetricDesc)

func RegisterGauge

func RegisterGauge(metricDesc *MetricDesc)

Types

type MetricDesc

type MetricDesc struct {
	Subsystem string
	Name      string
	Help      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL