(userID string, metric string)
| 181 | } |
| 182 | |
| 183 | func (l *Limiter) formatMaxSeriesPerMetricError(userID string, metric string) error { |
| 184 | actualLimit := l.maxSeriesPerMetric(userID) |
| 185 | localLimit := l.limits.MaxLocalSeriesPerMetric(userID) |
| 186 | globalLimit := l.limits.MaxGlobalSeriesPerMetric(userID) |
| 187 | |
| 188 | return fmt.Errorf("per-metric series limit of %d exceeded for metric %s, %s (local limit: %d global limit: %d actual local limit: %d)", |
| 189 | minNonZero(localLimit, globalLimit), metric, l.AdminLimitMessage, localLimit, globalLimit, actualLimit) |
| 190 | } |
| 191 | |
| 192 | func (l *Limiter) formatMaxMetadataPerUserError(userID string) error { |
| 193 | actualLimit := l.maxMetadataPerUser(userID) |
no test coverage detected