# No monitoring data found

**URL:** <https://discuss.elastic.co/t/no-monitoring-data-found/309194>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Tags:** elastic-stack-monitoring\
**Created:** [July 8, 2022, 10:40am UTC](https://discuss.elastic.co/t/no-monitoring-data-found/309194 "2022-07-08T10:40:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crimson\_riot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crimson_riot/32/100766_2.png) [@crimson\_riot](https://discuss.elastic.co/u/crimson_riot)\
**Post date:** [July 8, 2022, 10:40am UTC](https://discuss.elastic.co/t/no-monitoring-data-found/309194/1 "2022-07-08T10:40:38Z")

</div>

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](https://www.elastic.co/guide/en/cloud-on-k8s/2.3/k8s-stack-monitoring.html)

However I am getting this error.

 ![error](https://us1.discourse-cdn.com/elastic/original/3X/5/9/59f816e03633c72237697f2b2d28e8c05680e96f.png)

My yamls are looking like this:  
Elasticsearch.yaml

```auto
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:

```auto
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
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 5, 2022, 10:41am UTC](https://discuss.elastic.co/t/no-monitoring-data-found/309194/2 "2022-08-05T10:41:25Z")

</div>

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