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

Help with Process Group Naming Rule

ct_27
DynaMight Helper
DynaMight Helper

All,   I'm have a process that runs on all of our Windows machines,  "ProcessName1".   When I go to the Technologies view in DT I see a very long list of all the locations this process is running, so imagine the name "ProcessName1" repeated 100's of times with no other distinguishable characteristic.  It's like having 100 people in a room name "Joe".

 

Every one of our hosts has a HostGroup Name.  To be able to determine which process belongs to which host or hostgroup I created a 'Process Group Naming" rule shown below.

ct_27_0-1634736422387.png

 

The problem I'm having is whenever i turn this on a process group is created that lists all of my HostGroupName values in alphabetical order until a character limitation is met.

ChadTurner_0-1634849659953.png

 

 

 

What I expected was that on each host....if the Host Group Name EXISTS the rule would have pre-fixed the Process Group Detected Name with the HostGroup Name.

{HostGroup:Name} - {ProcessGroup:DetectedName}

 

Can anyone help explain why my logic is off and maybe even help me reach my objective?  Thank you in advance to the community.

 

Also, this is directly from Dynatrace online documentation:

"Additionally, host groups affect how process groups are detected. When the same process is running in two different host groups, Dynatrace will create one process group for each host group. This means you can also configure process groups differently depending on which host group they run in. Consequently, services are also grouped per host group. So you can configure services differently per host group."

4 REPLIES 4

Yosi_Neuman
DynaMight Champion
DynaMight Champion

Hi @ct_27 

I can help with the logic - You have used Proccess Group naming rule but you are looking for Proccess Instance naming rule , which as far as I know is not present.

Check this thread and this one too 

HTH

Yos 

dynatrace certificated professional - dynatrace primer partner - Matrix Soft Ware Division - Israel

I read through the two threads, wow, that is some complex stuff. Many of which look like they have other consequences as the rules are applied, that it overlaps, has exceptions, or might have to be applied multiple times for each need.  I feel like this should be much easier to accomplish.

 

I'm actually looking primarily for the process groups to become better organized.  Once the process groups split up correctly, the process group instances will naturally fall in line.  The rule I applied works for the most part....out of the 700+ only 2 process groups are pulling in a bunch of servers.  You can see in the screenshot many others are naming correctly.   The problematic process groups, one is pulling in 172 servers, the other 44 servers. So, of the 1,300 servers monitored this is happening only to 216.  

 

ct_27_0-1634745036420.png

 

Some of these machines are newer, some have been on OneAgent for a year.  All of our servers are re-started every month.  

 

I feel the configuration/logic is right but there is something in Dynatrace that's just not acting consistently.  This happens most frequently with Go processes.  Not sure if it's related to the Go technology or just coincidence that this technology is used for a widely used process.

 

@Yosi_Neuman thanks for the input.  I'll spend more time reading through the threads but I think my issue is simpler than that.

 

adam_gardner
Dynatrace Champion
Dynatrace Champion

You're correct. There is nothing wrong with your logic and you're right that host groups automatically create separations between process groups.

 

Were the host groups applied after the processes were started? Processes remain in their groups until they're restarted.

 

If that's the case, then the solution is to restart the processes and / or wait until your natural restart cadence. You'll gradually see new groups as the processes "move" from the combined group to their individual groups (after the process restart).

 

To demonstrate, in my demo setup (screenshot) I:

 

  1. Created 2 VMs and installed OneAgent with no host groups
  2. Installed apache2 on both
  3. Modified the host group while apache was still running and used --restart-service to restart OneAgent
  4. Both apaches are in the combined group
  5. Restarted only apache process on group1 host
  6. Notice a new group + old one (which will age away eventually)

 

 

adam_gardner_0-1634794792518.png

 

 

Edit: You mentioned that your OneAgents have been there for a while. Are they up-to-date? Let's not rule out an old OneAgent as a potential issue.

 

If this isn't the case, then speak to a DTONE representative via chat as a support ticket might be necessary?

@adam_gardner thanks so much for breaking it down. I think you nailed it with the the aging out part and the old OneAgent part.  

     We, (my admin and I) thought we were following all the rules when we did the --restart-service, not realizing this required pretty much a full system reboot because there are so many monitored processes on each machine.  This began our frustration.  

     Next we did reboot some machines (with our Guardian by our side) but then we saw the old and new groups. We knew we were on to something but it felt buggy.

     Finally we left it for a few months and yes most stuff started to clear but some stuff was still mixed up. This is where we were struggling to consistently recreate the issue and explain root cause.

 

    After your explanation and re-thinking the timeline it was a combination of a bunch of stuff.  New machines being deployed, not all old machines fully rebooting, the waiting game for old groups to phase out, and having some old OneAgents around.

 

    I'm going to go straighten all this out, give it time to settle, and will come back to this post to update the community with our results.

 

  Thank you again.