add metric_prefix field in zabbix config

This commit is contained in:
Pavel 2023-02-09 11:12:32 +03:00 committed by GitHub
commit 0dfde8f31c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,10 +92,11 @@ type HTTPServerConfig struct {
// ZabbixConfig contains information about Zabbix connection.
type ZabbixConfig struct {
ServerHost string `yaml:"server_host"`
Host string `yaml:"host"`
ServerPort int `yaml:"server_port"`
Interval uint64 `yaml:"interval"`
ServerHost string `yaml:"server_host"`
Host string `yaml:"host"`
ServerPort int `yaml:"server_port"`
MetricPrefix string `yaml:"metric_prefix"`
Interval uint64 `yaml:"interval"`
}
// NewConfig reads configuration file and returns config instance