-
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
Take over agent configs #10
Conversation
Configmap testing: PMO CM:
Then edited by observability-operator:
|
28f9976
to
111ec8f
Compare
// QueryTSDBHeadSeries performs an instant query against Mimir. | ||
func QueryTSDBHeadSeries(ctx context.Context, clusterName string) (float64, error) { | ||
config := api.Config{ | ||
Address: "http://mimir-gateway.mimir.svc/prometheus", |
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.
This now uses Mimir
api := v1.NewAPI(c) | ||
|
||
queryContext, cancel := context.WithTimeout(ctx, 2*time.Minute) | ||
query := fmt.Sprintf("sum(max_over_time(prometheus_agent_active_series{cluster_id=\"%s\"}[6h]))", clusterName) |
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.
Uses the active series in agents instead of prometheus tsdb head series so we can get rid of the MC proms
111ec8f
to
769a6f5
Compare
@@ -24,11 +24,16 @@ spec: | |||
image: "{{ .Values.image.registry }}/{{ .Values.image.name }}:{{ default .Chart.Version .Values.image.tag }}" | |||
args: | |||
- --leader-elect | |||
- --management-cluster-base-domain={{ $.Values.managementCluster.baseDomain }} |
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.
Currently configured to send to be .installationName.baseDomain but
769a6f5
to
a249d84
Compare
7dd88bc
to
dded51c
Compare
Signed-off-by: QuentinBisson <[email protected]>
dded51c
to
3530c3f
Compare
Co-authored-by: Marie Roque <[email protected]>
Co-authored-by: Marie Roque <[email protected]>
177d3f7
to
bc1f838
Compare
Signed-off-by: QuentinBisson <[email protected]>
bc1f838
to
2d49d29
Compare
What this PR does / why we need it
This PR takes over the remote write configuration from prometheus-meta-operator if mimir is enabled
Checklist