Hello, basic question from me, please: I'm collect...
# openobserve
p
Hello, basic question from me, please: I'm collecting SNMP metrics using telegraf, and I telegraf forwards them to OpenObserve using prometheus remote write. I see the telegraf, which is configured according to the documentation, keeps sending the metrics into openobserve, and in parallel, it forwards them to another influxdb, where I see their format is valid. The format is like this: interfaces,host=logserver01,ifName=et-0/1/0.0,site=lab,source=10.10.10.2 ifConnectorPresent=2i,ifCounterDiscontinuityTime=0u,ifHCInBroadcastPkts=0u,ifHCInMulticastPkts=0u,ifHCInOctets=375869629u,ifHCInUcastPkts=387146u,ifHCOutBroadcastPkts=0u,ifHCOutMulticastPkts=0u,ifHCOutOctets=1793720977u,ifHCOutUcastPkts=6607875u,ifHighSpeed=25000u,ifInBroadcastPkts=0u,ifInMulticastPkts=0u,ifLinkUpDownTrapEnable=1i,ifOutBroadcastPkts=0u,ifOutMulticastPkts=0u,ifPromiscuousMode=2i 1788443716000000000 However, when I try to visualize them, I receive no data meassage, there the amount of total_fields remain somehow zero. Do you have any working E2E example I might learn from how to do this right, please?
s
Can you share your Telegraf SNMP and Prometheus Remote Write configuration, along with a screenshot of the Metrics Explorer?
p
[[inputs.snmp]] agents = ["10.10.10.2:161"] version = 2 community = "public" path = ["/usr/share/snmp/mibs"] retries = 3 max_repetitions = 10 agent_host_tag = "source" [[inputs.snmp.table]] name = "interfaces" oid = "IF-MIB::ifXTable" [inputs.snmp.table.tagpass] ifName = [ "et-0/1/0", "et-0/1/1", "ge-0/0/0" ] [[inputs.snmp.table.field]] oid = "IF-MIB::ifName" is_tag = true [[inputs.snmp.table.field]] oid = "IF-MIB::ifHCInOctets" [[inputs.snmp.table.field]] oid = "IF-MIB::ifHCOutOctets" [[inputs.snmp.table.field]] oid = "IF-MIB::ifHCInUcastPkts" [[inputs.snmp.table.field]] oid = "IF-MIB::ifHCOutUcastPkts" [[outputs.http]] ## URL is the address to send metrics to url = "localhost/api/default/…/write" ## Data format to output. data_format = "prometheusremotewrite" [outputs.http.headers] Content-Type = "application/x-protobuf" Content-Encoding = "snappy" X-Prometheus-Remote-Write-Version = "0.1.0" Authorization = "Basic **************************************************************=="
image.png
s
oky, let me try to reproduce this and check what went wrong
p
Thank you!
s
meanwhile , Try widening the tagpass match, Junos
ifName
usually comes back with a unit suffix like
et-0/1/0.0
, which won't match
et-0/1/0
exactly:
Copy code
ifName = ["et-0/1/0*", "et-0/1/1*", "ge-0/0/0*"]
Can you comment out the
tagpass
block (or use the wildcard) and re-run to confirm the
ifName
values actually have that suffix?
👍 1
p
it receives both, et-0/1/0 and et-0/1/0.0 as well on input, let me debug output as well
👍 1
interfaces,host=logserver01,ifName=et-0/1/0.0,site=Site\,Location,source=10.10.10.2 ifPromiscuousMode=2i,ifCounterDiscontinuityTime=0i,ifHCOutBroadcastPkts=0i,ifHCInOctets=376897012i,ifHCOutOctets=2254481240i,ifOutBroadcastPkts=0i,ifHCInBroadcastPkts=0i,ifHCOutMulticastPkts=0i,ifConnectorPresent=2i,ifLinkUpDownTrapEnable=1i,ifHighSpeed=25000i,ifInMulticastPkts=0i,ifInBroadcastPkts=0i,ifHCInMulticastPkts=0i,ifHCInUcastPkts=392070i,ifHCOutUcastPkts=8305165i,ifOutMulticastPkts=0i 1788512563000000000 interfaces,host=logserver01,ifName=et-0/1/0,site=Site\,`Location,source=10.10.10.2 ifHCInUcastPkts=8168932i,ifLinkUpDownTrapEnable=1i,ifHCInOctets=5416166168592i,ifInMulticastPkts=3941445085i,ifHCInMulticastPkts=3941445085i,ifHCInBroadcastPkts=4145i,ifHCOutOctets=2374026174i,ifHCOutUcastPkts=8169951i,ifInBroadcastPkts=4145i,ifOutBroadcastPkts=5434i,ifHighSpeed=25000i,ifPromiscuousMode=2i,ifConnectorPresent=1i,ifCounterDiscontinuityTime=0i,ifOutMulticastPkts=2109169i,ifHCOutMulticastPkts=2109169i,ifHCOutBroadcastPkts=5434i 1788512563000000000
Do you have any update on this one, please? Thank you in advance
s
hey yeah, thanks for reminding, i have blocked my calendar to work on this.. will update u by next 3 hrs. Thanks for ur patience!
🙏 1
@peter.kerese i tried to replicate this and found out that while the metrics explorer view shows no data, if you click on any panel editor , the data points are visible, can you confirm if that's the case on your setup as well.
p
Correct, it's the explorer which reports no data
s
oky then the setup is working fine nothing needs to be changes on your end. I will flag this issue internally and get this fixed.
🙌 1
also to confirm i tried in on v 0.92.2 , are u using the same ?
github.com/openobserve/openobserve/issues/14238 --> created an issue here for tracking
p
yes, 0.92.2
🤝 1
s
@peter.kerese the issue is fixed and pushed in latest release.
🙌 1