Skip to content
Snippets Groups Projects
Commit 44dab893 authored by Lili Cosic's avatar Lili Cosic
Browse files

jsonet: Relabel instance to node name

This allows us to display the node name in alerts, instead of the IP.
parent 4d315c44
Branches
Tags
No related merge requests found
......@@ -170,6 +170,15 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
scheme: 'https',
interval: '30s',
bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token',
relabelings: [
{
action: 'replace',
regex: '(.*)',
replacment: '$1',
sourceLabels: ['__meta_kubernetes_pod_node_name'],
targetLabel: 'instance',
},
],
tlsConfig: {
insecureSkipVerify: true,
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment