If I specify more than one label in the push URL, it looks like values get swapped randomly:
Here's a script to replicate the issue:
#!/bin/bash
for i in {1..10}; do
cat <<EOF | curl --data-binary @- localhost:4278/metrics/namespace/foo/label2/bar/
# TYPE test_total counter
test_total 1
EOF
done
curl localhost:4278/metrics
It outputs the following, while I'd expect no {namespace="bar",label2="foo"} metric:
# TYPE test_total counter
test_total{namespace="foo",label2="bar"} 5
test_total{namespace="bar",label2="foo"} 5
If I specify more than one label in the push URL, it looks like values get swapped randomly:
Here's a script to replicate the issue:
It outputs the following, while I'd expect no
{namespace="bar",label2="foo"}
metric: