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

create influxdb output using clapi #367

Description

@mavynet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions