13 Mar 2025 08:25 AM
Hi,
I have a custom metric (I am ingesting data points using the metrics API) which contains attributes such as: id, status, substatus, etc.
I am trying to visualize the data points of this metric with honeycomb. I am trying to plot all the ids with the specification:
- green: if status == "ok"
- yellow: if status == "warning" and substatus == "retry"
- red: if status == "failed" and substatus == "error"
The status and substatus are just dummy examples.
Is there a way to achieve this scenario with my metrics? I tried looking into calculated metrics, but I saw that it works only on the metrics ingested via OneAgent. Thus, I am stuck.
I appreciate any help on this 🙂
13 Mar 2025 11:34 AM
Hi @KushalG, Hope you are doing well, If you are looking for the solution for Calculated service metrics, then yes we can do this.
If the ask is different please post it. lets see the other workaround.
Thanks
13 Mar 2025 03:57 PM
Hi @AravindhanV , thanks for your answer.
Is it possible to derive a calculated metric out of my custom metric?
As I had explained earlier, I have fine grained data points for every task, and I want to derive a calculated metric based on my specifications, such as (e.g.):
id=<id1>, state = 0 ( because status == 'ok')
id=<id2>, state=1 (because status == "warning" and substatus == "retry")
id=<id3>, state=1 (because status == "warning" and substatus == "paused")
id=<id4>, state=2 (because status == "error" and substatus == "failed")
if this can be achieved, I can plot this calculated/derived metric and color code my tasks accordingly.
Regards,
Kushal.
13 Mar 2025 11:50 AM
So with thresholds you will be stuck with using a numeric. Which means you cant call out Green = "Okay" Green would have to equal a Number. This goes for the other colors, here is an example using your design that closely aligns with Pod Phases:
What we did for Pod Phases was use a Pie chart:
This allows us to call out the Phase which isn't a numeric value, and assign it a color.
I hope this helps 🙂
13 Mar 2025 03:51 PM
Hi Chad,
thanks for your answer. Initially, I did use a pie chart to display this information. But, in our case, we wanted to have an overview of all the tasks (identified by id) and not groups. And that's where things got tricky.
I wanted to plot it like this:
Do you know if there's any solution to this?
Regards,
Kushal.
13 Mar 2025 04:12 PM
So I dont think you will get them into one Honeycomb overall. You might need to do a group in each tile. Split by Task ID, then filter on all tasks that have a status "OK" as green, Then make another tile that does the same thing but filters on the next task result and you can add in the desired color. The issue is the status isnt a number, If it was 1 as good, 2 as warning, 3 as bad then yes you could use a single honeycomb.