Giter VIP home page Giter VIP logo

grafana-api-java-client's People

Contributors

alexandrerio avatar ashtynlynne avatar simpandev avatar skoka-anx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grafana-api-java-client's Issues

Support influxdb

I’m hoping to use this library to configure Grafana connected to an influxdb data source. The first problem I’ve ran into is that the dashboard panel target for influxdb doesn’t want a simple string for the target, but instead an object that represents the measurement/series/tag data that Grafana needs to talk to influxdb.

If you are ok with it, I would be happy to work on pull requests with this new functionality.

Cheers

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

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 )

Target

how do you create query metrics in .target()

Use private access for model member fields

The getters and (fluent) setters are public, so the fields should not be exposed directly.

Please note that I have created a fork that already implements this, and can produce a PR if this functionality is desired in the main code base.

Support additional Grafana APIs

Right now the library primarily supports the dashboards API. It would be helpful to my needs if it supported additional Grafana APIs. Of particular interest to me is the admin/users API, the folder API, and the teams API. I can split each of these into individual issues if that's preferred.

Use a common base class for all model classes that provides a way to transparently preserve unrecognized fields (via @JsonAnySetter/@JsonAnyGetter)

Not all fields from the Grafana API model are currently represented in the model classes, resulting in data loss when, for example, copying an dashboard and uploading the result.

Fortunately, Jackson provides "@JsonAnyGetter" and "@JsonAnySetter" to transparently preserve such recognized fields.

Additionally, this would provide for a stopgap workaround to get/put fields not represented in the model classes if their Grafana version (and therefore its API models) were updated before this project is able to add the new fields to the model classes.

Please note that I have created a fork that already implements this, and can produce a PR if this functionality is desired in the main code base.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.