kube-reporting / metering-operator

The Metering Operator is responsible for collecting metrics and other information about what's happening in a Kubernetes cluster, and providing a way to create reports on the collected data.
Apache License 2.0
337 stars 90 forks source link

Is any idea how to visualize? #673

Open vovkanaz opened 5 years ago

vovkanaz commented 5 years ago

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!

ivanguravel commented 5 years ago

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

ivanguravel commented 5 years ago

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

chancez commented 5 years ago

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.