-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(prometheus): Use bindplane-prometheus container image #87
feat(prometheus): Use bindplane-prometheus container image #87
Conversation
@@ -368,7 +368,7 @@ spec: | |||
{{- if eq (include "bindplane.deployment_type" .) "StatefulSet" }} | |||
{{- if and (.Values.prometheus.enable) (.Values.prometheus.enableSideCar) }} | |||
- name: prometheus | |||
image: prom/prometheus:v2.47.2 | |||
image: ghcr.io/observiq/bindplane-prometheus:{{ include "bindplane.tag" . }} |
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.
We use {{ include "bindplane.tag" . }}
to determine the bindplane image tag as well. This will allow us to always deploy the correct Prometheus image for a given release.
- name: {{ include "bindplane.fullname" . }}-prometheus-data | ||
mountPath: /var/lib/prometheus/tsdb | ||
mountPath: /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.
/prometheus is the correct path for the bindplane-prometheus image. See the bottom of this PR https://github.com/observIQ/bindplane-op-enterprise/pull/2084/files
ports: | ||
- containerPort: 9090 | ||
name: http | ||
args: |
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.
Args do not need to be set here anymore, they are baked into the bindplane-prometheus image. see the bottom of this pr https://github.com/observIQ/bindplane-op-enterprise/pull/2084/files
374c1d6
to
4a10373
Compare
e8c0a7c
to
a1f3583
Compare
…ume mount to use /prometheus, the correct path for the bindplane-prometheus image
a1fad72
to
dfab9c4
Compare
* use bindplane prometheus image and remove configmap * remove args, they are set in the container image already. updaste volume mount to use /prometheus, the correct path for the bindplane-prometheus image * pin sidecar test version
* use bindplane prometheus image and remove configmap * remove args, they are set in the container image already. updaste volume mount to use /prometheus, the correct path for the bindplane-prometheus image * pin sidecar test version
* bump minor version * run on all PRs * feat(prometheus): Use bindplane-prometheus container image (#87) * use bindplane prometheus image and remove configmap * remove args, they are set in the container image already. updaste volume mount to use /prometheus, the correct path for the bindplane-prometheus image * pin sidecar test version * feat(prometheus): Deploy Prometheus StatefulSet by default (#89) * remove sidecar * rename dev prometheus config * add prometheus statefulset * true up securityContext * add remote option * regen docs * remove prom enable from templates * use generated service name when host is not set * fix svc name * re-add sideCar option * revert size change * use localhost when sidecar * Regen docs * resolve test issues by using newer image * use ee image * Remove all test case as it requires a license * skip if dev prometheus is enabled * fix condition * add fsgroup for gke
Description of Changes
This is merging into an epic branch. The epic branch already bumped the chart version. Epic branch will not merge until after 1.45 is released.
BindPlane 1.45 will be the first release that includes Prometheus container images pre configured for BindPlane. https://github.com/observIQ/bindplane-op-enterprise/pull/2084.
Changes
prom/prometheus
image withobserviq/bindplane-prometheus
The BindPlane Prometheus container image is pre configured with the correct configuration for the given BindPlane version, meaning we no longer need a configMap volume mount to inject the rollup rule configuration file.
Testing
New Install
We have a 1.43 BindPlane Prometheus image available, and it can be used fro testing by specifying the right image tag.
minikube start helm template --values ./values.yaml charts/bindplane | kubectl apply -f -
Once deployed, you can check to see the image name and tag:
Check the UI
Sign in and configure an agent http://localhost:3011
Observe measurements in action
Upgrade
I tested upgrading from
main
branch with the following processPlease check that the PR fulfills these requirements