Hi,
We would like to treat the same OID in two differents ways: as a counter (increasing value) on one side:
<Attribute name="astConfigCallsProcessed" external="true" type="Long">
<Documentation>"The total number of calls processed through the Asterisk PBX since last
restart."</Documentation>
<Source>1.3.6.1.4.1.22736.1.2.6.0</Source>
<IsIndex>false</IsIndex>
<IsKey>true</IsKey>
<NeedsDelta>false</NeedsDelta>
</Attribute>
and the second way in a way to get a Rate:
<Attribute name="astConfigCallsProcessed" external="true" type="Long">
<Documentation>"The total number of calls processed through the Asterisk PBX since last
restart."</Documentation>
<Source>1.3.6.1.4.1.22736.1.2.6.0</Source>
<IsIndex>false</IsIndex>
<IsKey>true</IsKey>
<NeedsDelta>true</NeedsDelta>
</Attribute>
We have three questions:
1) in order to do that, do we have to define two metric families ? we tried to get the two attributes defined in the same file, but the first definition was ignored and only the second one got data collected
2) what is the purpose the the <Rate> tag (which is not used above) ? The doc days: "Provides an extra reporting field, “Average Rate,” calculated as AVG (metric value / time)." but we got that reporting field already without setting Rate to true
3) if Rate=true, the Units tag is mandatory. In our case, the available units don't really apply "Percent, Packets, PacketsPerSecond, DiscardedPackets,DiscardedPacketsPerSecond, ErroredPackets, ErroredPacketsPerSecond, Bits, BitsPerSecond,Bytes, BytesPerSecond, Microseconds, Milliseconds, UnixTime". Is there no way to define custom units ?
thanks,
Veronique