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
Hi Fernando,
Yes you can use our new, extremely flexible metric ingest endpoint.
See here:
Best greetings,
Wolfgang
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:
Intelligent, context-aware AI analytics for all your custom metrics
- You can push metrics using environment API. It’s the same line procol as above. See specification with examples here:
Metrics API - POST ingest data points — Dynatrace Docs
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:
Develop your own Extensions — Dynatrace Docs
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
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.
AFAIK the new metric explorer will replace the Custom chart eventually. That’s why is is considered as a preview at the moment.