appnexus/grafana-api-java-client

Can this library help us to get dashboard data from grafana?

Sunyelw opened this issue · 1 comments

I got an requirement to obtain the highest tps by java, which can resolve it by PromQL and Grafana dashboard like this:

rate(gateway_requests_seconds_count{application=~"xxxx"}[1m])

dashboard
image

But I do not know how to get this highest tps from Grafana by Java Program in periods. ( such as a week、a month or a year )

I suppose you should query your datasource directly