trivago / hamara Goto Github PK
View Code? Open in Web Editor NEWExport datasource from the existing Grafana DB into a YAML provisioning file
License: Apache License 2.0
Export datasource from the existing Grafana DB into a YAML provisioning file
License: Apache License 2.0
export GRAFANA_API_KEY=<your API key here>
docker run --rm trivago/hamara export --host=localhost:3000 --key=$GRAFANA_API_KEY > datasources.yaml
cat datasources.yaml
It should be rather something like this:
export GRAFANA_API_KEY=<your API key here>
docker run --rm trivago/hamara ./hamara export --host=host.docker.internal:3000 --key=$GRAFANA_API_KEY > datasources.yaml
cat datasources.yaml
Added a binary and changed host, alternatively --network host
could be used.
Add a README with the description of the tool, the requirements to use it, etc.
Some resources:
If the --host
flag doesn't include the protocol we get the following error:
./grafana-datasource-to-yaml export --host=monitoring.trivago.trv --key=$GRAFANA_KEY
Get monitoring.trivago.trv/api/datasources: unsupported protocol scheme ""
We should do one of:
http
if nothing else is setIf we're exporting a lot of datasources it may take a while. We should consider adding a progress indicator of some sort. Either some sort of progress bar, counter or similar. This should provide some feedback to the user to know that the app is doing something.
These packages may be helpful:
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.