(userID string)
| 163 | } |
| 164 | |
| 165 | func (l *Limiter) formatMaxSeriesPerUserError(userID string) error { |
| 166 | actualLimit := l.maxSeriesPerUser(userID) |
| 167 | localLimit := l.limits.MaxLocalSeriesPerUser(userID) |
| 168 | globalLimit := l.limits.MaxGlobalSeriesPerUser(userID) |
| 169 | |
| 170 | return fmt.Errorf("per-user series limit of %d exceeded, %s (local limit: %d global limit: %d actual local limit: %d)", |
| 171 | minNonZero(localLimit, globalLimit), l.AdminLimitMessage, localLimit, globalLimit, actualLimit) |
| 172 | } |
| 173 | |
| 174 | func (l *Limiter) formatMaxNativeHistogramsSeriesPerUserError(userID string) error { |
| 175 | actualLimit := l.maxNativeHistogramSeriesPerUser(userID) |
no test coverage detected