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
339 stars 86 forks source link

How can I use the Push API (HTTP API ) #656

Open JooyoungJeong opened 5 years ago

JooyoungJeong commented 5 years ago

Hi.

@chancez you mentioned in https://github.com/operator-framework/operator-metering/issues/640

We currently have an HTTP API which supports being pushed metrics

I want to push the metrics to the datasource using the push metric API. What should I do?

my operator-metering version: v0.12.0

thank you.

chancez commented 5 years ago

It really depends on your use case. You said you wanted to import historical metrics, but this API won't help unless you already have them in the JSONified version of metrics our API expects (it doesn't accept the result of a Prometheus query for example). This API wouldn't be a good choice for that.

peteanusergiu commented 4 years ago

Hi @chancez,

would it be possible to expose the Push APIs? maybe in a separate branch? I have an usecase where I generate my daily visualisation with Prometheus(+Grafana) but I would also like to see the historical data. Generating the JSONified version out of the historical data is not an impossible job especially when I have your datasource examples for the e2e testing. Are the Push APIs available also for a normal Docker installation or they are specific just for Operator?

thanks

chancez commented 4 years ago

Sorry, but I don't work on operator-metering anymore, you should discuss this with @timflannagan1

peteanusergiu commented 4 years ago

Hi @timflannagan1 could you please pick this topic up?