
- Mark as New
- Subscribe to RSS Feed
- Permalink
‎15 Oct 2020
01:26 AM
- last edited on
‎03 Oct 2022
11:03 AM
by
Ana_Kuzmenchuk
Hi,
We have a series of "circuit breakers" that determine the logical behavior of the application (something like WITH PROBLEM / NO PROBLEM).
The idea is to take the status of these circuit breakers to Dynatrace, with customized metrics, creating dashboards, thresholds and notifications.
The big question is: Can we push custom metrics via some endpoint of Dynatrace API? What would be the endpoint?
Or is the only way via Dynatrace Plugin?
Thank you,
Fernando
Solved! Go to Solution.
- Labels:
-
dynatrace api
-
metrics
- Mark as New
- Subscribe to RSS Feed
- Permalink
‎15 Oct 2020 07:12 AM
Hi Fernando,
Yes you can use our new, extremely flexible metric ingest endpoint.
See here:
https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/post-ingest-metrics/
Best greetings,
Wolfgang
- Mark as New
- Subscribe to RSS Feed
- Permalink
‎15 Oct 2020
07:12 AM
- last edited on
‎23 Mar 2023
11:06 AM
by
MaciejNeumann
Sure you can!
There are several methods you can choose from for pushing the metrics:
- Push the metrics locally on the OneAgent. This is a newly released feature and has to be enabled in the environment in Settings -> Monitored technologies. Then you can use either statsd protocol or metric line protocol to push metrics locally to a port OneAgent will listen to.
See more in this blog post:
https://www.dynatrace.com/news/blog/intelligent-context-aware-ai-analytics-for-all-your-custom-metri... - You can push metrics using environment API. It's the same line procol as above. See specification with examples here:
https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/post-ingest-metrics/
Albeit not widely mentioned, metrics can be pushed also using ActiveGate as the API endpoint. You can push the metrics via API also from platforms where you can't install OneAgent - You can write an oneagent extension and push the metrics using the extension. See more here:
https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-exte...
Just for the record, OneAgent Python extensions are limited to Linux and Windows OneAgents. They are not yet available for AIX and won't be available for Solaris

- Mark as New
- Subscribe to RSS Feed
- Permalink
‎15 Oct 2020 01:09 PM
Thank you all.
The metrics ingestion protocol is exactly what I need.
I just found it strange that the Chart (Explorer) was separate from the Custom Chart.
Fernando.
- Mark as New
- Subscribe to RSS Feed
- Permalink
‎16 Oct 2020 07:50 AM
AFAIK the new metric explorer will replace the Custom chart eventually. That's why is is considered as a preview at the moment.
