Skip to content

Simple script to push metrics from OpenWRT device to influxdb

License

Notifications You must be signed in to change notification settings

michtam/openwrt-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenWrt/LEDE interfaces metrics to Influxdb

Simple scripts to push router's interfaces metrics to the influxdb's database.
First iface-metrics.sh - main script to grab and push metrics.
Second: iface-metrics-wrapper.sh - wrapper to help execute first one. Especially to run the main script in the backgroud and grab metrics from all of the interfaces.

Requirements

Installed additional packages:

  • findutils-xargs
  • curl
  • coreutils-nohup

How to use

  1. Copy both scripts for example to the /root/bin
  2. Make sure that scripts are executable
  3. Update variables inside grab-all-metrics.sh script
  4. Add these commands to startup:
nohup /root/bin/grab-all-metrics.sh > /tmp/grab-all-metrics.out &
echo $! > /var/run/grab-all-metrics.pid
  1. Reboot or execute commands manually

About

Simple script to push metrics from OpenWRT device to influxdb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages