'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.',
},
},
],
};
};
it('returns only synthetics on empty metadata',()=>{
it('returns only synthetics on empty metadata',()=>{
help:`Cumulative counters for the observation buckets (${item.help})`,
help:`Cumulative counters for the observation buckets (${item.help})`,
},
};
];
summaryMetadata[`${metric}_count`]={
summaryMetadata[`${metric}_count`]=[
{
type:'counter',
type:'counter',
help:`Count of events that have been observed for the histogram metric (${item.help})`,
help:`Count of events that have been observed for the histogram metric (${item.help})`,
},
};
];
summaryMetadata[`${metric}_sum`]={
summaryMetadata[`${metric}_sum`]=[
{
type:'counter',
type:'counter',
help:`Total sum of all observed values for the histogram metric (${item.help})`,
help:`Total sum of all observed values for the histogram metric (${item.help})`,
},
};
];
}
}
if(item.type==='summary'){
if(item.type==='summary'){
summaryMetadata[`${metric}_count`]=[
summaryMetadata[`${metric}_count`]={
{
type:'counter',
type:'counter',
help:`Count of events that have been observed for the base metric (${item.help})`,
help:`Count of events that have been observed for the base metric (${item.help})`,
},
};
];
summaryMetadata[`${metric}_sum`]={
summaryMetadata[`${metric}_sum`]=[
{
type:'counter',
type:'counter',
help:`Total sum of all observed values for the base metric (${item.help})`,
help:`Total sum of all observed values for the base metric (${item.help})`,
},
};
];
}
}
}
}
// Synthetic series
// Synthetic series
constsyntheticMetadata: PromMetricsMetadata={};
constsyntheticMetadata: PromMetricsMetadata={};
syntheticMetadata['ALERTS']=[
syntheticMetadata['ALERTS']={
{
type:'counter',
type:'counter',
help:
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.',