From f8476fda44522c849d87bb54b7ef0bc759550667 Mon Sep 17 00:00:00 2001 From: Andrejs Aire Date: Mon, 11 Feb 2019 15:53:20 +0000 Subject: .......... [ZBXNEXT-4865] Prometheus metrics support (code is incomplete) --- include/zbxprometheus.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/zbxprometheus.h (limited to 'include/zbxprometheus.h') diff --git a/include/zbxprometheus.h b/include/zbxprometheus.h new file mode 100644 index 00000000000..1cb83ecb262 --- /dev/null +++ b/include/zbxprometheus.h @@ -0,0 +1,28 @@ +/* +** Zabbix +** Copyright (C) 2001-2019 Zabbix SIA +** +** This program is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 2 of the License, or +** (at your option) any later version. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; if not, write to the Free Software +** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +**/ + +#ifndef __zbxprometheus_h__ +#define __zbxprometheus_h__ + + + +extern int zbx_prometheus_pattern (char *data, char *params, char *value_type, char **output, char **err); +extern int zbx_prometheus_to_json (char *data, char *params, char **output, char **err); + +#endif /* __zbxprometheus_h__ */ -- cgit v1.2.3 From 76b493c180cb5cdfe6c2154d27dcb1a5bac474fe Mon Sep 17 00:00:00 2001 From: Andrejs Aire Date: Wed, 13 Feb 2019 16:41:55 +0000 Subject: .......... [ZBXNEXT-4865] minor improvements (code is incomplete) --- include/zbxprometheus.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/zbxprometheus.h') diff --git a/include/zbxprometheus.h b/include/zbxprometheus.h index 1cb83ecb262..4fb55d2db65 100644 --- a/include/zbxprometheus.h +++ b/include/zbxprometheus.h @@ -22,7 +22,8 @@ -extern int zbx_prometheus_pattern (char *data, char *params, char *value_type, char **output, char **err); -extern int zbx_prometheus_to_json (char *data, char *params, char **output, char **err); +extern int zbx_prometheus_pattern (const char *data, const char *params, const char *value_type, + char **output, char **err); +extern int zbx_prometheus_to_json (const char *data, const char *params, char **output, char **err); #endif /* __zbxprometheus_h__ */ -- cgit v1.2.3