| 43 | } |
| 44 | |
| 45 | type MetricsAggregator struct { |
| 46 | store map[metricKey]annotatedMetric |
| 47 | |
| 48 | log slog.Logger |
| 49 | metricsCleanupInterval time.Duration |
| 50 | clock quartz.Clock |
| 51 | |
| 52 | collectCh chan (chan []prometheus.Metric) |
| 53 | updateCh chan updateRequest |
| 54 | |
| 55 | storeSizeGauge prometheus.Gauge |
| 56 | updateHistogram prometheus.Histogram |
| 57 | cleanupHistogram prometheus.Histogram |
| 58 | aggregateByLabels []string |
| 59 | // per-aggregator cache of descriptors |
| 60 | descCache map[string]descCacheEntry |
| 61 | } |
| 62 | |
| 63 | type updateRequest struct { |
| 64 | username string |
nothing calls this directly
no outgoing calls
no test coverage detected