[bind10-dev] Ideas about statistics

Naoki Kambe kambe at jprs.co.jp
Thu May 20 12:35:27 UTC 2010


All,

I wrote three JSON-format files based on my ideas which I mailed last
week.

  - stats.spec
    This is a sample of spec file for stats module. It is assumed to
    be read by config module and command module. I also tried to add
    "dangerous flag".

  - stats_example.spec
    This is an example of stats-data format transfered to stats module
    by other module. This data format is defined by stats_config.spec file.

  - stats_config.spec
    This is a sample of definition of data format like above file. It
    is assumed to be configured in spec files.

For more details, please refer to the comments in each files. These
files are just samples, so I don't know whether it works in real
codes.

Could you give me any questions and comments if you have?

Thanks,

Naoki Kambe

From: Naoki Kambe <kambe at jprs.co.jp>
Subject: [bind10-dev] Ideas about statistics
Date: Thu, 13 May 2010 21:55:26 +0900 (JST)

> Hi All,
> 
> I report my ideas about statistics.
> 
> Our short-term goals:
>  - Fix protocol between stats daemon and other components
>  - Code prototypes which work with other components
> 
> Life cycle of stats daemon:
>  1. Boss started stats daemon.
>  2. Stats daemon broadcasts "stats daemon is ready for gathering
>     statistics data".
>  3. Other components send their statistics data to stats channel
>     periodically.
>  4. Stats daemon gathers statistics data and aggregates it.
>  5. When a user invokes statistics-publish command via bindctl, 
>     stats daemon reports formatted statistics data via bindctl.
>  6. If bind10 is shutting down, stats is killed by Boss.
> 
> Statistics items (for initial version):
> 
>   * Output items which stats daemon pushes to bindctl
> 
>     - Local name
>     - Boot time
>     - Reported time
>     - Process id
>     - Incoming Queries (TCP)
>     - Incoming Queries (UDP)
> 
>   * Input items which stats daemon is gathering from other components
>     (initially only from Boss and Auth)
> 
>     from Boss to stats
>     - Version number
>     - Process id
>     - Boot time
>     - localname
> 
>     from Auth to stats
>     - Version number
>     - Process id
>     - Incoming Queries (TCP)
>     - Incoming Queries (UDP)
> 
> Example of output data format
> 
>  * XML format:
>     <isc version="1.0">
>       <bind10>
>         <statistics>
>           <server>
>             <localname>4bea7903_4 at host</localname> 
>             <boot-time>2010-05-13T05:19:43Z</boot-time> 
>             <reported-time>2010-05-13T05:44:41Z</reported-time> 
>             <process-id>999</process-id>
>             <queries-in>
>               <name>tcp</name>
>               <counter>8888</counter>
>               <name>udp</name>
>               <counter>9999</counter>
>             </queries-in>
>           </server>
>         </statistics>
>       </bind>
>     </isc>
> 
> Example of bindctl input sample:
> 
>  >> Stats print_stats
>     ++ BIND 10 Statistics Report ++
>     Local name:	4bea7903_4 at host
>     Boot time:	2010-05-13T05:19:43Z
>     Reported time:	2010-05-13T05:44:41Z
>     Process id: 	999
>     Incoming Queries (TCP):	8888
>     Incoming Queries (UDP):	9999
>     ++ BIND 10 Statistics Report ++
> 
>     * "print_stats" command just prints statistics data.
> 
>  >> Stats clear_stats
>     stats cleared.
>   
>     * "clear_stats" command is useful for resetting counts.
> 
>  >> Stats print_stats
>     ++ BIND 10 Statistics Report ++
>     Local name:	4bea7903_4 at host
>     Boot time:	2010-05-13T05:19:43Z
>     Reported time:	2010-05-13T05:47:12Z
>     Process id: 	999
>     Incoming Queries:	0
>     Incoming Queries (TCP):	0
>                         	^
>     Incoming Queries (UDP):	0
>                         	^
>     ++ BIND 10 Statistics Report ++
> 
>     * It shows that counts are reset.
> 
> Thanks,
> 
> Naoki Kambe
> _______________________________________________
> bind10-dev mailing list
> bind10-dev at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind10-dev
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stats.spec
Type: application/octet-stream
Size: 719 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100520/35d18792/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stats_example.spec
Type: application/octet-stream
Size: 779 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100520/35d18792/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stats_config.spec
Type: application/octet-stream
Size: 4656 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100520/35d18792/attachment-0002.obj>


More information about the bind10-dev mailing list