'Time series showing pending and firing alerts. The sample value is set to 1 as long as the alert is in the indicated active (pending or firing) state.',
},
],
ALERTS:{
type:'counter',
help:
'Time series showing pending and firing alerts. The sample value is set to 1 as long as the alert is in the indicated active (pending or firing) state.',
},
};
it('returns only synthetics on empty metadata',()=>{
help:`Cumulative counters for the observation buckets (${item.help})`,
},
];
summaryMetadata[`${metric}_count`]=[
{
type:'counter',
help:`Count of events that have been observed for the histogram metric (${item.help})`,
},
];
summaryMetadata[`${metric}_sum`]=[
{
type:'counter',
help:`Total sum of all observed values for the histogram metric (${item.help})`,
},
];
summaryMetadata[`${metric}_bucket`]={
type:'counter',
help:`Cumulative counters for the observation buckets (${item.help})`,
};
summaryMetadata[`${metric}_count`]={
type:'counter',
help:`Count of events that have been observed for the histogram metric (${item.help})`,
};
summaryMetadata[`${metric}_sum`]={
type:'counter',
help:`Total sum of all observed values for the histogram metric (${item.help})`,
};
}
if(item.type==='summary'){
summaryMetadata[`${metric}_count`]=[
{
type:'counter',
help:`Count of events that have been observed for the base metric (${item.help})`,
},
];
summaryMetadata[`${metric}_sum`]=[
{
type:'counter',
help:`Total sum of all observed values for the base metric (${item.help})`,
},
];
summaryMetadata[`${metric}_count`]={
type:'counter',
help:`Count of events that have been observed for the base metric (${item.help})`,
};
summaryMetadata[`${metric}_sum`]={
type:'counter',
help:`Total sum of all observed values for the base metric (${item.help})`,
};
}
}
// Synthetic series
constsyntheticMetadata: PromMetricsMetadata={};
syntheticMetadata['ALERTS']=[
{
type:'counter',
help:
'Time series showing pending and firing alerts. The sample value is set to 1 as long as the alert is in the indicated active (pending or firing) state.',
'Time series showing pending and firing alerts. The sample value is set to 1 as long as the alert is in the indicated active (pending or firing) state.',