Skip to content

Commit

Permalink
[WIP] Test /metrics/v1/receive write path
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
  • Loading branch information
simonpasquier committed Aug 11, 2022
1 parent 92ef7a7 commit beaf3ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
- -images=prom-label-proxy=quay.io/openshift/origin-prom-label-proxy:latest
- -images=k8s-prometheus-adapter=quay.io/openshift/origin-k8s-prometheus-adapter:latest
- -images=thanos=quay.io/openshift/origin-thanos:latest
- -enabled-remote-write
env:
- name: RELEASE_VERSION
value: 0.0.1-snapshot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ spec:
- "-images=prom-label-proxy=quay.io/openshift/origin-prom-label-proxy:latest"
- "-images=k8s-prometheus-adapter=quay.io/openshift/origin-k8s-prometheus-adapter:latest"
- "-images=thanos=quay.io/openshift/origin-thanos:latest"
- "-enabled-remote-write"
env:
- name: RELEASE_VERSION
value: "0.0.1-snapshot"
Expand Down
3 changes: 3 additions & 0 deletions pkg/manifests/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,9 @@ func (f *Factory) PrometheusK8s(grpcTLS *v1.Secret, trustedCABundleCM *v1.Config
Replacement: "alerts",
},
},
MetadataConfig: &monv1.MetadataConfig{
Send: false,
},
}

p.Spec.RemoteWrite = []monv1.RemoteWriteSpec{spec}
Expand Down

0 comments on commit beaf3ab

Please sign in to comment.