Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metrics for gcplog scrape. #4235

Merged
merged 2 commits into from
Aug 30, 2021
Merged

Conversation

kavirajk
Copy link
Contributor

Also fix the Ready() method of target

What this PR does / why we need it:

  • gcplog's ready() method always return (just like every other scrape target). Rationale is gcplog scraping shouldn't stop because of some some transient timeout errors.
  • This transient failure can cause promtail readyness probe to fail which may prevent pod from starting.
  • We have metrics now to track if scraping failed (gcplog_target_last_success_scrape).

Which issue(s) this PR fixes:
Fixes NA

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

Also fix the Ready() method of target
@kavirajk kavirajk requested a review from a team as a code owner August 30, 2021 08:45
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

Nice, thanks @kavirajk 👍

@dannykopping dannykopping merged commit b36bc5a into main Aug 30, 2021
@dannykopping dannykopping deleted the fix-readyness-gcplog-target branch August 30, 2021 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants