Add dimension transformation config to k8s doc
@@ -191,14 +191,21 @@ the string "kube-state-metrics" in it):
discoveryRule: container_image =~ "kube-state-metrics"
disableHostDimensions: true
disableEndpointDimensions: true
+ dimensionTransformations:
+ pod: kubernetes_pod_name
+ namespace: kubernetes_namespace
+ container: container_spec_name
+ node: kubernetes_node
extraDimensions:
metric_source: kube-state-metrics
```
This uses the [prometheus-exporter](./monitors/prometheus-exporter.md) monitor
to pull metrics from the service. It also disables a lot of host and endpoint
-specific dimensions that are irrelevant to cluster-level metrics. Note that
-many of the metrics exposed by `kube-state-metrics` overlap with our own
+specific dimensions that are irrelevant to cluster-level metrics.
+`dimensionTransformations` is required to rename the dimensions by
+`kube-state-metrics` to match the dimensions generated by other K8s monitors.
+Note that many of the metrics exposed by `kube-state-metrics` overlap with our own
[kubernetes-cluster](./monitors/kubernetes-cluster.md) monitor, so you probably
don't want to enable both unless you are using heavy filtering.
