26 Jan 2022
11:10 AM
- last edited on
18 May 2023
12:04 PM
by
Michal_Gebacki
Hello Community,
Where is the appropriate location to store temporary files, I seem to be getting "error 13 permission denied" when trying to read or write a file from my extension logic.
When I started working on this extension, I had a lot of questions and I am glad I saw similar answers in the community. I wish the docs are comprehensive or maybe I haven't found the right docs.
Please share if you do.
Solved! Go to Solution.
Hi,
I've always used import tempfile and saved it in tempfile.gettempdir(). That works with thousands of endpoints over hundreds of companies.
Mike
Thanks, Mike.
I know metrics have to be defined in the JSON file before any of the methods like "absolute or relative" can be used with the key named argument.
Is there a way to do dynamic metrics? I intend to get the metric from the config UI.
What I always do when that's needed is to send in the metrics via the metrics ingest API/cli. That way you can name it whatever.
So using the API or CLI doesn't need the device group or device, right?
Kindly share with me an open-source Activegate plugin with this pattern.
Thanks in advance.
Correct. For improved visualization you can create a generic entity, and potentially a generic relationship.
Kindly share with me an open-source Activegate plugin with this pattern.
Thanks in advance.
Hi, There is none, only paid extensions from our services department.
While it might not ease your specific need, I have compiled a list of public available Activegate extensions:
https://community.dynatrace.com/t5/Dynatrace-tips/Activegate-Extensions/m-p/113705
It's interesting sometimes to learn by example 🙂
Hello @AntonioSousa & @Mike_L ,
I have got a few questions about metrics ingestion and charting for dashboards.
Give the sample data heading:
"date_time started" | "date_time ended" | "metric_data"
How do I ingest this as a single data point?
The timeframe selector is tied to the date and time the metric was ingested, but how do I create a visualisation based on the other values I have, Essentially changing the axis, if they can be ingested as a single data point?
What has dimension got to do with these?
Maybe pass in a second metric called "response time" or so that's the difference between started and ended?
Yes, I also do it this way.
Thanks.
I will test all my theories. Hopefully, it works.
Thanks, Anthonio.
I found the list earlier, and it has been helpful.