2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2016-04-19 13:54:41 +02:00
|
|
|
|
2021-04-14 18:52:36 +02:00
|
|
|
#include "perfdata/influxdbcommonwriter.hpp"
|
2016-04-19 13:54:41 +02:00
|
|
|
|
|
|
|
library perfdata;
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2021-04-14 18:52:36 +02:00
|
|
|
class InfluxdbWriter : InfluxdbCommonWriter
|
2016-04-19 13:54:41 +02:00
|
|
|
{
|
2019-02-19 14:06:15 +01:00
|
|
|
activation_priority 100;
|
2018-04-26 15:53:11 +02:00
|
|
|
|
2016-04-19 13:54:41 +02:00
|
|
|
[config, required] String database {
|
|
|
|
default {{{ return "icinga2"; }}}
|
|
|
|
};
|
|
|
|
[config] String username {
|
|
|
|
default {{{ return ""; }}}
|
|
|
|
};
|
|
|
|
[config, no_user_view] String password {
|
|
|
|
default {{{ return ""; }}}
|
|
|
|
};
|
2020-10-07 13:44:44 +02:00
|
|
|
[config, no_user_view] Dictionary::Ptr basic_auth;
|
2016-04-19 13:54:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
validator InfluxdbWriter {
|
2020-10-07 13:44:44 +02:00
|
|
|
Dictionary basic_auth {
|
|
|
|
required username;
|
|
|
|
String username;
|
|
|
|
required password;
|
|
|
|
String password;
|
|
|
|
};
|
2016-04-19 13:54:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|