Skip to content

fix: pass prometheus and grafana config as env vars in helm chart#63

Open
ruslanaliyevn wants to merge 1 commit into
kagent-dev:mainfrom
ruslanaliyevn:fix/prometheus-url-helm
Open

fix: pass prometheus and grafana config as env vars in helm chart#63
ruslanaliyevn wants to merge 1 commit into
kagent-dev:mainfrom
ruslanaliyevn:fix/prometheus-url-helm

Conversation

@ruslanaliyevn

Copy link
Copy Markdown

Problem

tools.prometheus.url, tools.prometheus.username, tools.prometheus.password,
tools.grafana.url and tools.grafana.apiKey values were defined in values.yaml
but never passed to the container as environment variables in deployment.yaml.

Solution

Added the missing environment variables to the deployment template so that
Prometheus and Grafana configuration is properly passed to the tool server.

Fixes #36

Signed-off-by: Ruslan Aliyev <ruslanaliyevn@email.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the kagent-tools Helm chart Deployment template to actually wire Prometheus and Grafana configuration values (previously present only in values.yaml) into the running container via environment variables, addressing issue #36.

Changes:

  • Add missing Prometheus and Grafana environment variables to helm/kagent-tools/templates/deployment.yaml.
  • Minor template cleanup/formatting adjustments in the same manifest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +97 to +98
- name: PROMETHEUS_URL
value: {{ .Values.tools.prometheus.url | quote }}
Comment on lines +99 to +102
- name: PROMETHEUS_USERNAME
value: {{ .Values.tools.prometheus.username | quote }}
- name: PROMETHEUS_PASSWORD
value: {{ .Values.tools.prometheus.password | quote }}
Comment on lines +101 to +106
- name: PROMETHEUS_PASSWORD
value: {{ .Values.tools.prometheus.password | quote }}
- name: GRAFANA_URL
value: {{ .Values.tools.grafana.url | quote }}
- name: GRAFANA_API_KEY
value: {{ .Values.tools.grafana.apiKey | quote }}
Comment on lines +97 to +106
- name: PROMETHEUS_URL
value: {{ .Values.tools.prometheus.url | quote }}
- name: PROMETHEUS_USERNAME
value: {{ .Values.tools.prometheus.username | quote }}
- name: PROMETHEUS_PASSWORD
value: {{ .Values.tools.prometheus.password | quote }}
- name: GRAFANA_URL
value: {{ .Values.tools.grafana.url | quote }}
- name: GRAFANA_API_KEY
value: {{ .Values.tools.grafana.apiKey | quote }}
@dimetron dimetron self-requested a review June 23, 2026 14:41
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.

tools.prometheus.url value is defined but not used in kagent-tools Helm chart

2 participants