Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: test for one counter with multiple labels
  • Loading branch information
dyladan committed Apr 7, 2020
commit 067d068b90cfbcf625d2aa51c6bd995e9e202ee4
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,14 @@ describe('PrometheusExporter', () => {
});
});

it('should export multiple aggregations', done => {
it('should export multiple labelsets', done => {
const counter = meter.createCounter('counter', {
description: 'a test description',
labelKeys: ['counterKey1'],
}) as CounterMetric;

counter.bind({ counterKey1: 'labelValue1' }).add(10);
counter.bind({ counterKey1: 'labelValue2' }).add(20);
meter.collect();
exporter.export(meter.getBatcher().checkPointSet(), () => {
http
Expand All @@ -285,6 +286,7 @@ describe('PrometheusExporter', () => {
'# HELP counter a test description',
'# TYPE counter counter',
'counter{counterKey1="labelValue1"} 10',
'counter{counterKey1="labelValue2"} 20',
'',
]);

Expand Down