prometheus

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 13

Documentation

Overview

Package prometheus provides a framework for defining and collecting metrics for prometheus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeMetrics

func MakeMetrics(namespace, subsystem string) (*kitprometheus.Counter, *kitprometheus.Summary)

MakeMetrics returns an instance of Prometheus implementations for metrics. It returns a request counter and a request latency summary.

counter, latency := metrics.MakeMetrics("demo-service", "api")

Types

This section is empty.

Jump to

Keyboard shortcuts

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