Package flumotion :: Package admin :: Package rrdmon :: Module config
[hide private]

Module config

source code

RRD monitor configuration parser.

The format of the configuration file is as follows. *, +, and ? have
their normal meanings: 0 or more, 1 or more, and 0 or 1, respectively.


  <!-- normal -->
  <debug>*:4</debug> ?

  <!-- implementation note: the name of the source is used as the DS
       name in the RRD file -->
  <source name="http-streamer"> +

    <!-- how we connect to the manager; parsed with
         L{flumotion.common.connection.parsePBConnectionInfo} -->

    <!-- the L{flumotion.common.common.componentId} of the component we
         will poll -->

    <!-- the key of the L{flumotion.common.componentui} UIState that we
         will poll; should be numeric in value -->

    <!-- boolean; examples of gauge values would be number of users,
         temperature, signal strength, precomputed bitrate. The most
         common non-gauge values are bitrate values, where you poll e.g.
         the number of bytes sent, not the rate itself -->
    <is-gauge>False</is-gauge> ?

    <!-- sample frequency in seconds, defaults to 5 minutes -->
    <sample-frequency>300</sample-frequency> ?

    <!-- Normally we generate the RRD DS spec from the answers above,
         but if you want to you can specify one directly here. The DS
         name should be the source name -->
    <rrd-ds-spec>DS-SPEC</rrd-ds-spec> ?

    <!-- file will be created if necessary -->

    <!-- set of archives to store in the rrd file
    <archive> +
      <!-- Would be nice to break this down as we did above for the DS
           spec, but for now you have to specify the RRA specs manually.
           Bummer dude! In this example, the meaning is that we should
           archive a sample every 1*stepsize=1*300s=5 minutes, for 1200
           samples = 5 min*1200=100h.-->


Version: $Rev: 6961 $

Classes [hide private]
RRD monitor configuration file parser.