VictoriaMetrics/lib/streamaggr
Andrii Chubatiuk 861852f262
lib/streamaggr: added stale samples metric, added metrics labels (#6462)
### Describe Your Changes

- added stale metrics counters for input and output samples
- added labels for aggregator metrics =>
`name="{rwctx}:{aggrId}:{aggrSuffix}"`
   - rwctx - global or number starting from 1
   - aggrid - aggregator id starting from 1
   - aggrSuffix - <interval>_(by|without)_label1_label2_labeln
   e.g: `name="global:1:1m_without_instance_pod"`

### Checklist

The following checks are **mandatory**:

- [ ] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: hagen1778 <roman@victoriametrics.com>
2024-07-01 14:56:17 +02:00
..
avg.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
count_samples.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
count_series.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
dedup_test.go lib/streamaggr: reduce memory allocations by using dedupAggrSample buffer per each dedupAggrShard 2024-06-10 16:38:42 +02:00
dedup_timing_test.go lib/streamaggr: reduce the number of duplicates per each sample in BenchmarkDedupAggr from 100 to 2 2024-06-10 16:38:41 +02:00
dedup.go lib/streamaggr: prevent from data race inside dedupAggrShard when samplesBuf can be updated in pushSamples() while their values are read in the flush() loop without das.mu lock 2024-06-11 17:31:16 +02:00
deduplicator_test.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 14:56:17 +02:00
deduplicator_timing_test.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 14:56:17 +02:00
deduplicator.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 14:56:17 +02:00
histogram_bucket.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 14:56:17 +02:00
last.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
max.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
min.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
quantiles.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
rate.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 14:56:17 +02:00
stddev.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
stdvar.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
streamaggr_test.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 14:56:17 +02:00
streamaggr_timing_test.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 14:56:17 +02:00
streamaggr.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 14:56:17 +02:00
sum_samples.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00
total.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 14:56:17 +02:00
unique_samples.go lib/streamaggr: follow-up for 7cb894a777 2024-06-07 16:27:26 +02:00