Git Product home page Git Product logo

lincappu / bind-stats Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhiyuan2007/bind-stats

0.0 3.0 0.0 8.8 MB

Bind(DNS) has some statistics, but seemly no realtime data , such as qps. so this project modify bind source code, provide qps, success rate, search type and result by command rndc, it is useful sometimes.

Makefile 3.26% C 67.67% Groff 2.49% HTML 9.12% C++ 4.42% XSLT 0.29% Perl 1.47% Shell 10.58% XS 0.02% Tcl 0.15% Python 0.02% M4 0.45% Awk 0.05% CSS 0.02%

bind-stats's Introduction

bind-stats

Bind(DNS) has some statistics, but seemly no realtime data , such as qps. so this project modify bind source code, provide qps, success rate, search type and result by command rndc, it is useful sometimes.

BIND本身提供非常丰富的统计信息,其中几个信息比如当前qps,成功率,或者查询类型是什么,没有统计,或者通过rndc 命令是无法获取的,有的时候这些信息对于查看当前服务器的状态有很大的帮助,所以hack了bind的源码,增加了这几个统计项。

统计项目: 每秒查询量(qps),解析成功率, 解析类型,解析结果。

BIND原版本:bind-9.10.0-p2

编译要求: BIND 需要编译成多线程版本,即使用--enable-threads 选项。

使用方法:BIND启动后,即可通过rndc查询。查询命令格式如下

rndc -c rndc.conf key [view] [zone]

key 主要有 qps, success_rate, rcode, rtype

view 如果指定则表示查询此VIEW下的对应key信息。

zone 如果指定则表示查询在视图view 下的区对应的key 信息,目前版本只实现了对于zone的qps计算,并且需要在BIND的配置文件中指定zone-statistics yes;

返回值 是字符串

用法举例

1 查询当前总的qps

rndc -c rndc.conf qps

返回值 qps 5000.000

2 查询当前default视图下的qps

rndc -c rndc.conf qps default

返回值 5000.00

3 查询区123.com在视图default下的qps

rndc -c rndc.conf qps default 123.com

返回值 qps 4000.00

bind-stats's People

Contributors

zhiyuan2007 avatar

Watchers

 avatar  avatar  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.