Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions fleet/lib/kube-prometheus-stack/overlays/antu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,23 @@ prometheus:
target_label: network_function
- target_label: __address__
replacement: prometheus-snmp-exporter.snmp-exporter:9116
- job_name: blackbox-snmp-pfsense
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that a puppetdb query could be used instead of hard coding the hosts. Did you try that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pfsense machines are not in foreman. I can resolve this by adding them to foreman and have an FQDN registered.

metrics_path: /snmp
params:
module: [pfsense]
auth: [rubin_v2]
file_sd_configs:
- files:
- /etc/prometheus/configmaps/sd-snmp-network/snmp-pfsense.json
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__meta_hostname]
target_label: instance
- source_labels: [__meta_network_function]
target_label: network_function
- target_label: __address__
replacement: prometheus-snmp-exporter.snmp-exporter:9116
grafana:
grafana.ini:
server:
Expand Down
66 changes: 66 additions & 0 deletions fleet/lib/snmp-exporter-pre/files/sd/ls/snmp-pfsense.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[
{
"labels": {
"__meta_hostname": "pfsense01-bmc.ls.lsst.org"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems unlikely that pfsense mibs will be exposed by the bmc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Binding interface for SNMP service was setup to use the BMC.
I found thou an issue on the firewall at LS, the BMCs were shutdown a few months ago and I will need to check why.

},
"targets": [
"10.50.3.111"
]
},
{
"labels": {
"__meta_hostname": "pfsense02-bmc.ls.lsst.org"
},
"targets": [
"10.50.3.112"
]
},
{
"labels": {
"__meta_hostname": "new-pfsense01.ls.lsst.org"
},
"targets": [
"10.50.3.201"
]
},
{
"labels": {
"__meta_hostname": "new-pfsense02.ls.lsst.org"
},
"targets": [
"10.50.3.202"
]
},
{
"labels": {
"__meta_hostname": "pfsense-summit01-bmc.cp.lsst.org"
},
"targets": [
"10.18.3.156"
]
},
{
"labels": {
"__meta_hostname": "pfsense-summit02-bmc.cp.lsst.org"
},
"targets": [
"10.18.3.157"
]
},
{
"labels": {
"__meta_hostname": "pfsense-pixel01.cp.lsst.org"
},
"targets": [
"10.18.3.101"
]
},
{
"labels": {
"__meta_hostname": "pfsense-pixel02.cp.lsst.org"
},
"targets": [
"10.18.3.102"
]
},
]
Loading
Loading