plusserver / kubernetes-icinga

Kubernetes / Icinga2 integration.
Apache License 2.0
22 stars 8 forks source link

Set display_name to something shorter #3

Open towolf opened 6 years ago

towolf commented 6 years ago

Looking at the resulting objects in Icinga, I think that the displayed names are maybe too noisy and setting display_name to the actual object name without prefixes would be less overwhelming.

image

iljaweis commented 6 years ago

I've started working on make more Icinga object parameters configurable. I'll see if I can do something about the display names. I'm thinking supporting a template like in https://github.com/Nexinto/rancher-icinga (see STACK_NAME_TEMPLATE). Do you have any suggestion or preference for how the names would look like?

towolf commented 6 years ago

Yes, a go-temptated string would probably the best.

At first I thought instead of k8s-aix02.kube-system.po-kube-apiserver-kvm335 it should just be kube-apiserver-kvm335, but maybe that is not a good idea.

If, e.g., a deployment is just called application, then to find out what it is, one would have to inspect the vars attached to the Host.