metricutil

package
v0.0.0-...-341ffff Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package metricutil provides functions to push metrics to Prometheus Pushgateway.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Push

func Push(cfg *Config, boxID uint32, instanceID string)

Push metrics in background.

Types

type Config

type Config struct {
	PushJob      string            `json:"push_job" toml:"push_job"`
	PushAddress  string            `json:"push_address" toml:"push_address"`
	PushInterval typeutil.Duration `json:"push_interval" toml:"push_interval"`
}

Jump to

Keyboard shortcuts

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