22 Feb 2024 01:34 PM - last edited on 07 Mar 2024 09:03 AM by Michal_Gebacki
Team,
Can anyone please advise how do we ingest custom application open metrics onto Dynatrace SAAS using OneAgent? I am able to ingest the open metrics through OpenTelemetry, but not sure where to configure open metrics on OneAgent to bring the metrics into Dynatrace as OneAgent is not able to detect the metrics on its own.
22 Feb 2024 01:48 PM
With the OneAgent on the same host, metrics from opentelemetry are automatically sent to the OneAgent metric API. But you need to enable the metrics API .
22 Feb 2024 02:01 PM
Thanks @PacoPorro for your response, Can't we ask OneAgent to directly pull the custom application metrics rather than using OpenTelemetry component as the additional layer to pull the application metrics?
FYI - I am able to get the application metrics data in Dynatrace SAAS with the use of OpenTelemetry agent by using otlphttp exporters - https://{environmentid}.live.dynatrace.com/api/v2/otlp. (here OneAgent is not all being used)
And I would like to avoid the usage of OpenTelemetry agent by just asking Dynatrace oneAgent alone to pull the metrics and ingest the metrics data into Dynatrace SAAS.
Would that be possible at all?
22 Feb 2024 03:24 PM
Not sure if you're looking for the Dynatrace metric exporter.
https://github.com/dynatrace-oss/opentelemetry-metric-java?tab=readme-ov-file
22 Feb 2024 04:30 PM
Thanks @PacoPorro for your response.
Not Exactly. I am trying to eliminate the usage of OpenTelemetry agent on the host. Basically I would like to uninstall OpenTelemetry agent (customer is not interested to use open-source agent) and they just wanted to use Dynatrace OneAgent to collect the custom application metrics and send it to Dynatrace SAAS.
23 Feb 2024 01:52 PM
My next suggestion is oneagen sdk.
With the Dynatrace OneAgent SDK, you can:
Trace incoming and outgoing remote calls
Trace database requests
Trace incoming and outgoing web requests
Trace in-process asynchronous execution
Trace queues and messages
Capture request attributes