Skip to content

objstore: do not set last successful time metric before 1st upload#921

Merged
bwplotka merged 1 commit intothanos-io:masterfrom
GiedriusS:sidecar_metric_fix
Mar 14, 2019
Merged

objstore: do not set last successful time metric before 1st upload#921
bwplotka merged 1 commit intothanos-io:masterfrom
GiedriusS:sidecar_metric_fix

Conversation

@GiedriusS
Copy link
Member

Convert lastSuccessfullUploadTime into a GaugeVec with one dimension:
bucket, which makes client_golang not make that metric unless at least
one value has appeared.

This is better for users since Grafana will show that last upload has
been 49+ years ago instead of N/A when no uploads had happened before.

Fixes #886.

Convert lastSuccessfullUploadTime into a GaugeVec with one dimension:
bucket, which makes client_golang *not* make that metric unless at least
one value has appeared.

This is better for users since Grafana will show that last upload has
been 49+ years ago instead of N/A when no uploads had happened before.

Fixes thanos-io#886.
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Wow, that's tiny detail, but I get that pain (: LGTM!

@bwplotka bwplotka merged commit 7fab732 into thanos-io:master Mar 14, 2019
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.

2 participants