cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Metrics API v2 - unit State

rdinis
Participant

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.

4 REPLIES 4

DanielS
DynaMight Leader
DynaMight Leader

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.

The true delight is in the finding out rather than in the knowing.

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.

DanielS
DynaMight Leader
DynaMight Leader

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.

The true delight is in the finding out rather than in the knowing.

Yosi_Neuman
DynaMight Guru
DynaMight Guru

Hi @rdinis 

The unit only will change axis label but the metric still will hold a number 

 

Yosi_Neuman_3-1678825485961.png

Don't think there is a way to send string to a metric 

Yos 

 

 

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Featured Posts