-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
@@ -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)' |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
charts/kubernetes/values.yaml
Outdated
|
||
metrics: | ||
enabled: true | ||
|
||
# Deprecated: use prometheus.url instead |
There was a problem hiding this comment.
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
fc9c07a
to
6d42116
Compare
Fixes: flanksource/mission-control-chart#182
Fixes: #190