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

feat(mission-control): add scrape lag metrics #378

Merged
merged 3 commits into from
Feb 13, 2025
Merged

Conversation

yashmehrotra
Copy link
Member

No description provided.

@yashmehrotra yashmehrotra marked this pull request as ready for review February 7, 2025 08:56
@yashmehrotra yashmehrotra requested a review from moshloop February 7, 2025 08:56
Comment on lines 419 to 434
- name: 'Max consume lag (ms)'
lookup:
prometheus:
- query: 'max(histogram_quantile(1.0, rate(informer_consume_lag_bucket{scraper="$(.properties.scraper_id)"}[5m])))'
url: {{ .Values.prometheusURL | quote}}
display:
expr: "results[?0].orValue({'value': ''}).value"
- name: 'New items/hr'
lookup:
prometheus:
- query: 'sum(increase(scraper_added{scraper_id="$(.properties.scraper_id)"}[24h])) / 24'
url: {{ .Values.prometheusURL | quote}}
display:
expr: "results[?0].orValue({'value': ''}).value"
- name: 'Updated items/hr'
lookup:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- name: 'Max consume lag (ms)'
lookup:
prometheus:
- query: 'max(histogram_quantile(1.0, rate(informer_consume_lag_bucket{scraper="$(.properties.scraper_id)"}[5m])))'
url: {{ .Values.prometheusURL | quote}}
display:
expr: "results[?0].orValue({'value': ''}).value"
- name: 'New items/hr'
lookup:
prometheus:
- query: 'sum(increase(scraper_added{scraper_id="$(.properties.scraper_id)"}[24h])) / 24'
url: {{ .Values.prometheusURL | quote}}
display:
expr: "results[?0].orValue({'value': ''}).value"
- name: 'Updated items/hr'
lookup:
- name: Lag
headline: true
description: 'Max consume lag (ms)'
lookup:
prometheus:
- query: 'max(histogram_quantile(1.0, rate(informer_consume_lag_bucket{scraper="$(.properties.scraper_id)"}[5m])))'
url: {{ .Values.prometheusURL | quote}}
display:
expr: "results[?0].orValue({'value': ''}).value"
- name: 'New items/hr'
lookup:
prometheus:
- query: 'sum(increase(scraper_added{scraper_id="$(.properties.scraper_id)"}[24h])) / 24'
url: {{ .Values.prometheusURL | quote}}
display:
expr: "results[?0].orValue({'value': ''}).value"
- name: 'Updated items/hr'
lookup:

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated, the difference was description and headline right ?

@moshloop moshloop merged commit 96f9194 into main Feb 13, 2025
4 checks passed
@moshloop moshloop deleted the scrape-prom-data branch February 13, 2025 17:32
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