Node exporter needs to run in the host network, not in the pod network in order to pick up network metrics of the node.
22 lines
492 B
YAML
22 lines
492 B
YAML
apiVersion: v1
|
|
data:
|
|
prometheus.yaml: |-
|
|
{
|
|
"apiVersion": 1,
|
|
"datasources": [
|
|
{
|
|
"access": "proxy",
|
|
"editable": false,
|
|
"name": "prometheus",
|
|
"orgId": 1,
|
|
"type": "prometheus",
|
|
"url": "http://prometheus-k8s.monitoring.svc:9090",
|
|
"version": 1
|
|
}
|
|
]
|
|
}
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: grafana-datasources
|
|
namespace: monitoring
|