title: Specify Metricbeat Prometheus Field Names
body: <p>I am running my application and metricbeat on K8s.
  My application has an endpoint that exports prometheus metrics and metricbeat is able to pickup the metrics and add them to elastic. </p>
  
  <p>The problem is that for a given document that makes it into elastic, the field name has the k8 namespace added to it. For example a given document will have a field named <code>prometheus.my-namespace-1.runtime_memory_max_heap.value</code></p>
  
  <p>This creates a problem since it means that each app that I add to my cluster will force a reindex on Kibana in order to detect the field type. Furthermore it means that I cannot make a general dashboard for my metrics and then filter on namespaces because each app has custom field names.</p>
  
  <p>I would like the field name to just be called <code>prometheus.runtime_memory_max_heap.value</code></p>