setting up snmp_exporter component for my Alloy agent need some help #1405
Unanswered
edmund-10x
asked this question in
Q&A
Replies: 1 comment
-
Hey @edmund-10x , with the latest alloy release 1.8.1 - what does the graph in the UI look like? Btw maybe https://github.com/grafana/alloy is the better place to ask such a question |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am very new to snmp_exporter and Grafana's Alloy agent, I am trying to setup my config.alloy on my test k8s cluster to scrape snmp metrics from our network (Cisco and Pan) devices. We are also using snmpv3 I've setup my current config to look like something below, but I don't know if it is correct or not.
`prometheus.exporter.snmp "snmp_devices" {
config_file = "/etc/snmp/snmp.yml"
target "my_switch" {
address = "192.168.1.1"
auth = "cisco_snmpv3"
module = "system,if_mib"
labels = {
"site" = "smr6230",
"env" = "prod",
}
}
}
prometheus.scrape "alloy_targets" {
targets = prometheus.exporter.snmp_devices.target
forward_to = [prometheus.remote_write.mimir_internal.receiver]
}
prometheus.remote_write "mimir_internal" {
endpoint {
name = "mimir-local"
url = "http://mimir-test-nginx.mimir-test.svc:80/api/v1/write"
}
}`
Could anyone that has done this before share some configuration snippets to help get me going? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions