github-datasource icon indicating copy to clipboard operation
github-datasource copied to clipboard

Different value format for the workflows stats

Open orensbruli opened this issue 1 year ago • 4 comments

image

The values of the skipped/successes/failures/cancelled workflows stats are sent to Grafana like shown in the image. This makes it more difficult to represent it in a pie or any other graph. Could we just send the int value and let Grafana calculate the percentage?

orensbruli avatar Oct 23 '23 07:10 orensbruli

My best guess is that it comes from here: https://github.com/grafana/github-datasource/blob/371549f6fe32d325c4ee5551a7894e9b51727b22/pkg/github/workflows.go#L132-L144 If we still need the percentages, can we create specific columns for those?

orensbruli avatar Oct 23 '23 07:10 orensbruli

And the change could be something like this? #266

I would appreciate your thoughts @PoorlyDefinedBehaviour

orensbruli avatar Oct 23 '23 07:10 orensbruli

And the change could be something like this? #266

I would appreciate your thoughts @PoorlyDefinedBehaviour

Sounds good to me

PoorlyDefinedBehaviour avatar Dec 05 '23 13:12 PoorlyDefinedBehaviour

This would be super useful for us 👍

richgreen-moj avatar Jun 27 '24 15:06 richgreen-moj