ccfos / nightingale

An all-in-one observability solution which aims to combine the advantages of Prometheus and Grafana. It manages alert rules and visualizes metrics, logs, traces in a beautiful web UI.
https://flashcat.cloud/docs/
Apache License 2.0
9.16k stars 1.35k forks source link

n9e snmp 数据收集失败,后端升级到v7.0.0-beta.4 ,categraf保留v0.3.19 ,指标无法显示 #1960

Open we104847 opened 1 month ago

we104847 commented 1 month ago

Your config.toml

[[instances]]
agents = "xxxxxxxx"

timeout = "5s"
version = 2
community = "xxxx"
agent_host_tag = "ident"
retries = 1

[[instances.field]]
oid = "RFC1213-MIB::sysUpTime.0"
name = "uptime"

[[instances.field]]
oid = "RFC1213-MIB::sysName.0"
name = "source"
is_tag = true

[[instances.table]]
oid = "IF-MIB::ifTable"
name = "interface"
inherit_tags = ["source"]

[[instances.table.field]]
oid = "IF-MIB::ifDescr"
name = "ifDescr"
is_tag = true

Relevant logs

后端升级后未向下兼容客户端版本,导致交换机数据无法展示

System info

centos

Steps to reproduce

1. 2. 3. ...

Expected behavior

1

Actual behavior

1

Additional info

No response

we104847 commented 1 month ago

image 更新后指标

710leo commented 1 month ago

新版本对老版本的 categraf 理论上是兼容的,可以看下 categraf 和 n9e 有什么报错日志,从日志中找下线索

we104847 commented 1 month ago

categraf 是 没有报错信息,debug 控制台调试结果 上报正常, n9e 后端启动 抓了一些日志,但仅是warning ,如下: 2024-05-21 18:16:48.036200 WARNING writer/writer.go:81 example timeseries:labels:<name:"name" value:"snmp_uptime" > labels:<name:"source" value:"Lan-Swicth01" > labels:<name:"ident" value:"10.1.3.1" > labels:<name:"ident" value:"l-monitor1.ops.prod.dz" > samples:<value:4.03584308e+09 timestamp:1716286607000 >

710leo commented 1 month ago

@we104847 你的日志贴的太少了,没有有效信息。。。