metering-operator icon indicating copy to clipboard operation
metering-operator copied to clipboard

Is any idea how to visualize?

Open vovkanaz opened this issue 6 years ago • 3 comments

Good day. Is any idea how to visualize? Show metering reports in Grafana... In my mind only to create custom Grafana data source and parse JSON. But how to send data automatically without using curl and kubectl proxy. Thanks in advance!

vovkanaz avatar Apr 11 '19 08:04 vovkanaz

Hello! As per my point of view here is only one way how to implement this https://grafana.com/docs/plugins/developing/datasources/

ivanguravel avatar Apr 11 '19 08:04 ivanguravel

but i can't see any automatization of that from metering side :(

ivanguravel avatar Apr 11 '19 08:04 ivanguravel

You can expose the metering API using a Openshift Route, or a LoadBalancer service or if you have Ingress you could use that (though that isn't integrated), then you can access the results as CSV/TSV/JSON through any type of dashboarding software you prefer. Most tools I've used support CSVs fairly well. I generally just visualize things in excel/libreoffice calc locally, but a lot of similar tools can import CSVs from a URL on a schedule.

chancez avatar Apr 11 '19 16:04 chancez