Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
[cluster-utilization] change the get jobs limit to 50000 (#5348)
Browse files Browse the repository at this point in the history
  • Loading branch information
suiguoxin authored Mar 4, 2021
1 parent 86a0924 commit f0dad8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/alert-manager/src/cluster-utilization/send_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

QUERY_PREFIX = "/prometheus/api/v1/query"
ALERT_PREFIX = "/alert-manager/api/v1/alerts"
REST_JOB_API_PREFIX = "/rest-server/api/v2/jobs"
# only the jobs that are running or completed within 7d should be included
# currently, we just set the limit to max
REST_JOB_API_PREFIX = "/rest-server/api/v2/jobs?limit=50000"

TOKEN = os.environ.get('PAI_BEARER_TOKEN')
PROMETHEUS_SCRAPE_INTERVAL = int(os.environ.get('PROMETHEUS_SCRAPE_INTERVAL'))
Expand Down

0 comments on commit f0dad8b

Please sign in to comment.