Skip to content

Log which metric has too many series#515

Merged
jml merged 2 commits intomasterfrom
metric-name
Jul 19, 2017
Merged

Log which metric has too many series#515
jml merged 2 commits intomasterfrom
metric-name

Conversation

@jml
Copy link
Contributor

@jml jml commented Jul 19, 2017

Gives us a fighting chance at helping end user, and maybe helps end user too.

Haven't tested yet.

if !u.canAddSeriesFor(metricName, cfg) {
u.fpLocker.Unlock(fp)
return fp, nil, httpgrpc.Errorf(http.StatusTooManyRequests, "per-metric series limit exceeded")
return fp, nil, httpgrpc.Errorf(http.StatusTooManyRequests, "per-metric series limit exceeded for %s: %s", metricName, metric)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be helpful to include the limit.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that also goes for the "per-user series limit exceeded" error.

Copy link
Contributor

@aaron7 aaron7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jml jml merged commit 245145b into master Jul 19, 2017
@jml jml deleted the metric-name branch July 19, 2017 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants