You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to disable the kube-prometheus-stack fully, it is necessary to add the following to your `values.yaml`:
281
+
In order to disable the victoria-metrics-k8s-stack, you can add the following to your `values.yaml`.
282
+
Victoria Metrics components can also be disabled and enabled individually if you only need specific monitoring features.
283
+
Please refer to the default [`values.yaml`](charts/pulsar/values.yaml).
282
284
283
285
```yaml
284
-
kube-prometheus-stack:
286
+
victoria-metrics-k8s-stack:
285
287
enabled: false
286
-
prometheusOperator:
288
+
victoria-metrics-operator:
287
289
enabled: false
288
-
grafana:
290
+
kube-state-metrics:
289
291
enabled: false
290
-
alertmanager:
292
+
prometheus-node-exporter:
291
293
enabled: false
292
-
prometheus:
294
+
grafana:
293
295
enabled: false
294
296
```
295
297
296
-
Otherwise, the helm chart installation will attempt to install the CRDs for the kube-prometheus-stack. Additionally,
297
-
you'll need to disable each of the component's `PodMonitors`. This is shown in some [examples](./examples) and is
298
+
Additionally, you'll need to set each component's `podMonitor` property to `false`. This is shown in some [examples](./examples) and is
298
299
verified in some [tests](./.ci/clusters).
299
300
300
301
## Pulsar Manager
@@ -319,12 +320,12 @@ kubectl get secret -l component=pulsar-manager -o=jsonpath="{.items[0].data.UI_P
319
320
320
321
## Grafana Dashboards
321
322
322
-
The Apache Pulsar Helm Chart uses the `kube-prometheus-stack` Helm Chart to deploy Grafana.
323
+
The Apache Pulsar Helm Chart uses the `victoria-metrics-k8s-stack` Helm Chart to deploy Grafana.
323
324
324
-
There are several ways to configure Grafana dashboards. The default `values.yaml` comes with examples of Pulsar dashboards which get downloaded from the Apache-2.0 licensed [streamnative/apache-pulsar-grafana-dashboard OSS project](https://github.com/streamnative/apache-pulsar-grafana-dashboard) by URL.
325
+
There are several ways to configure Grafana dashboards. The default [`values.yaml`](charts/pulsar/values.yaml) comes with examples of Pulsar dashboards which get downloaded from the Apache-2.0 licensed [lhotari/pulsar-grafana-dashboards OSS project](https://github.com/lhotari/pulsar-grafana-dashboards) by URL.
325
326
326
-
Dashboards can be configured in `values.yaml` or by adding `ConfigMap` items with the label `grafana_dashboard: "1"`.
327
-
In `values.yaml`, it's possible to include dashboards by URL or by grafana.com dashboard id (`gnetId` and `revision`).
327
+
Dashboards can be configured in [`values.yaml`](charts/pulsar/values.yaml) or by adding `ConfigMap` items with the label `grafana_dashboard: "1"`.
328
+
In [`values.yaml`](charts/pulsar/values.yaml), it's possible to include dashboards by URL or by grafana.com dashboard id (`gnetId` and `revision`).
328
329
Please see the [Grafana Helm chart documentation for importing dashboards](https://github.com/grafana/helm-charts/blob/main/charts/grafana/README.md#import-dashboards).
329
330
330
331
You can connect to Grafana by forwarding port 3000
@@ -354,6 +355,8 @@ updates should be done using `helm upgrade`.
For more detailed information, see our [Upgrading](http://pulsar.apache.org/docs/helm-upgrade/) guide.
364
367
365
-
## Upgrading from Helm Chart version 3.x.x to 4.0.0 version and above
368
+
## Upgrading from Helm Chart versions before 4.0.0 to 4.0.0 version and above
366
369
367
370
### Pulsar Proxy service's default type has been changed from `LoadBalancer` to `ClusterIP`
368
371
369
372
Please check the section "External Access Recommendations" for guidance and also check the security advisory section.
370
373
You will need to configure keys under `proxy.service` in your `values.yaml` to preserve existing functionality since the default has been changed.
371
374
372
-
### kube-prometheus-stack upgrade
375
+
### kube-prometheus-stack replaced with victoria-metrics-k8s-stack
373
376
374
-
The kube-prometheus-stack version has been upgraded to 69.x.x in Pulsar Helm Chart version 4.0.0 .
375
-
Before running "helm upgrade", you should first upgrade the Prometheus Operator CRDs as [instructed
376
-
in kube-prometheus-stack upgrade notes](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#from-68x-to-69x).
377
+
The kube-prometheus-stack version has been removed in Pulsar Helm Chart version 4.0.0 due to
378
+
Prometheus incompatibility with Pulsar metrics since Pulsar 2.11.0 . Pulsar exposes metrics in a format that is partially OpenMetrics 1.0.0 text format,
379
+
but isn't fully compatible. Prometheus doesn't provide proper support for OpenMetrics 1.0.0 text format, even in Prometheus version 3.2.1 where it was
380
+
extensively tested before switching to Victoria Metrics in Pulsar Helm chart version 4.0.0 . Victoria Metrics is Apache 2.0 Licensed OSS and it's fully
381
+
compatible with Prometheus.
377
382
378
-
There's a script to run the required commands:
383
+
Before upgrading to Pulsar Helm Chart version 4.0.0, it is recommended to disable kube-prometheus-stack in the original Helm chart version that
@@ -430,7 +397,7 @@ After, this you can proceed with `helm upgrade`.
430
397
The 2.10.0+ Apache Pulsar docker image is a non-root container, by default. That complicates an upgrade to 2.10.0
431
398
because the existing files are owned by the root user but are not writable by the root group. In order to leverage this
432
399
new security feature, the Bookkeeper and Zookeeper StatefulSet [securityContexts](https://kubernetes.io/docs/tasks/configure-pod-container/security-context)
433
-
are configurable in the `values.yaml`. They default to:
400
+
are configurable in the [`values.yaml`](charts/pulsar/values.yaml). They default to:
434
401
435
402
```yaml
436
403
securityContext:
@@ -478,6 +445,7 @@ Caused by: org.rocksdb.RocksDBException: while open a file for lock: /pulsar/dat
478
445
### Recovering from `helm upgrade` error "unable to build kubernetes objects from current release manifest"
479
446
480
447
Example of the error message:
448
+
481
449
```bash
482
450
Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest:
483
451
[resource mapping not found for name: "pulsar-bookie" namespace: "pulsar" from "":
0 commit comments