14 Mar 2023 04:40 PM - last edited on 15 Mar 2023 07:53 AM by MaciejNeumann
Hi all,
I will enrich the metrics of various hosts using Metrics API v2.
One of the metrics is a state metric: Up, down, surveillance,...
I can use another API but the Metrics v2 are the only that I found able to send metrics to Hosts and not custom devices.
I know that I can change the unit using dt.meta.unit="State" but now Im facing a wall on how to proceed.
Solved! Go to Solution.
14 Mar 2023 05:07 PM
Hi @rdinis also you can ingest Host metrics through the OneAgent Metric API also have in mind that you have a DDU credit for every HU buyed.
14 Mar 2023 05:20 PM
Hi @DanielS thank you for ur answer, they use the same ingestion protocol 😁
Let me clarify what I'm trying to do. So, I will be using the Metric API and i want to change the metric unit to State.
For extension 1.0 I can see that I need to give the different states:
statemetrics-active-extension
"states": ["OK", "Troubles", "Bad"],
I would like to know if its possible to create a custom metric with a state similar to this example.
14 Mar 2023 05:44 PM
In the Metric API it looks like the unit is a string not an array, i have done something for VPN states but (personally) i prefer to use numbers because i can apply more aggregations later. But if your metric Unit is States, then Ok, Trouble and Bad" will be values.
14 Mar 2023 08:28 PM
Hi @rdinis
The unit only will change axis label but the metric still will hold a number
Don't think there is a way to send string to a metric
Yos