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

Tagging OS services

mrc15816
Advisor

We have a few thousand servers, both Windows and Linux. We want to tag all the services with the server name that they are running on. We have tried a couple of options but couldn’t succeed without hitting the tagging limit or delay in getting tags applied. I wonder if anyone can share their experience if they have overcome this issue.

Thanks

Raj

7 REPLIES 7

rgarzon1
Pro

Hi @mrc15816 

I allways use this for my enviroments  

rgarzon1_0-1720155085998.png

 

rgarzon1_1-1720155110618.png

 

i know that this does not have a nice performance in big environment but always can be use the hostgroup to reduce the scope. 

if this is not posible you can always set metadata in host. 

https://docs.dynatrace.com/docs/shortlink/tagging-hostautotag#edit-the-host-metadata-configuration-f...

probably exist some other methods but those work for me plenty of times. 

 

fuelled by coffee and curiosity.

jaume_reverte
Dynatrace Advisor
Dynatrace Advisor

Hello, 

Normally, in this case, I use the {Host:DetectedName} without any regex to not impact performance and apply it directly to Services. 

It is true that some delay is expected, but normally, within 3 to 10 minutes, the rule should be applied to every entity in the environment. 

Try following the best practices

I can't help more here. 

Best regards! Wish a good monitoring! dynatrace-royalblue_600.png

Hope you a good monitoring!
Jaume Reverte

mrc15816
Advisor

@jaume_reverte @rgarzon1 thank you both for your recommendation.

We are using {host:DetectedNames} and this method wouldn't work under entity selector and we couldn't pick monitored entity as we can't pick os:services hence couldn't achieve. Any other ideas?

Thanks

Raj

But if you use entity selector the options for set services provided will not work. 

fuelled by coffee and curiosity.

@rgarzon1 the method you are calling out is only available for Monitored Entity method, but the OS services is not available under this method, unless we are missing something here.

Thank you Raj

Now understand, i was thinking in services in general, after your message try to doit by myselft and notice that its right, there is not a way to doit without reach some limits. 

- set a tag with the host name for every service in the host ( no posible if there ist more than a x quantity)

- set a tag by group or range of ip (no a viable option because its not an easy way to drill down in problem)

- set the tag by hostgroup (probably a good option but not too far from a nightmare to drilldown)

and etc.. 

i was thinking now for the use of this the host in the service inside a host.  maybe you will need it when a problem its raise and need more information in the message. 

but while i was thinking in that got this for me. 

rgarzon1_0-1720224682328.png

 

timeseries availability = sum(dt.osservice.availability), by: { dt.entity.host, dt.osservice.status, `dt.entity.os:service` }
| fieldsAdd entityName(dt.entity.host), entityName(`dt.entity.os:service`)
| summarize count = count(), by:{dt.entity.host.name, dt.osservice.status, entityName(`dt.entity.os:service`) }
| summarize   active = countIf( dt.osservice.status == "active")
            , activating = countIf( dt.osservice.status == "activating")
            , failed = countIf( dt.osservice.status == "failed")
            , inactive = countIf( dt.osservice.status == "inactive")
            , by:{ dt.entity.host.name }

or

rgarzon1_1-1720225125845.png

i was not able to set the host for the os:services but get something to analyze .. thank you

fuelled by coffee and curiosity.

@rgarzon1  thank you for checking out and sharing some thoughts.

Featured Posts