GithubHelp home page GithubHelp logo

faisalwaseem / telegraf-lxd-stats Goto Github PK

View Code? Open in Web Editor NEW

This project forked from r0bj/telegraf-lxd-stats

0.0 0.0 0.0 924 KB

LXC container stats telegraf plugin with LXD daemon

License: MIT License

Go 100.00%

telegraf-lxd-stats's Introduction

telegraf-lxd-stats

LXD stats telegraf plugin

Put telegraf-lxd-stats binary to e.g. /usr/local/sbin/telegraf-lxd-stats

Add to telegraf configuration file (e.g. /etc/telegraf/telegraf.conf):

[[inputs.exec]]
  command = "sudo /usr/local/sbin/telegraf-lxd-stats"
  data_format = "influx"

Add to /etc/sudoers file (telegraf daemon user by default):

telegraf ALL = NOPASSWD: /usr/local/sbin/telegraf-lxd-stats

Example plugin output for three containers:

lxcstats,lxc_host=vpn01 mem_limit=8370376704,blkio_writes=392,mem_usage=90316800,cpu_time_percpu=79701204098.166672,bytes_sent=808700591,blkio_read_bytes=375410688,blkio_write_bytes=57102336,cpu_time=478207224589,blkio_reads=10884,mem_usage_perc=1.079005,bytes_recv=1581083280
lxcstats,lxc_host=git01 bytes_sent=23843019,bytes_recv=32276618,blkio_writes=448,blkio_read_bytes=523169792,mem_usage_perc=1.316827,cpu_time_percpu=69940089393.000000,mem_limit=8370376704,blkio_reads=12794,cpu_time=419640536358,blkio_write_bytes=112340992,mem_usage=110223360
lxcstats,lxc_host=influxdb01 mem_limit=8370376704,blkio_reads=14578,blkio_writes=32357,cpu_time=1745857682539,blkio_write_bytes=373084160,mem_usage_perc=3.338359,bytes_sent=255192001,bytes_recv=131132657,blkio_read_bytes=528297984,mem_usage=279433216,cpu_time_percpu=290976280423.166687

Example grafana graphs based on plugin: ScreenShot ScreenShot ScreenShot

telegraf-lxd-stats's People

Contributors

r0bj avatar faisalwaseem avatar

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.