Skip to content

how works the kind AnalysisTemplate in the kubernetes clusters #2164

Answered by jcsferraz
jcsferraz asked this question in Q&A
Discussion options

You must be logged in to vote

My answers:

  • 01 - About Question : I don't need istio to implement.
  • 02 - About Question: I need to implement a ClusterAnalysisTemplate on my target clusters with the queries I need to implement, which in my scenario involves prometheus.

Example About ClusterAnalysisTemplate

---
apiVersion: argoproj.io/v1alpha1
kind: ClusterAnalysisTemplate
metadata:
name: http-error-rates-5xx-backgrounds
spec:
args:
- name: service_name
- name: environment
metrics:
- name: http-error-rates-5xx-backgrounds
successCondition: result[0] >= 0.95
interval: 1m
failureLimit: 3
provider:
prometheus:
address: "https://prometheus.example.com"
query: |
sum(rate(
http_server_requests_duration_seconds_count{rou…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jcsferraz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant