Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

create influxdb output using clapi #367

Open
mavynet opened this issue Mar 27, 2018 · 0 comments
Open

create influxdb output using clapi #367

mavynet opened this issue Mar 27, 2018 · 0 comments

Comments

@mavynet
Copy link

mavynet commented Mar 27, 2018

I'm trying to create a new broker output of type influxdb, but I can't figure out how to add the metrics columns.
In the getoutput command the columns are not indexed:
-o CENTBROKERCFG -a getoutput -v "central-broker-influx-master;Central"
parameter key;parameter value
cache;yes
db_host;192.168.137.21
db_name;centreon
db_password;centpass
db_port;8086
db_user;centreon
metrics_column__is_tag;false
metrics_column__is_tag;false
metrics_column__is_tag;true
metrics_column__is_tag;true
metrics_column__is_tag;true
metrics_column__is_tag;true
metrics_column__name;time
metrics_column__name;value
metrics_column__name;host
metrics_column__name;service
metrics_column__name;host_id
metrics_column__name;service_id
metrics_column__type;string
metrics_column__type;string
metrics_column__type;string
metrics_column__type;string
metrics_column__type;string
metrics_column__type;string
metrics_column__value;$TIME$
metrics_column__value;$VALUE$
metrics_column__value;$HOST$
metrics_column__value;$SERVICE$
metrics_column__value;$HOSTID$
metrics_column__value;$SERVICEID$
metrics_timeseries;$METRIC$

The output was inserted ok and all other options are set:
-o CENTBROKERCFG -a listoutput -v "central-broker-influx-test;Central"
id;name
1;Influxdb

but when i try to set the output using the same option it fails:
-o CENTBROKERCFG -a setoutput -v "central-broker-influx-test;1;metrics_column__name;time"
Invalid field

In the documentation I couldn't find any example for this type of field. Is it not implemented?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant