(userID string, metric string)
| 199 | } |
| 200 | |
| 201 | func (l *Limiter) formatMaxMetadataPerMetricError(userID string, metric string) error { |
| 202 | actualLimit := l.maxMetadataPerMetric(userID) |
| 203 | localLimit := l.limits.MaxLocalMetadataPerMetric(userID) |
| 204 | globalLimit := l.limits.MaxGlobalMetadataPerMetric(userID) |
| 205 | |
| 206 | return fmt.Errorf("per-metric metadata limit of %d exceeded for metric %s, %s (local limit: %d global limit: %d actual local limit: %d)", |
| 207 | minNonZero(localLimit, globalLimit), metric, l.AdminLimitMessage, localLimit, globalLimit, actualLimit) |
| 208 | } |
| 209 | |
| 210 | func (l *Limiter) formatMaxSeriesPerLabelSetError(err errMaxSeriesPerLabelSetLimitExceeded) error { |
| 211 | return fmt.Errorf("per-labelset series limit of %d exceeded (labelSet: %s, global limit: %d actual local limit: %d)", |
no test coverage detected