kjanshair / docker-prometheus Goto Github PK
View Code? Open in Web Editor NEWA minimal Prometheus Server, Node Exporter, BlackBox Exporter and Grafana implementation with `docker-compose`.
A minimal Prometheus Server, Node Exporter, BlackBox Exporter and Grafana implementation with `docker-compose`.
Getting the following error from docker-compose logs show the error. Note that I removed the --fail
from the curl cmd in the grafana_api function while trouble shooting
grafana | Installing dashboard /etc/grafana/dashboards/node-stat.json
grafana | /setup.sh: line 63: /etc/grafana/dashboards/node-stat.json.wrapped: Permission denied
grafana | Running curl -L -s -H "Accept: application/json" -H "Content-Type: application/json" -X POST -k http://admin:secret@localhost:3000/api/dashboards/db --data @/etc/grafana/dashboards/node-stat.json.wrapped
grafana | t=2019-09-20T18:29:10+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/dashboards/db status=422 remote_addr=127.0.0.1 time_ms=51 size=84 referer=
grafana | [{"fieldNames":["Dashboard"],"classification":"RequiredError","message":"Required"}]installed ok
grafana | rm: cannot remove '/etc/grafana/dashboards/node-stat.json.wrapped': No such file or directory
It seems that the user, grafana(uid=472) in my case, does not have permission to add the .wrapped
file to the /etc/grafana/dashboards
directory
At the moment, I attempting this patch to setup.sh
--- setup.sh 2019-09-20 18:28:15.572023980 +0000
+++ setup.sh.new 2019-09-20 18:45:05.475899109 +0000
@@ -60,15 +60,15 @@
if [[ -f "${dashboard}" ]]; then
echo "Installing dashboard ${dashboard}"
- echo "{\"dashboard\": `cat $dashboard`}" > "${dashboard}.wrapped"
+ echo "{\"dashboard\": `cat $dashboard`}" > "/tmp/dashboard.wrapped"
- if grafana_api POST /api/dashboards/db "" "${dashboard}.wrapped"; then
+ if grafana_api POST /api/dashboards/db "" "/tmp/dashboard.wrapped"; then
echo "installed ok"
else
echo "install failed"
fi
- rm "${dashboard}.wrapped"
+ rm "/tmp/dashboard.wrapped"
fi
done
}
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.