在用snmp插件监控交换机时,我把agent_host_tag的值改成ident(想顺便把N9E当做资产管理)。
然后发现N9E能检测到设备,但是无法获取到数据,看了下日志,报错: label name "ident" is not unique: invalid sample
请各位哥帮忙瞧瞧,谢谢
Jan 14 17:35:02 Ahost n9e[274128]: 2024-01-14 17:35:02.897879 DEBUG router/router_heartbeat.go:86 heartbeat field:map[] target: {1 5 <nil> Ahost [] map[] 1705224893 10.00.00.76 1705224892893 1 0 36.77770743019633 16 1.1892342987069577 linux amd64 127.0.0.1}
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.882688 WARNING writer/writer.go:128 push data with remote write:http://127.0.0.1:9090/api/v1/write request got status code: 500, response body: label name "ident" is not unique: invalid sample
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.882717 WARNING writer/writer.go:78 post to http://127.0.0.1:9090/api/v1/write got error: push data with remote write:http://127.0.0.1:9090/api/v1/write request got status code: 500, response body: label name "ident" is not unique: invalid sample
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.882762 WARNING writer/writer.go:79 example timeseries:labels:<name:"__name__" value:"snmp_icmp_up" > labels:<name:"ident" value:"10.00.60.1" > labels:<name:"region" value:"aa-bb" > labels:<name:"role" value:"switch" > labels:<name:"ident" value:"bhost" > samples:<value:1 timestamp:1705224903305 >
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.884641 WARNING writer/writer.go:128 push data with remote write:http://127.0.0.1:9090/api/v1/write request got status code: 500, response body: label name "ident" is not unique: invalid sample
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.884663 WARNING writer/writer.go:78 post to http://127.0.0.1:9090/api/v1/write got error: push data with remote write:http://127.0.0.1:9090/api/v1/write request got status code: 500, response body: label name "ident" is not unique: invalid sample
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.884705 WARNING writer/writer.go:79 example timeseries:labels:<name:"__name__" value:"snmp_interface_ifLastChange" > labels:<name:"ifSpeed" value:"0" > labels:<name:"ifType" value:"1" > labels:<name:"ifMtu" value:"1500" > labels:<name:"ifAlias" value:"NULL0 Interface" > labels:<name:"ifIndex" value:"759" > labels:<name:"region" value:"aa-bb" > labels:<name:"ident" value:"bhost" > labels:<name:"ident" value:"10.00.60.1" > labels:<name:"ifDescr" value:"NULL0" > labels:<name:"deviceName" value:"aa-bb114-S5130-D-1" > labels:<name:"role" value:"switch" > samples:<value:2034 timestamp:1705224903305 >
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.890627 WARNING writer/writer.go:128 push data with remote write:http://127.0.0.1:9090/api/v1/write request got status code: 500, response body: label name "ident" is not unique: invalid sample
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.890648 WARNING writer/writer.go:78 post to http://127.0.0.1:9090/api/v1/write got error: push data with remote write:http://127.0.0.1:9090/api/v1/write request got status code: 500, response body: label name "ident" is not unique: invalid sample
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.890676 WARNING writer/writer.go:79 example timeseries:labels:<name:"__name__" value:"snmp_icmp_up" > labels:<name:"ident" value:"10.00.160.1" > labels:<name:"role" value:"switch" > labels:<name:"region" value:"aa-bb" > labels:<name:"ident" value:"bhost" > samples:<value:1 timestamp:1705224903305 >
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.892239 WARNING writer/writer.go:128 push data with remote write:http://127.0.0.1:9090/api/v1/write request got status code: 500, response body: label name "ident" is not unique: invalid sample
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.892277 WARNING writer/writer.go:78 post to http://127.0.0.1:9090/api/v1/write got error: push data with remote write:http://127.0.0.1:9090/api/v1/write request got status code: 500, response body: label name "ident" is not unique: invalid sample
Jan 14 17:35:03 Ahost n9e[274128]: 2024-01-14 17:35:03.892355 WARNING writer/writer.go:79 example timeseries:labels:<name:"__name__" value:"snmp_interface_ifOperStatus" > labels:<name:"ifType" value:"6" > labels:<name:"ifMtu" value:"10000" > labels:<name:"ifAlias" value:"Ethernet1/0/7 Interface" > labels:<name:"ifIndex" value:"7" > labels:<name:"deviceName" value:"aa-bb114-S31600V2-V" > labels:<name:"role" value:"switch" > labels:<name:"ident" value:"10.00.160.1" > labels:<name:"ifDescr" value:"Ethernet1/0/7" > labels:<name:"ident" value:"bhost" > labels:<name:"ifSpeed" value:"100000000" > labels:<name:"region" value:"aa-bb" > samples:<value:2 timestamp:1705224903305 >