Coder Social home page Coder Social logo

bind_stats_exporter's Introduction

bind_stats_exporter

Get BIND DNS stats from named_stats file and send prometheus.

Why do we need bind_stats_exporter?

We all know that bind_exporter , in use we find that the Bind DNS is collected through the interface, whether it is using XML or json. It will cause the Bind DNS to be stuck. In other words, the collection indicator affects the availability of Bind DNS. After our verification, we found that using statistics-file and rndc, there is no blocking problem with Bind DNS. This is the point of existence of bind_stats_exporter.

How to use

Build and run from source

go get github.com/qiangmzsx/bind_stats_exporter
cd $GOPATH/src/github.com/qiangmzsx/bind_stats_exporter
go build -v
./bind_stats_exporter [flags]

Configure BIND

options {
  ... ...
  statistics-file "/var/named/named.stats";
  ... ...
}

stats.

The purpose of stats.sh is to trigger Bind DNS to output statistics to the specified file, although some other operations can also be performed, but mainly to trigger the generation of statistics files.

echo "" > /var/named/named.stats
echo "echo OK"
/usr/sbin/rndc stats
echo "rndc OK"

start

./bind_stats_exporter --bind.stats-file=/var/named/named.stats  --bind.sh=./stats.sh 
curl http://ip:9219/metrics

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.