kk_prometheus

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusConfig

type PrometheusConfig struct {
	AlertRuleFilePath string
	// ReloadApi: use to reload alert rule file
	// https://prometheus.io/docs/prometheus/latest/configuration/configuration/
	// eg: http://localhost:9090/-/reload
	ReloadApi string
}

todo use mimir manage rule??? https://grafana.com/docs/mimir/latest/manage/tools/mimirtool/

func NewPrometheusConfig

func NewPrometheusConfig(alertRuleFilePath string, reloadApi string) *PrometheusConfig

func (*PrometheusConfig) Reload

func (c *PrometheusConfig) Reload()

func (*PrometheusConfig) UpdateAlertRuleFile

func (c *PrometheusConfig) UpdateAlertRuleFile(path string) error

Jump to

Keyboard shortcuts

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