Comments (10)
@anryko Hey, I would suggest you to run our collectd Docker image with docker-collectd-plugin preinstalled. Just run something like:
docker run \
-d \
--name collectd \
--hostname foo \
--privileged \
--volume /proc:/mnt/proc:ro \
--volume /etc/collectd:/etc/collectd \
--volume /var/run/docker.sock:/var/run/docker.sock \
chimeradev/collectd:5.5.0-3
Make sure to add the following lines to your /etc/collectd/collectd.conf
:
TypesDB "/usr/share/collectd/types.db"
TypesDB "/usr/share/collectd/docker-collectd-plugin/dockerplugin.db"
# ....
<LoadPlugin python>
Globals true
</LoadPlugin>
# ....
<Plugin python>
ModulePath "/usr/share/collectd/docker-collectd-plugin"
LogTraces true
Interactive false
Import "dockerplugin"
<Module dockerplugin>
BaseURL "unix://var/run/docker.sock"
Timeout 3
</Module>
</Plugin>
Now run any other container on the same host: you should be able to see Docker metrics coming to your InfluxDB instance.
from grafana-influx-dashboard.
Hi @oli-g
Great idea! I'll definitely dig in to it during the weekend.
Thanks!
from grafana-influx-dashboard.
Didn't succeed in setting up docker plugin to pass statistics to influxdb so far. Encountered reported issue: lebauce/docker-collectd-plugin#37. Will investigate more.
@oli-g does this collectd docker plugin work for you?
from grafana-influx-dashboard.
I'm going to try adding the plugin to my collectd Docker image, then I'll get back to you. Thanks for looking into this!
from grafana-influx-dashboard.
Here you can find a Collectd Docker image already including the Docker plugin: https://github.com/signalfx/docker-collectd.
They explained their process here: https://signalfx.com/blog/monitoring-docker-at-scale-with-signalfx/.
from grafana-influx-dashboard.
@oli-g hey,thanks for detailed howto on your setup. It was very helpful. Please checkout initial implementation and let me know what you think.
I encountered the same issue as with processes extended metrics, when for the same metric in some graphs I want to see instances combined and in others separated. Last time I approached it by splitting metric in to two plugins. However, this time the same approach would look ugly. So I added possibility to setup 'multi': (true|fasle)
per graph. Seems to work well for this case.
I'm going to rework processes plugin in the same manner. What do you think about that?
from grafana-influx-dashboard.
Merged docker plugin.
from grafana-influx-dashboard.
@anryko Hi! Sorry for not giving you that feedback. I already tested the new Docker plugin integration, and it looks good to me. Just one question: where should I set 'multi': (true|fasle)
?
from grafana-influx-dashboard.
@oli-g Hi! No problem. I added it panel
config: https://github.com/anryko/grafana-influx-dashboard/blob/master/getdash.conf.js#L2929
from grafana-influx-dashboard.
@oli-g I couldn't find the source files for chimeradev/collectd:5.5.0-3
anywhere on GitHub or the web. Would you mind sharing them for trustability?
Right now it feels wrong to run an unknown container with priviledged access to the docker host.
See ecobytes/collectd-influxdb-grafana-docker@22b8cb6
Additionally I wonder what https://hub.docker.com/r/olinicola/grafana-collectd-dashboards/ intends to provide.
from grafana-influx-dashboard.
Related Issues (20)
- Missing db parameter when using proxy mode on graphite HOT 3
- Update method to have getdash show up on grafana main page HOT 6
- Suggested retention/CQ scheme for rollups? HOT 5
- /api/datasources endpoint not accessible in 3.0.1 for non-Admin users HOT 2
- Please make sure it exists and returns a valid dashboard HOT 5
- Missing u= & p= parameter when using proxy mode on influxdb HOT 2
- [Request] Integrate multiple host selection. HOT 2
- [Request] Integrate the opportunity to search a host. HOT 8
- Duplicate metrics HOT 3
- OMG is excelent thanks HOT 3
- allow instance selection HOT 11
- Add a checkbox for choosing a host. HOT 4
- Improve processes plugin HOT 12
- Add project to Grafana Dashboards page HOT 1
- TypeError: _.compose is not a function HOT 2
- batch create alert for version 4.0 HOT 1
- excessive legends for metric cpu HOT 4
- Better schemaVersion support for different version of grafana HOT 2
- Fails if used behind a reverse proxy with a sub path HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-influx-dashboard.