Git Product home page Git Product logo

docker-collectd-write-graphite's Introduction

collectd-write-graphite

Basic collectd-based server monitoring. Sends stats to Graphite.

Collectd metrics:

  • CPU used/free/idle/etc
  • Free disk (via mounting hosts '/' into container, eg: -v /:/hostfs:ro)
  • Disk performance
  • Load average
  • Memory used/free/etc
  • Uptime
  • Network interface
  • Swap

Environment variables

  • HOST_NAME
    • Will be sent to Graphite
    • Required
  • GRAPHITE_HOST
    • Graphite IP or hostname
    • Required
  • GRAPHITE_PORT
    • Graphite port
    • Optional, defaults to 2003
  • GRAPHITE_PREFIX
    • Graphite prefix
    • Optional, defaults to collectd.
  • REPORT_BY_CPU
    • Report per-CPU metrics if true, global sum of CPU metrics if false (details: collectd.conf man page)
    • Optional, defaults to false.
  • COLLECT_INTERVAL
    • Collection interval and thus resolution of metrics
    • Optional, defaults to 10

docker-collectd-write-graphite's People

Contributors

andreasjansson avatar mbessler avatar ntoivola avatar trinitronx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-collectd-write-graphite's Issues

How to turn on plugins?

Are there any ways to switch on other plugins?

What about to add to your collectd.conf.tpl few lines:

<Include "/etc/collectd/collectd.conf.d">
        Filter "*.conf"
</Include>

and map volume to directory /etc/collectd/collectd.conf.d/ so we could add *.conf files in it and manipulate with collectd?

unable to get collectd image to write to graphite

I am not sure this is the right place to ask for help with images. if not can you please, tell me where to do so?

hi, i am trying to get your collectd image working on a mac. i have got a shell into the image and used envtpl to generate a collectd.conf in /etc/collectd/collectd.conf

root@a4facd119feb:/etc/collectd# cat /etc/collectd/collectd.conf                                                                           
Hostname "rag.mac"                                                                                                                         

FQDNLookup false                                                                                                                           
Interval 10                                                                                                                                
Timeout 2                                                                                                                                  
ReadThreads 5                                                                                                                              

LoadPlugin cpu                                                                                                                             
#LoadPlugin df                                                                                                                             
LoadPlugin load                                                                                                                            
LoadPlugin memory                                                                                                                          
LoadPlugin write_graphite                                                                                                                  

<Plugin df>                                                                                                                                
  Device "hostfs"                                                                                                                          
  MountPoint "/.dockerinit"                                                                                                                
  IgnoreSelected false                                                                                                                     
  ReportByDevice false                                                                                                                     
  ReportReserved true                                                                                                                      
  ReportInodes true                                                                                                                        
</Plugin>                                                                                                                                  

<Plugin "write_graphite">                                                                                                                  
 <Carbon>                                                                                                                                  
   Host "192.168.59.103"                                                                                                                   
   Port "2003"                                                                                                                             
   EscapeCharacter "_"                                                                                                                     
   SeparateInstances true                                                                                                                  
   StoreRates true                                                                                                                         
   AlwaysAppendDS false                                                                                                                    
 </Carbon>                                                                                                                                 
</Plugin>

i launched collectd by

collectd -f

but the collectd process seems to be sleeping and i cannot see any udp packets using tcpdump

root@a4facd119feb:/etc/collectd# strace -p 6559                                                                                         
Process 6559 attached - interrupt to quit                                                                                               
restart_syscall(<... resuming interrupted call ...>) = 0                                                                                
nanosleep({9, 996983650}, 0x7fff11cfb7e0) = 0                                                                                           
nanosleep({9, 997466121}, 0x7fff11cfb7e0) = 0                                                                                           
nanosleep({9, 998238557}, 0x7fff11cfb7e0) = 0                                                                                           
nanosleep({9, 998297530}, 0x7fff11cfb7e0) = 0                                                                                           
nanosleep({9, 998228186}, 0x7fff11cfb7e0) = 0                                                                                           
futex(0x6236e0, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)                                             
futex(0x6236e0, FUTEX_WAKE_PRIVATE, 1)  = 0                                                                                             
nanosleep({9, 997306219}, 0x7fff11cfb7e0) = 0                                                                                           
nanosleep({9, 999177094}, 0x7fff11cfb7e0) = 0                                                                                           
nanosleep({9, 998449753}, 0x7fff11cfb7e0) = 0                                                                                           
nanosleep({9, 997590564}, 0x7fff11cfb7e0) = 0                                                                                           
nanosleep({9, 994036467}, 0x7fff11cfb7e0) = 0                                                                                           
nanosleep({9, 998215277}, 0x7fff11cfb7e0) = 0 

also, i was trying to make this image work with another graphite image, 'hopsoft/graphite-statsd' and graphite listens on 2003/tcp so I was trying to modify collectd.conf to specify Protocol as per https://collectd.org/wiki/index.php/Plugin:Write_Graphite but it does not work as collectd complains Protocol is not a valid configuration.

write_graphite plugin: Invalid configuration option: Protocol

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.