Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add prometheus connection #191

Merged
merged 2 commits into from
Jun 18, 2024
Merged

chore: add prometheus connection #191

merged 2 commits into from
Jun 18, 2024

Conversation

yashmehrotra
Copy link
Member

@@ -141,8 +141,8 @@ Metrics
- name: memory
lookup:
prometheus:
- query: 'sum(container_memory_working_set_bytes{container!=""{{.Values.prometheusLabels}}}) by (pod)'
url: {{ .Values.prometheusURL | quote }}
- query: 'sum(container_memory_working_set_bytes{container!=""{{.Values.prometheus.labels | default .Values.prometheusLabels}}}) by (pod)'
Copy link
Member

Choose a reason for hiding this comment

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

I think these queries also need to move to values - and then we tpl it in here.

@@ -1,3 +1,16 @@
---
apiVersion: mission-control.flanksource.com/v1
Copy link
Member

Choose a reason for hiding this comment

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

I think only create if prometheus url is specified and prometheus.createConnection is true (i.e. we might want to use an existing connection, or share the same connection amongst multiple topologies


metrics:
enabled: true

# Deprecated: use prometheus.url instead
Copy link
Member

Choose a reason for hiding this comment

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

Need to update values.schema.json

@moshloop moshloop merged commit 709425a into main Jun 18, 2024
1 check passed
@moshloop moshloop deleted the prom-connection branch June 18, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants