mkoertgen opened a new issue #226:
URL: https://github.com/apache/pulsar-helm-chart/issues/226


   **Describe the bug**
   Dynamic labelmap-action in the current podMonitor-templates causes 
prom-operator skipping the PodMonitor altogether.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Install 
[kube-prometheus-stack>=32.2.0](https://github.com/prometheus-community/helm-charts/releases/tag/kube-prometheus-stack-32.2.0
 or 
[prometheus-operator>=0.54](https://github.com/prometheus-operator/prometheus-operator/tree/v0.54.0)
   2. Install pulsar-helm-chart with `podMonitors` enabled, e.g. 
[zookeeper](https://github.com/apache/pulsar-helm-chart/blob/master/charts/pulsar/values.yaml#L304)
   3. See your metrics disappear
   4. See error in prometheus-operator-logs
   
   ```
   level=warn ts=2022-02-10T21:35:52.803132682Z caller=operator.go:1957 
component=prometheusoperator msg="skipping podmonitor" error="\"\" is invalid 
'replacement' for labelmap action" podmonitor=pulsar/pulsar-recovery 
namespace=observability prometheus=prometheus-community-kube-prometheus
   level=warn ts=2022-02-10T21:35:52.803317285Z caller=operator.go:1957 
component=prometheusoperator msg="skipping podmonitor" error="\"\" is invalid 
'replacement' for labelmap action" podmonitor=pulsar/pulsar-zookeeper 
namespace=observability prometheus=prometheus-community-kube-prometheus
   level=warn ts=2022-02-10T21:35:52.803459387Z caller=operator.go:1957 
component=prometheusoperator msg="skipping podmonitor" error="\"\" is invalid 
'replacement' for labelmap action" podmonitor=pulsar/pulsar-broker 
namespace=observability prometheus=prometheus-community-kube-prometheus
   level=warn ts=2022-02-10T21:35:52.803597189Z caller=operator.go:1957 
component=prometheusoperator msg="skipping podmonitor" error="\"\" is invalid 
'replacement' for labelmap action" podmonitor=pulsar/pulsar-proxy 
namespace=observability prometheus=prometheus-community-kube-prometheus
   ```
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Screenshots**
   
![image](https://user-images.githubusercontent.com/7235760/153505393-2d1a1e63-c4c5-4bb0-a7b0-c585db43d9a2.png)
   
   **Additional context**
   See related issue / change
   - 
https://github.com/prometheus-operator/prometheus-operator/issues/3942#issuecomment-1035552992
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to