You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "ikatlinsky (via GitHub)" <gi...@apache.org> on 2023/09/13 10:01:31 UTC

[GitHub] [apisix-helm-chart] ikatlinsky opened a new issue, #614: bug: apisix chart 1.6.1 metricRelabelings issue when monitoring is enabled

ikatlinsky opened a new issue, #614:
URL: https://github.com/apache/apisix-helm-chart/issues/614

   **Description**
   
   When deploying a chart with service monitoring enabled following error arises:
   
   ```
   one or more objects failed to apply, reason: ServiceMonitor.monitoring.coreos.com "XXXX" is invalid: spec.endpoints[0].metricRelabelings: Invalid value: "string": spec.endpoints[0].metricRelabelings in body must be of type array: "string"
   ```
   
   The problem occurs because of the incorrect template configuration. Problem valid for apisix and ingress charts.
   
   **Possible solution**
   
   Update service monitor configurations to map metricRelabelings to valid yaml, for example
   
   ```diff
     {{- if .Values.serviceMonitor.enabled }}
     apiVersion: monitoring.coreos.com/v1
     kind: ServiceMonitor
     metadata:
     ...
     spec:
       endpoints:
       - targetPort: http
         scheme: HTTP
         ....
   -     metricRelabelings: {{ .Values.serviceMonitor.metricRelabelings }}
   +     {{- with .Values.serviceMonitor.metricRelabelings }}
   +     metricRelabelings: {{ toYaml . | nindent 6 }}
   +     {{- end }}
       ....
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix-helm-chart] ikatlinsky commented on issue #614: bug: apisix chart 1.6.1 metricRelabelings issue when monitoring is enabled

Posted by "ikatlinsky (via GitHub)" <gi...@apache.org>.
ikatlinsky commented on issue #614:
URL: https://github.com/apache/apisix-helm-chart/issues/614#issuecomment-1721399527

   closing as related changes were merged


-- 
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: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix-helm-chart] ikatlinsky closed issue #614: bug: apisix chart 1.6.1 metricRelabelings issue when monitoring is enabled

Posted by "ikatlinsky (via GitHub)" <gi...@apache.org>.
ikatlinsky closed issue #614: bug: apisix chart 1.6.1 metricRelabelings issue when monitoring is enabled
URL: https://github.com/apache/apisix-helm-chart/issues/614


-- 
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: notifications-unsubscribe@apisix.apache.org

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