Developer from Taiwan ๐น๐ผ
Site Reliablity Engineer, DevOps Engineer, Cloud Engineer, Technical Support Engineer
Demo purpose scripts for running Grafana with InfluxDB as datasource.
I've been using this set up with Gatling, to do this we need to have the graphite endpoint enabled and add some templates, which we were doing in the influxdb.conf file (sections I was adding below). With the latest commit upgrading to InfluxDB 2, this no longer exists. Can you advise on where I should be making these changes now?
templates = [
"gatling..users..* measurement.simulation.measurement.request.field",
"gatling...... measurement.simulation.group1.group2.request.status.field group=2",
"gatling.....* measurement.simulation.group1.request.status.field group=1",
"gatling.... measurement.simulation.request.status.field group=0",
"v2.gatling....users..* .measurement.run.host.simulation.measurement.request.field",
"v2.gatling........ .measurement.run.host.simulation.group1.group2.request.status.field group=2",
"v2.gatling.......* .measurement.run.host.simulation.group1.request.status.field group=1",
"v2.gatling...... .measurement.run.host.simulation.request.status.field group=0"]`
[[graphite]]
enabled = true
database = "gatling"
bind-address = ":2003"
protocol = "tcp"
batch-size = 5000
batch-pending = 10
batch-timeout = "1s"
separator = "."
After running docker-compose up:
...
grafana_1 | installing grafana-clock-panel @ 0.1.0
grafana_1 | from url: https://grafana.com/api/plugins/grafana-clock-panel/versions/0.1.0/download
grafana_1 | into: /var/lib/grafana/plugins
grafana_1 |
grafana_1 |
grafana_1 | Error: โ Could not create /var/lib/grafana/plugins/grafana-clock-panel. Permission denied. Make sure you have write access to plugindir
grafana_1 |
grafana_1 | NAME:
grafana_1 | Grafana cli plugins install - install <plugin version (optional)>
grafana_1 |
grafana_1 | USAGE:
grafana_1 | Grafana cli plugins install [arguments...]
demo_grafana_1 exited with code 1
What is so dangerous about using these tools in production?
With Grafana version upgrade, when container boot up, it will try to find plugins
and alerting
directories. But it currently have no folder pre-created, causing error message prompt behind the scene.
grafana |logger=provisioning.plugins t=2023-03-22T14:30:23.196557499Z level=error msg="Failed to read plugin provisioning files from directory" path=/etc/grafana/provisioning/plugins error="open /etc/grafana/provisioning/plugins: no such file or directory"
grafana |logger=provisioning.alerting t=2023-03-22T14:30:23.204998472Z level=error msg="can't read alerting provisioning files from directory" path=/etc/grafana/provisioning/alerting error="open /etc/grafana/provisioning/alerting: no such file or directory"
ref: https://grafana.com/docs/grafana/latest/administration/provisioning/
I lost a bunch of volumes unrelated to this project to docker system prune --volumes --force
in the cleanup script. Any particular reason why you don't just use the -v
flag with docker-compose down -v
?
No worries by the way. I didn't lose anything I actually needed, but it could have been much worse.
And thanks for this project. It helped me a lot!
Making changes in grafana.ini is not reflection since its not been mounted. @guessi
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.