* Provide PromQL info annotations when rate()/increase() over series without counter label
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
* Address comments
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
---------
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
IncompatibleBucketLayoutInBinOpWarning=fmt.Errorf("%w: incompatible bucket layout encountered for binary operator",PromQLWarning)
PossibleNonCounterInfo=fmt.Errorf("%w: metric might not be a counter, name does not end in _total/_sum/_count/_bucket:",PromQLInfo)
PossibleNonCounterLabelInfo=fmt.Errorf("%w: metric might not be a counter, __type__ label is not set to %q",PromQLInfo,model.MetricTypeCounter)
HistogramQuantileForcedMonotonicityInfo=fmt.Errorf("%w: input to histogram_quantile needed to be fixed for monotonicity (see https://prometheus.io/docs/prometheus/latest/querying/functions/#histogram_quantile) for metric name",PromQLInfo)
IncompatibleTypesInBinOpInfo=fmt.Errorf("%w: incompatible sample types encountered for binary operator",PromQLInfo)