appnexus / grafana-api-java-client Goto Github PK
View Code? Open in Web Editor NEWA simple java client for interacting with Grafana using a fluent interface.
License: Other
A simple java client for interacting with Grafana using a fluent interface.
License: Other
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
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])
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 )
Hi,
It would be great to have a support for the datasources endpoint
http://docs.grafana.org/http_api/data_source/#create-data-source
If nobody is working on it I might do it myself or at least the create function call.
Otherwise deserialization will fail (against Grafana 4.6.2, at least) due to an apparently flexible representation of certain fields as either a string or an array of strings (e.g. "tags").
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.
how do you create query metrics in .target()
Note that #11 can provide a means of ensuring that such missing model entities can still be preserved during roundtrip modification.
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.
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.
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.
Correct me if I'm wrong but it seems that the dashboard methods are expecting uids and not names.
So getDashboard and others cannot work as expected from the README and the javadoc.
See:
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.
Is there a way to create a dashboard using a JSON export of an existing one?
Just by looking at it it seems that it's the expected format http://docs.grafana.org/http_api/dashboard/#create-update-dashboard
What do you think of adding a new method to create a dashboard from a raw export instead of a created model?
It would be great if the 1.0.4 could be release to nexus
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.