No monitoring data found

Hello, I am getting No monitoring data found error while setting up stack monitoring. I learned that the recommended way to monitor a cluster is via metricbeat and I want the elasticsearch cluster to monitor itself which according to the documentation is possible in eck 2.3. Stack Monitoring | Elastic Cloud on Kubernetes [2.3] | Elastic

However I am getting this error.

My yamls are looking like this:
Elasticsearch.yaml

apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  annotations:
    eck.k8s.elastic.co/downward-node-labels: "topology.kubernetes.io/zone"
  name: elasticsearch
spec:
  version: 8.3.2
  monitoring:
    metrics:
      elasticsearchRefs:
      - name: elasticsearch
  http:
    service:
      spec:
        type: LoadBalancer
        ports:
        - name: http
          port: 9200
          targetPort: 9200
      metadata:
        annotations:
          service.beta.kubernetes.io/aws-load-balancer-scheme: "internal"
    tls:
      selfSignedCertificate:
        disabled: true
  nodeSets:
    - name: default
      count: 1
      config:
        bootstrap.memory_lock: true
        xpack.security.authc:
          anonymous:
            username: anonymous_user 
            roles: superuser, kibana_system, kibana_admin
            authz_exception: true 
      podTemplate:
        spec:
        # restricts Elasticsearch nodes so they are only scheduled on Kubernetes hosts tagged with label instance-type: m5.2xlarge
          affinity:
            nodeAffinity:
              requiredDuringSchedulingIgnoredDuringExecution:
                nodeSelectorTerms:
                - matchExpressions:
                  - key: node.kubernetes.io/instance-type
                    operator: In
                    values: m5.2xlarge
          containers:
            - name: elasticsearch
              resources:
                requests:
                  memory: "8Gi"
                  cpu: 4
                limits:
                  memory: "8Gi"
      volumeClaimTemplates:
        - metadata:
            name: elasticsearch-data
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: "200Gi"
            storageClassName: "gp2"

kibana.yaml:

apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana
spec:
  version: 8.3.2
  monitoring:
    metrics:
      elasticsearchRefs:
      - name: elasticsearch
  http:
    service:
      spec:
        type: LoadBalancer
        ports:
        - name: https
          port: 443
          targetPort: 3000
    tls:
      selfSignedCertificate:
        disabled: true
  count: 1
  elasticsearchRef:
    name: elasticsearch
  config:
    xpack.security.authc.providers:
      basic.basic1:
        order: 0
      anonymous.anonymous1:
        order: 1
        credentials: "elasticsearch_anonymous_user"
  podTemplate:
    spec:
      containers:
      - name: kibana
        resources:
          requests:
            memory: "2Gi"
            cpu: 2
          limits:
            memory: "4Gi"
            cpu: 2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.