Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tardoe opened this issue Apr 13, 2020 · 0 comments
Open

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

tardoe opened this issue Apr 13, 2020 · 0 comments
Labels
bug Something isn't working feature

Comments

@tardoe
Copy link

tardoe commented Apr 13, 2020

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.

@remingtonc remingtonc added bug Something isn't working feature labels Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature
Projects
None yet
Development

No branches or pull requests

2 participants