Skip to content

Troubleshooting empty metrics indices

Why do that

Sometimes, an administrator wants to create new monitoring dashboard (for instance on grafana). See the content of application metrics can be very useful to understand the behaviour of these metrics.

What to do

  • Go to the PunchPlatform configuration directory
  • Edit the file resources/elasticsearch/templates/mapping-metrics.json
  • Change the following lines :
1
2
3
4
# change 
"_source" : { "enabled" : false },
# by 
"_source" : { "enabled" : true },
  • Commit your change through git
  • Wait the next day (nex index creation) OR Re-index the current index OR DELETE the current index (ie metrics-YYYY.MM.DD)