inspectIT Ocelot provides a map of common tag keys and values that are used when recording all metrics. This feature enables to "label" metrics collected with inspectIT Ocelot and to share common information about a process or an environment where the process runs. The map can be extended or overwritten by the user when this is required.
Tag providers are responsible for extracting information from a specific source and provides a map of key value pairs that are then combined into the common tag context. Each provider specifies a priority and if the same tag keys are supplied by two providers, then the tag value from the provider with higher priority will be used.
inspectIT Ocelot currently supports the following tag providers:
|Provider||Tags provided||Supports run-time updates||Enabled by default||Priority|
|User Defined Tags||-||Yes||No||HIGH|
Run-time updates currently only support changing of a tag value, but not adding or removing tags.
User Defined Tags
User defined tags can be added to the common tag context by defining the
Setting the user defined tags using properties:
Setting the user defined tags using YAML file:
inspectit: tags: extra: region: us-west-1 stage: preprod
The environment tag provider extends the common tag context by supplying information about the service and the network host.
The service is resolved from the
inspectit.service-name property, while the host information is extracted using
On machines that have multiple network interfaces the
InetAddress.getLocalHost()method might not provide desired values for host related tags.
|Enables or disables the provider.|