Skip to content

Commit

Permalink
coroot v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
apetruhin committed Jul 1, 2024
1 parent 5520bf7 commit 2352b7e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 22 deletions.
6 changes: 3 additions & 3 deletions charts/coroot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ apiVersion: v2
name: coroot
description: A monitoring and troubleshooting tool for microservice architectures.
type: application
version: 0.12.4
appVersion: "1.2.1"
version: 0.13.0
appVersion: "1.3.0"
dependencies:
- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
version: 15.16.*
condition: prometheus.enabled
- name: node-agent
version: 0.1.78
version: 0.1.79
repository: https://coroot.github.io/helm-charts
condition: node-agent.enabled
- name: clickhouse
Expand Down
44 changes: 26 additions & 18 deletions charts/coroot/templates/cluster-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@ roleRef:

---

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "corootClusterAgent.name" . }}
labels:
{{- include "corootClusterAgent.labels" . | nindent 4 }}
data:
config.yaml: |
{{- toYaml .Values.corootClusterAgent.config | nindent 4 }}

---

apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -85,19 +73,39 @@ spec:
{{- toYaml .Values.corootClusterAgent.securityContext | nindent 12 }}
image: "{{ .Values.corootClusterAgent.image.repository }}:{{ .Values.corootClusterAgent.image.tag }}"
imagePullPolicy: {{ .Values.corootClusterAgent.image.pullPolicy }}
env:
- name: LISTEN
value: "{{ .Values.corootClusterAgent.config.listen }}"
- name: COROOT_URL
value: "{{ .Values.corootClusterAgent.config.coroot_url }}"
- name: API_KEY
value: "{{ .Values.corootClusterAgent.config.api_key }}"
- name: CONFIG_UPDATE_INTERVAL
value: "{{ .Values.corootClusterAgent.config.config.update.interval }}"
- name: CONFIG_UPDATE_TIMEOUT
value: "{{ .Values.corootClusterAgent.config.config.update.timeout }}"
- name: METRICS_SCRAPE_INTERVAL
value: "{{ .Values.corootClusterAgent.config.metrics.scrape.interval }}"
- name: METRICS_SCRAPE_TIMEOUT
value: "{{ .Values.corootClusterAgent.config.metrics.scrape.timeout }}"
- name: METRICS_WAL_DIR
value: "{{ .Values.corootClusterAgent.config.metrics.wal_dir }}"
- name: PROFILES_SCRAPE_INTERVAL
value: "{{ .Values.corootClusterAgent.config.profiles.scrape.interval }}"
- name: PROFILES_SCRAPE_TIMEOUT
value: "{{ .Values.corootClusterAgent.config.profiles.scrape.timeout }}"
{{- with .Values.corootClusterAgent.env }}
{{- . | toYaml | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.corootClusterAgent.resources | nindent 12 }}
volumeMounts:
- name: config
mountPath: /config.yaml
subPath: config.yaml
- mountPath: /tmp
name: tmp
readOnly: false
volumes:
- name: config
configMap:
name: {{ include "corootClusterAgent.name" . }}
- emptyDir: {}
name: tmp
{{- with .Values.corootClusterAgent.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
13 changes: 12 additions & 1 deletion charts/coroot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,24 @@ corootClusterAgent:
config:
listen: :8080
coroot_url: http://coroot:8080
api_key:
config:
update:
interval: 60s
timeout: 10s
metrics:
scrape:
interval: 15s
timeout: 10s
wal_dir:
profiles:
scrape:
interval: 1m
timeout: 10s
image:
repository: ghcr.io/coroot/coroot-cluster-agent
pullPolicy: IfNotPresent
tag: "0.2.0"
tag: "1.0.3"
imagePullSecrets: []
podAnnotations: {}
podSecurityContext: {}
Expand Down

0 comments on commit 2352b7e

Please sign in to comment.