mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-25 19:05:44 +01:00
Added SNMP exporter to monitor router
This commit is contained in:
parent
45010d32dc
commit
9c77443a89
20
manifests/snmp-exporter/snmp-exporter-deployment.yaml
Normal file
20
manifests/snmp-exporter/snmp-exporter-deployment.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: apps/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: snmp-exporter
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: snmp-exporter
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: snmp-exporter
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: carlosedp/snmp_exporter:v0.9.0
|
||||||
|
name: snmp-exporter
|
||||||
|
ports:
|
||||||
|
- containerPort: 9116
|
||||||
|
name: metrics
|
15
manifests/snmp-exporter/snmp-exporter-service.yaml
Normal file
15
manifests/snmp-exporter/snmp-exporter-service.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: snmp-exporter
|
||||||
|
name: snmp-exporter
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http-metrics
|
||||||
|
port: 9116
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: metrics
|
||||||
|
selector:
|
||||||
|
app: snmp-exporter
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: snmp-exporter
|
||||||
|
name: snmp-exporter
|
||||||
|
spec:
|
||||||
|
jobLabel: k8s-app
|
||||||
|
selector:
|
||||||
|
app: snmp-exporter
|
||||||
|
namespaceSelector:
|
||||||
|
matchNames:
|
||||||
|
- monitoring
|
||||||
|
|
||||||
|
endpoints:
|
||||||
|
- interval: 60s
|
||||||
|
port: http-metrics
|
||||||
|
params:
|
||||||
|
module:
|
||||||
|
- ddwrt
|
||||||
|
target:
|
||||||
|
- 192.168.1.1
|
||||||
|
path: "/snmp"
|
||||||
|
targetPort: 9116
|
Loading…
Reference in New Issue
Block a user