Use tags to organize monitoring data and analysis based on related entities in all environments. Tags simplify searches for related services, process groups, and hosts. They also facilitate the collection of related metrics into meaningful groups for analysis. Tags can also be used for all types of entities across your environment for the purpose of alerting, charting and window maintenance. For more details on defining maintenance windows via tags, see How to define a maintenance window.
You can apply tags manually or automatically.
In smaller environments, tags can be set up manually by following the steps listed below.
To list all tags manually applied to any entities
bc
matches bcd
, abc
, and abcd
)To list all tags manually applied to a certain entity (such as an application, browser monitor, HTTP monitor, service, host, or process)
You can manually apply and clear tags:
To manually apply or clear a tag for multiple entities
Go to Settings and select Tags > Manually applied tags.
Find and select an existing tag, or create a new tag.
bc
matches bcd
, abc
, and abcd
)By default, the table displays applications.
Tagged
is selected and the selected check boxes indicate applications to which the tag has already been appliedUntagged
is selected and no check boxes are selected (because the tag doesn't exist yet)optional Change Applications
to All types
or another specific component type, depending on the type of component to which you want to apply the tag.
optional Change Tagged
to All
or Untagged
.
optional Enter a value in the edit box.
This is a value for a key:value pair.
Select or clear the check box for each component for which you want to apply or clear the selected tag.
To manually apply or clear a tag for a single entity (such as an application, browser monitor, HTTP monitor, service, host, or process), it may be easier to start from the entity page.
For example, to tag a single host manually
(applied by tagging rule)
.Automatic tagging is rule based:
You can also set up automated tagging of the entities in your environment using:
To automatically apply a tag
Go to Settings and select Tags > Automatically applied tags.
Select Create tag.
Type a name for the new tag in the Tag name field.
Select Add new rule.
Specify an Optional tag value. This value will appear next to the tag name after a :
and is used to provide more precise information. This value can be a property of the entity (for example, a service or a process group) where the tag is applied to. If the selected property is not available, the tag value will remain empty. Please note, that optional tag value placeholders do not work for entity selector based rules.
From the Rule applies to list, choose the type of entity you want to apply the rule to (such as Services
, Process groups
, or Hosts
).
optional Restrict the rule to specific entities by setting the provided properties using the respective lists.
You can directly define a condition that the entity must meet before the tag is applied. If you want to define more conditions, select Add condition. Conditions check for specific values of any property that is available within the Conditions drop list on the left. A rule example for a tag named ocp-project
is shown in the image below.
You can also propagate a rule to the underlying entities (such as process groups and hosts in the case of services, or hosts in the case of process groups) by selecting the corresponding check boxes at the bottom of the rule (see image above).
Select the Preview button to verify the results returned by the specific rule. Note that to be tagged, an entity must meet all the specified conditions of a rule.
Select Create rule. You can define multiple rules for each tag. Rules are executed in order. You can edit or delete a defined rule or activate/deactivate a rule at any time via the Disable/Enable switch.
To save your tag, select Save changes at the bottom right corner of the page.
When you select a tag, you can see the rules currently defined for the tag as well as the entities that match all the defined rules in the Matching entities area. Automatically applied tags are applied to all existing and newly detected entities (services, process groups, and others). Note that it can take up to a minute before your new tag is applied. Once a tag is applied to an entity, the tag is listed on that entity's page. For example, with services, each new tag is listed on the service's overview page within the Properties and tags section. The tag named ocp-project
, for instance, that was defined in the example above, appears on the overview page of ocp AuthenticationService
within Properties and tags extended with the tag value demo-live-1
(see image below).
Each tagging rule is self-contained and evaluated independently of any other existing rules.
You can create conditions for your automatically applied tags based on regular expressions. In step 8 above, select the property you want from the Conditions drop list on the left. Then select contains regex from the next drop list and type the regular expression in the text field.
Automatically applied tags cannot be used in conditions for automated rule-based tagging.
The service and process group properties available for tagging vary based on technology type.
To find out which properties a service provides:
To find out which properties a process group provides
The image below shows two rules. The first rule filters services that are of type Web service, running on Tomcat, that include the string BB
in their process group names. The second rule returns services that run on Tomcat and whose Web application ID contains the word frontend
.
The rule example below matches all services that are built on Java-based service technologies, run in a Cloud Foundry space called development
, have the PaaS setup type cloud foundry
, and include the string spring
within their detected process group name.
The example below shows a rule that applies a tag to all Azure websites services on process groups where the Detected group name does not begin with IIS app pool ~
.
The image below shows a rule that tags specific process groups through the selection of the check box—thereby additionally applying the tag to the underlying hosts.
The Infrastructure tab includes the hosts to which the tag has been propagated (see image below).
Service, process group, and host tags can be leveraged in a number of ways. Two examples are detailed below.
You can use tags to narrow the focus of your analysis to a specific set of services.
Tag
and then type and select a tag name. Repeat this for each tag you want to filter the table by.Once you've selected a tagged group of related services, it's easy to focus your analysis on those services. For example:
You can also use tags for efficient routing of problem notifications to responsible team members.
For example, assuming that you've defined a tag, TeamBoston
, to tag all entities that this team is in charge of. To make sure the team members receive problem notifications
The next time a problem notification is sent out, Dynatrace will check to see if any affected services carry properties that you've defined in your service tags. When critical parts of your environment are affected by a detected problem, the related notification will be delivered to the appropriate teams.