Top 3.4% dependent packages on proxy.golang.org
proxy.golang.org : github.com/clambin/grafana-json
Package grafana_json provides a Go implementation for Grafana's SimpleJSON datasource: https://grafana.com/grafana/plugins/grafana-simple-json-datasource A grafana_json server is an HTTP server that supports one or more handlers. Each handler can support multiple targets, each of which can be supported by a timeseries or table query. Optionally tags can be used to alter the behaviour of the query (e.g. filtering what data should be returned). Finally, a handler can support annotations, i.e. a set of timestamps with associated text. To create a SimpleJSON server, create a Server and run it: This starts a server, listening on port 8080, with one handler (myHandler). A handler groups a set of targets and supports timeseries queries, table queues and/or annotations, possibly with tags. The Handler interface includes one function (Endpoints). This function returns the Grafana SimpleJSON endpoints that the handler supports. Those can be: Of these, Search() is mandatory. You will typically want to implement either Query or TableQuery. Here's an example of a handler that supports timeseries queries: Timeseries queries returns values as a list of timestamp/value tuples. Here's an example of a timeseries query handler: Table Queries, on the other hand, return data organized in columns & rows. Each column needs to have the same number of rows: For information on query arguments, annotations and tags, refer to the documentation for those data structures.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/clambin/grafana-json
License: MIT
Latest release: almost 4 years ago
First release: over 4 years ago
Namespace: github.com/clambin
Dependent packages: 2
Last synced: 10 days ago