Files

32 lines
940 B
YAML

apiVersion: operator.victoriametrics.com/v1beta1
kind: VMStaticScrape
metadata:
name: synology
namespace: monitoring
labels:
app.kubernetes.io/name: snmp-exporter
spec:
jobName: synology
targetEndpoints:
# snmp_exporter is a proxy: vmagent scrapes the exporter, which then queries
# the NAS over SNMP. The device address is passed as the `target` param and
# the request is redirected to the exporter Service via relabeling below.
- targets:
- "synology.storage.lviv"
scheme: http
path: /snmp
params:
module:
- synology
auth:
- synology_v3
interval: 60s
scrapeTimeout: 30s
relabelConfigs:
- sourceLabels: [__address__]
targetLabel: __param_target
- sourceLabels: [__param_target]
targetLabel: instance
- targetLabel: __address__
replacement: snmp-exporter.monitoring.svc:9116