When I update targetLabels on service monitor, I get below mentioned error. 
Please let me know regarding this error.

*Error:*

msg="append failed" err="strconv.ParseFloat: parsing \"Error:\": invalid 
syntax"

ServiceMonitor:

apiVersion: monitoring.coreos.com/v1

kind: ServiceMonitor

metadata:

  creationTimestamp: "2020-11-20T00:48:36Z"

  generation: 6

  labels:

    k8s-app: cbexporter

  managedFields:

  - apiVersion: monitoring.coreos.com/v1

    fieldsType: FieldsV1

    fieldsV1:

      f:metadata:

        f:labels:

          .: {}

          f:k8s-app: {}

      f:spec:

        .: {}

        f:endpoints: {}

        f:namespaceSelector:

          .: {}

          f:matchNames: {}

        f:selector:

          .: {}

          f:matchLabels:

            .: {}

            f:k8s-app: {}

        f:targetLabels: {}

    manager: oc

    operation: Update

    time: "2020-11-20T01:15:32Z"

  name: couchbase

  namespace: openshift-monitoring

  resourceVersion: "87559445"

  selfLink: 
/apis/monitoring.coreos.com/v1/namespaces/openshift-monitoring/servicemonitors/couchbase

  uid: a5423f47-a5d1-4e1d-ad1d-05a119fb8733

spec:

  endpoints:

  - interval: 10m

    path: /metrics

    port: 5000-tcp

    scheme: http

    scrapeTimeout: 1m

    targetPort: 5000-tcp

  namespaceSelector:

    matchNames:

    - couchbase-monitoring

  selector:

    matchLabels:

      k8s-app: cbexporter

  targetLabels:

  - datacenter

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/009e11bd-08b5-4cad-ad9c-bd554aa577c6n%40googlegroups.com.

Reply via email to