metrics

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package metrics implements prometheus metrics

Index

Constants

View Source
const DefaultPath = "/metrics"

DefaultPath is default metrics route path

View Source
const DefaultPort = "9100"

DefaultPort is default http port

View Source
const Namespace = "lidl_connect"

Namespace is prometheus metrics namespace

Variables

This section is empty.

Functions

func MeterBalance

func MeterBalance(b *lidlconnect.BalanceInfo)

MeterBalance records balance metrics

func MeterBookedTariff

func MeterBookedTariff(t *lidlconnect.BookedTariff)

MeterBookedTariff records booked tariff metrics

func MeterConsumption

func MeterConsumption(consumptions []lidlconnect.ConsumptionsForUnit)

MeterConsumption records consumptions metrics

func Serve

func Serve() error

Serve starts an HTTP server

Types

This section is empty.

Jump to

Keyboard shortcuts

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