-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[bitnami/kube-prometheus]: support tsdb runtime configuration #25444
Comments
Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here. Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance. |
Thanks @carrodher . Before submitting a PR, I was trying to test this out on a live version bitnami/kube-prometheus chart (9.0.7). I have edited the CRD "monitoring.coreos.com/v1/prometheus" on-the-fly to include the relevant stanza, like this: apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
annotations:
meta.helm.sh/release-name: prometheus
labels:
app.kubernetes.io/component: prometheus
app.kubernetes.io/instance: prometheus
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: kube-prometheus
app.kubernetes.io/version: 0.73.2
helm.sh/chart: kube-prometheus-9.0.7
spec:
additionalScrapeConfigs:
key: scrape-jobs.yaml
name: additional-scrape-jobs-prometheus-prometheus
tsdb: # <-------------------
outOfOrderTimeWindow: 2m However, I am getting
The operator clearly supports TSDBSpec inside PrometheusSpec. I have no mutating or validating webhooks. Any idea why this errors ? |
Is the operator throwing that error or the k8s api? |
k8s API, while submitting the YAML file. |
Does the issue happen on a fresh installation where you deploy the YAML directly modified instead of patching an already existing instance? |
I upgraded an existing installation from 8.x.x to 9.0.7, then tried to patch the manifest file online. |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
Name and Version
bitnami/kube-prometheus 9.0.5
What is the problem this feature will solve?
The TSDB enables support for configuring the time window out-of-order samples. It was implemented here prometheus/prometheus#11075 in Prometheus v2.39.0, and the Prometheus operator supports configuring it. However, the generated
prometheus.env.yaml
file does not include that option, and also the documentation for the helm chart does not mention it. Here's an example "values.yaml" file:And in the Prometheus config file itself: Configuration | Prometheus
What is the feature you are proposing to solve the problem?
Support configuring TSDB's runtime options, including out-of-order samples. The latter option is still considered experimental, but it's widely used in production and is effective in large clusters.
The text was updated successfully, but these errors were encountered: