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
Click to show internal directories.
Click to hide internal directories.