# Metrics: There is no data to display (error while fetching resource)

**URL:** https://discuss.elastic.co/t/metrics-there-is-no-data-to-display-error-while-fetching-resource/266714
**Category:** Beats
**Tags:** metricbeat
**Created:** [March 9, 2021, 3:27pm UTC](https://discuss.elastic.co/t/metrics-there-is-no-data-to-display-error-while-fetching-resource/266714 "2021-03-09T15:27:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![feva](https://avatars.discourse-cdn.com/v4/letter/f/a9adbd/32.png) [@feva](https://discuss.elastic.co/u/feva)
#### Post date: [March 9, 2021, 3:27pm UTC](https://discuss.elastic.co/t/metrics-there-is-no-data-to-display-error-while-fetching-resource/266714/1 "2021-03-09T15:27:16Z")

</div>

Hello,

I have som troubles with metricbeat and Metrics App in Kibana. I am using metricbeat 7.10 and Kibana 7.10 on a Windows Server 2019.

Every now and then I get an error message when I open Metrics App in Kibana: Error while fetching resource (Internal server error 500). I couldn't find any log messages that could help me.

I have tried loading the metricbeat template as suggested here ([Kibana Metrics – 500 Internal Server Error - #2 by ntk](https://discuss.elastic.co/t/kibana-metrics-500-internal-server-error/238260/2)).

I have a metricbeat template, so I loaded the template like

```auto
 PUT _template/metricbeat_template 
 {
 template from PS > .\metricbeat.exe export template --es.version 7.10.0 | Out-File -Encoding UTF8 metricbeat.template.json)
 }

```

Then

```auto
 PUT metricbeat-000001
     {
         "aliases" : {
             "metricbeat": {  
                 "is_write_index": true
             }
         }
     }

```

but I still get this error.

Metricbeat is running as a service, and ships the data to logstash, which does the following:

```auto
filter {
  mutate {
    add_field => { "type" => "%{[@metadata][beat]}" }
  }
}
output {
  elasticsearch {
    hosts => ["https://xxx:9200"]
    index => "%{[type]}"
	cacert => "certificate"
	user => user
	password => password
  }
}

```

The metricbeat log says:

```auto
2021-02-24T15:15:15.937+0100	INFO	[index-management]	idxmgmt/std.go:407	Set setup.template.name to '{metricbeat-7.10.0 {now/d}-000001}' as ILM is enabled.
2021-02-24T15:15:15.937+0100	INFO	[index-management]	idxmgmt/std.go:412	Set setup.template.pattern to 'metricbeat-7.10.0-*' as ILM is enabled.
2021-02-24T15:15:15.937+0100	INFO	[index-management]	idxmgmt/std.go:446	Set settings.index.lifecycle.rollover_alias in template to {metricbeat-7.10.0 {now/d}-000001} as ILM is enabled.
2021-02-24T15:15:15.938+0100	INFO	[index-management]	idxmgmt/std.go:450	Set settings.index.lifecycle.name in template to {metricbeat {"policy":{"phases":{"hot":{"actions":{"rollover":{"max_age":"30d","max_size":"50gb"}}}}}}} as ILM is enabled.
2021-02-24T15:15:15.938+0100	INFO	template/load.go:183	Existing template will be overwritten, as overwrite is enabled.
2021-02-24T15:15:17.185+0100	INFO	[index-management]	idxmgmt/std.go:298	Loaded index template.

```

I can see metricbeat-00001 (since I defined it). The Kibana Index is metricbeat\*.

Is it allowed to define a template, or is this a problem. As I said before, I have this problem every now and then. As we are still in development I do not have a look at it every day. So I have the suspicion that this happens after a rollover. And now the fix as described above does not work any more.  
Any suggestion on what to do, to fix this problem?

Thanks in advance 🙂

---

<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: [April 6, 2021, 5:27pm UTC](https://discuss.elastic.co/t/metrics-there-is-no-data-to-display-error-while-fetching-resource/266714/2 "2021-04-06T17:27:33Z")

</div>

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