cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HOST ID generation for GCP preemptible K8s nodes

r_weber
DynaMight Champion
DynaMight Champion

Hello,

with oneagent options you can set the HOST ID generation source to IP Adresses. We have done this for preemptible K8s nodes on GCP to avoid the creation of hundreds of hosts in Dynatrace (an ever growing list since preemptible nodes can go and disappear at any time).

After applying the parameter in the Dynatrace Operator I'd have expected the list of hosts becoming shorter but it seems that this option considers all IP addresses of the host and therefore doesn't really have an impact.

Specifically I do have a host naming rule that takes the last octed of the host IP and renames the host:

r_weber_0-1679311892708.png

However I still get two hosts created over the course of time, where I'd have expected only one:

r_weber_1-1679312044313.png

I believe this is due to the fact that the hosts also get different public IP addresses?
(.33 vs. .198)
host1:

r_weber_2-1679312115015.png

host2:

r_weber_3-1679312136267.png

Would be great if someone could confirm this how it is done in detail? Are all addresses used or one? Which one?

The documentation of the HOST ID parameter says ip-addresses (pl.), though the description says ip-address (sing.). Also the Naming rule only understands one Host:ipAddress.

Thanks!

Certified Dynatrace Master, Dynatrace Partner - 360Performance.net
3 REPLIES 3

ChadTurner
DynaMight Legend
DynaMight Legend

it appears that yes it will take into account all the IPS, you could add in the regex that grabs one of the desired IPs, but that might be problematic as the desired IP could be in different positions. 

-Chad

r_weber
DynaMight Champion
DynaMight Champion

The funny inconsistent part is that in the Dynatrace UI on the classic host view the property "IP Addresses" consists of one IP (while public GCE IP addresses are listed seperately):

r_weber_0-1681981714492.png

 

On the new vie those are merged:

r_weber_1-1681981789394.png

 

And when extracting IP Adresses in host-naming rules it also just seems to be one IP address (the private one) .... oh my!

Certified Dynatrace Master, Dynatrace Partner - 360Performance.net

r_weber
DynaMight Champion
DynaMight Champion

I got confirmation from lab/support that for the HOST ID generation ALL IPs of an interface are used to create the ID.

This renders that feature unusable for GCP K8s nodes (preemptible) as there seem to be alias addresses on one interface, like so

eth0: 192.168.100.10
eth0:1: <public ip random 1>
eth0:2: <public ip random 2>

So although one can assign a fixed pool of private addresses the alias public addresses are random, thus the HOST ID will change all the time.

Certified Dynatrace Master, Dynatrace Partner - 360Performance.net

Featured Posts