cisco-ie / pipeline-gnmi

A Model-Driven Telemetry collector based on the open-source tool pipeline
Apache License 2.0
32 stars 6 forks source link

InfluxDB Error - metric being POST'd with missing measurement #58

Open tardoe opened 4 years ago

tardoe commented 4 years ago

It appears that InfluxDB metrics are being set with a missing measurement value.

Debug showing the missing measurement name with the correct values. Shows the gNMI plugin is successfully reading the path and sending the data. Something is failing to parse the path out and create a measurement name.

/tmp # tail -f dump.txt_wkid0
(prec: [ms], consistency: [], retention: [])
    ,Producer=10.2.1.3:3333,Target=gnmi /interfaces/interface/state/counters/in-errors=0 1586593538088000000
Server: [http://influxdb:8086], wkid 0, writing 1 points in db: telemetry
(prec: [ms], consistency: [], retention: [])
    ,Producer=10.2.1.3:3333,Target=gnmi /interfaces/interface/state/counters/in-octets=0 1586593538088000000
Server: [http://influxdb:8086], wkid 0, writing 1 points in db: telemetry
(prec: [ms], consistency: [], retention: [])
    ,Producer=10.2.1.3:3333,Target=gnmi /interfaces/interface/state/counters/in-multicast-pkts=0 1586593538088000000
Server: [http://influxdb:8086], wkid 0, writing 1 points in db: telemetry
(prec: [ms], consistency: [], retention: [])
    ,Producer=10.2.1.3:3333,Target=gnmi /interfaces/interface/state/counters/out-discards=0 1586593538088000000
Server: [http://influxdb:8086], wkid 0, writing 1 points in db: telemetry
(prec: [ms], consistency: [], retention: [])

Metrics File:

[
    {
        "basepath" : "openconfig-interfaces:interfaces/interface/state/counters",
        "spec" : {
            "fields" : [
                {"name" : "in-octets"},
                {"name" : "out-octets"},
                {"name" : "in-errors"},
                {"name" : "out-errors"},
                {"name" : "in-discards"},
                {"name" : "out-discards"},
                {"name" : "in-broadcast-pkts"},
                {"name" : "out-broadcast-pkts"},
                {"name" : "in-multicast-pkts"},
                                {"name" : "out-multicast-pkts"},
                {"name" : "in-unicast-pkts"},
                                {"name" : "out-unicast-pkts"}
            ]
        }
    }
]

Using the current master branch and the docker-compose file within.