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

Error serving metrics - 3rd party devices #85

Open
southerngrampiansshirecouncil opened this issue Jun 23, 2023 · 1 comment
Open

Error serving metrics - 3rd party devices #85

southerngrampiansshirecouncil opened this issue Jun 23, 2023 · 1 comment

Comments

@southerngrampiansshirecouncil
Copy link

southerngrampiansshirecouncil commented Jun 23, 2023

Hi,

Sorry about logging this as a new issue, but it is relating to 3rd party devices on the latest main. I have also tested against the latest tag "sha-963d177".

I have included just the first device logged to try make it more legible.


625 error(s) occurred:

* collected metric "unms_device_enabled" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:1 > } was collected before with the same name and label values
* collected metric "unms_device_maintenance" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "unms_device_cpu" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "unms_device_ram" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "unms_device_uptime" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "unms_device_last_seen" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > counter:<value:0 > } was collected before with the same name and label values
* collected metric "unms_interface_enabled" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"X1" > label:<name:"ifName" value:"eth1" > label:<name:"ifPos" value:"1" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:1 > } was collected before with the same name and label values
* collected metric "unms_interface_plugged" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"X1" > label:<name:"ifName" value:"eth1" > label:<name:"ifPos" value:"1" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:1 > } was collected before with the same name and label values
* collected metric "unms_interface_up" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"X1" > label:<name:"ifName" value:"eth1" > label:<name:"ifPos" value:"1" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "unms_interface_enabled" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"WAN1 AussieBB" > label:<name:"ifName" value:"eth0" > label:<name:"ifPos" value:"0" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:1 > } was collected before with the same name and label values
* collected metric "unms_interface_plugged" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"WAN1 AussieBB" > label:<name:"ifName" value:"eth0" > label:<name:"ifPos" value:"0" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:1 > } was collected before with the same name and label values
* collected metric "unms_interface_up" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"WAN1 AussieBB" > label:<name:"ifName" value:"eth0" > label:<name:"ifPos" value:"0" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "unms_interface_enabled" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"X2" > label:<name:"ifName" value:"eth2" > label:<name:"ifPos" value:"2" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:1 > } was collected before with the same name and label values
* collected metric "unms_interface_plugged" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"X2" > label:<name:"ifName" value:"eth2" > label:<name:"ifPos" value:"2" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:1 > } was collected before with the same name and label values
* collected metric "unms_interface_up" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"X2" > label:<name:"ifName" value:"eth2" > label:<name:"ifPos" value:"2" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "unms_interface_enabled" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"iiNet" > label:<name:"ifName" value:"eth3" > label:<name:"ifPos" value:"3" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:1 > } was collected before with the same name and label values
* collected metric "unms_interface_plugged" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"iiNet" > label:<name:"ifName" value:"eth3" > label:<name:"ifPos" value:"3" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:1 > } was collected before with the same name and label values
* collected metric "unms_interface_up" { label:<name:"deviceId" value:"21a9465e-9da8-4145-b8ab-ca34f8cbffdb" > label:<name:"deviceMac" value:"e8:ed:**:**:**:**" > label:<name:"deviceName" value:"ROUTER" > label:<name:"ifDescr" value:"iiNet" > label:<name:"ifName" value:"eth3" > label:<name:"ifPos" value:"3" > label:<name:"ifType" value:"eth" > label:<name:"role" value:"router" > label:<name:"siteId" value:"2138b486-4939-4a0c-bc1e-6c5c60ba6cf2" > label:<name:"siteName" value:"SITE NAME" > gauge:<value:0 > } was collected before with the same name and label values```
@southerngrampiansshirecouncil
Copy link
Author

southerngrampiansshirecouncil commented Jun 23, 2023

I've had a look using our current solution which is querying the API directly and its only getting the 1 unique set of values

		"identification": {
			"id": "21a9465e-9da8-4145-b8ab-ca34f8cbffdb",
			"site": {
				"id": "2138b486-4939-4a0c-bc1e-6c5c60ba6cf2",
				"name": "SITE NAME",
				"status": "active",
				"type": "site",
				"parent": null
			},
			"mac": "e8:ed:**:**:**:**",
			"name": "ROUTER",
			"hostname": "ROUTER",
			"serialNumber": null,
			"firmwareVersion": null,
			"udapiVersion": null,
			"bridgeVersion": null,
			"subsystemId": null,
			"model": "UNKNOWN",
			"modelName": "FG-100F",
			"systemName": null,
			"vendor": "Fortinet",
			"vendorName": "Fortinet",
			"platformId": "UNKNOWN",
			"platformName": "UNKNOWN",
			"type": "blackBox",
			"category": null,
			"authorized": true,
			"updated": null,
			"started": null,
			"displayName": "ROUTER",
			"role": "router"
		},
		"uplinkDevice": null,
		"features": {
			"has60GhzRadio": false,
			"hasBackupAntenna": false,
			"isUdapiSpeedTestSupported": false,
			"isUsingUdapiUpdaters": false,
			"isSupportRouter": false
		},
		"overview": {
			"antenna": null,
			"downlinkCapacity": null,
			"totalCapacity": null,
			"downlinkUtilization": null,
			"theoreticalTotalCapacity": null,
			"theoreticalDownlinkCapacity": null,
			"theoreticalUplinkCapacity": null,
			"uplinkCapacity": null,
			"uplinkUtilization": null,
			"stationsCount": null,
			"linkStationsCount": 0,
			"linkActiveStationsCount": 0,
			"runningOnBattery": null,
			"status": "active",
			"canUpgrade": false,
			"isLocateRunning": null,
			"cpu": null,
			"ram": null,
			"signal": null,
			"signalMax": null,
			"remoteSignalMax": null,
			"uptime": null,
			"serviceUptime": null,
			"serviceTime": null,
			"distance": null,
			"outageScore": 1,
			"lastSeen": null,
			"createdAt": "2023-06-23T03:25:23.700Z",
			"voltage": null,
			"consumption": null,
			"biasCurrent": null,
			"outputPower": null,
			"outputPowers": null,
			"maximalPower": null,
			"frequency": null,
			"temperature": null,
			"powerStatus": null,
			"batteryCapacity": null,
			"batteryTime": null,
			"psu": [
				{
					"psuType": null,
					"connected": false,
					"maxChargingPower": null,
					"voltage": null,
					"power": null,
					"batteryCapacity": null,
					"batteryTime": null,
					"batteryType": null
				}
			],
			"linkScore": null,
			"channelWidth": null,
			"transmitPower": null,
			"wirelessMode": null,
			"wirelessActiveInterfaceIds": null,
			"mainInterfaceSpeed": {
				"interfaceId": "eth0",
				"availableSpeed": null
			}
		},
		"discovery": null,
		"mode": null,
		"firmware": null,
		"upgrade": null,
		"meta": {
			"firmwareCompatibility": "compatible",
			"failedMessageDecryption": false,
			"maintenance": false,
			"maintenanceEnabledAt": null,
			"restartTimestamp": null,
			"alias": null,
			"note": null
		},
		"attributes": null,
		"ipAddress": "xx.xx.xx.xx",
		"ipAddressList": [],
		"enabled": true,
		"latestBackup": null,
		"configuration": null,
		"location": {
			"altitude": 10,
			"elevation": null,
			"heading": null,
			"latitude": -xxxxx,
			"longitude": xxxxxx,
			"magneticHeading": null,
			"roll": null,
			"tilt": null
		}
	}```

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

No branches or pull requests

1 participant