From 28cec0b90cf86fa47135cedcd8862e4d87a1d55c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D1=84=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=A0=D1=83=D1=81?= =?UTF-8?q?=D0=BB=D0=B0=D0=BD?= Date: Thu, 9 Feb 2023 10:23:54 +0300 Subject: [PATCH] add new field in zabbix config --- core/config/config.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/config/config.go b/core/config/config.go index 47d4f4c..e49edcc 100644 --- a/core/config/config.go +++ b/core/config/config.go @@ -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