Skip to content

Admission webhook prevents using remoteWrite.messageVersion in Prometheus (through config map) #969

@pbriet

Description

@pbriet

Hello,

When upgrading to Openshift 4.18, I was expecting to the new remoteWrite.messageVersion in the Prometheus configuration, which is described in the documents.

The Prometheus CRD does have this new attribute. But the admission webhook "monitoringconfigmaps.openshift.io" prevents me to set it in the monitoring config map.

admission webhook "monitoringconfigmaps.openshift.io" denied the request: the user workload monitoring configuration in "config.yaml" could not be parsed: error unmarshaling JSON: while decoding JSON: json: unknown field "messageVersion"

This is kinda frustrating ;)

kind: ConfigMap
apiVersion: v1
metadata:
  name: user-workload-monitoring-config
  namespace: openshift-user-workload-monitoring
data:
  config.yaml: |
    prometheus:
       (...)
      remoteWrite:
      - url: http://some-url:some-port/api/v1/write
        messageVersion: V2.0

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions