backfill1.xml
An example of a definition for a backfilled metric.
This example corresponds to the source in backfill1.c. The key difference when compared with the definition for a metric sampled at
runtime (for example, custom1.xml) is that the backfill
attribute is set to true
.
1 <metricdefinitions version="1">
2 <metric id="com.allinea.metrics.backfill1.events">
3 <units>/s</units>
4 <dataType>uint64_t</dataType>
5 <domain>time</domain>
6 <backfill>true</backfill>
7 <source ref="com.allinea.metrics.backfill_src"
8 functionName="backfilled_metric"/>
9 <display>
10 <displayName>Events</displayName>
11 <description>Total number of events</description>
12 <type>events</type>
13 <colour>red</colour>
14 </display>
15 </metric>
16 <metricGroup id="Backfill1">
17 <displayName>Backfill1</displayName>
18 <description>Number of events</description>
19 <metric ref="com.allinea.metrics.backfill1.events"/>
20 </metricGroup>
21 <source id="com.allinea.metrics.backfill_src">
22 <sharedLibrary>libbackfill1.so</sharedLibrary>
23 <functions>
24 <start>start_profiling</start>
25 <stop>stop_profiling</stop>
26 </functions>
27 </source>
28 </metricdefinitions>