You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add timeout attribute in the Prometheus metric provider of the AnalysisTemplate. It would look something like this:
apiVersion: argoproj.io/v1alpha1kind: AnalysisTemplatemetadata:
name: success-ratespec:
args:
- name: service-namemetrics:
- name: success-rateinterval: 5m# NOTE: prometheus queries return results in the form of a vector.# So it is common to access the index 0 of the returned array to obtain the valuesuccessCondition: result[0] >= 0.95failureLimit: 3provider:
prometheus:
address: http://prometheus.example.com:9090timeout: 40
Use Cases
Can be useful when the query to the Prometheus server takes more than the default timeout which is 30 seconds.
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered:
Summary
Add timeout attribute in the Prometheus metric provider of the
AnalysisTemplate
. It would look something like this:Use Cases
Can be useful when the query to the Prometheus server takes more than the default timeout which is
30 seconds
.Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered: