echo '# HELP mymetric My Metric
> # TYPE mymetric gauge
> mymetric{clearmode="aggregate",label="value1",job="my_metric"} 1.0' | curl -v -H 'Authorization: x' --data-binary @- localhost:4278/metrics
Multiple curl invocations as above yield the expected results (summed values for the metric).
But the following curl returns with 500 with message Unhandled rejection: AggregationError(ParseError(InvalidMetric("Cannot add a sample with 3 labels into a family with 2")))* (see label="value2")
echo '# HELP mymetric My Metric
> # TYPE mymetric gauge
> mymetric{clearmode="aggregate",label="value2",job="my_metric"} 1.0' | curl -v -H 'Authorization: x' --data-binary @- localhost:4278/metrics
Hi,
thanks for developing Gravel Gateway!
I have an issue in pushing the same metric with different label values. I'm not sure whether it's something I'm missing, but here's how to reproduce:
cargo run
(rustc 1.57.0 (f1edd0429 2021-11-29))Unhandled rejection: AggregationError(ParseError(InvalidMetric("Cannot add a sample with 3 labels into a family with 2")))*
(seelabel="value2"
)Is this something to be expected?
Please let me know if I can be of further help.
Thanks!