# HikariCP metrics ingestion error

**URL:** <https://discuss.elastic.co/t/hikaricp-metrics-ingestion-error/259875>\
**Category:** APM\
**Tags:** java, server\
**Created:** [December 30, 2020, 10:57am UTC](https://discuss.elastic.co/t/hikaricp-metrics-ingestion-error/259875 "2020-12-30T10:57:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenhouwu](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jenhouwu](https://discuss.elastic.co/u/jenhouwu)\
**Post date:** [December 30, 2020, 10:57am UTC](https://discuss.elastic.co/t/hikaricp-metrics-ingestion-error/259875/1 "2020-12-30T10:57:45Z")

</div>

**Kibana version** :  
7.10.1  
**Elasticsearch version** :  
7.10.1  
**APM Server version** :  
7.8.0  
**APM Agent language and version** :  
java 1.19.1  
**Steps to reproduce** :  
start apm java agent with option  
-Delastic.apm.disable\_metrics=hikaricp.connections

Due to I got some error form APM Server

```
Sep 25 10:23:09 apm-server[31357]: WARN [transform] model/metricset.go:141 failed to transform sample model.Sample{Name:"hikaricp.connections.idle", Value:2, Values:[]float64(nil), Counts:[]int64(nil)}
Sep 25 10:23:09 apm-server[31357]: WARN [transform] model/metricset.go:141 failed to transform sample model.Sample{Name:"hikaricp.connections.creation.count", Value:600, Values:[]float64(nil), Counts:[]int64(nil)}
Sep 25 10:23:09 apm-server[31357]: WARN [transform] model/metricset.go:141 failed to transform sample model.Sample{Name:"hikaricp.connections.creation.sum.us", Value:7.0216e+07, Values:[]float64(nil), Counts:[]int64(nil)}
:
.

```

Refer to [Support metrics with dots in their names #347](https://github.com/elastic/apm/issues/347)

I want to filter out the metric "hikaricp.connections" only at APM Agent with java option  
-Delastic.apm.disable\_metrics=hikaricp.connections and keep other HikariCP metrics.  
But after apply this setting, I still can't see other metrics like hikaricp.connections.\* .  
Why?

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [December 30, 2020, 11:21am UTC](https://discuss.elastic.co/t/hikaricp-metrics-ingestion-error/259875/2 "2020-12-30T11:21:50Z")

</div>

Hi and welcome to our forum 🎉

I assume that since you already ingested these metrics, there is already a mapping conflict in the current metrics index, so it should be deleted.

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [December 30, 2020, 11:26am UTC](https://discuss.elastic.co/t/hikaricp-metrics-ingestion-error/259875/3 "2020-12-30T11:26:41Z")

</div>

I changed the subject so that others can find this topic easily with regards to HikariCP and tagged the server team, so they can provide pointers on best way to delete the index and/or fix the mappings

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [December 30, 2020, 12:29pm UTC](https://discuss.elastic.co/t/hikaricp-metrics-ingestion-error/259875/4 "2020-12-30T12:29:34Z")

</div>

Hi @jenhouwu,  
in case you are using ILM (which is enabled by default) you can initiate a rollover to a new metrics index by calling `POST apm-7.8.0-metric/_rollover`, see also [indices-rollover-index](https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html). The dynamic part of the mapping for the new index will be created when new metricsets are ingested.

Let us know if this solves the issue.

---

<div class="post-metadata">

**Author:** ![jenhouwu](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jenhouwu](https://discuss.elastic.co/u/jenhouwu)\
**Post date:** [December 31, 2020, 7:50am UTC](https://discuss.elastic.co/t/hikaricp-metrics-ingestion-error/259875/5 "2020-12-31T07:50:58Z")

</div>

Hi @simitt

Thanks for your great support, after rollover apm metric index，hikaricp.connections.\* metric can be indexed finally. 😃  
 ![2020-12-31_154722](https://us1.discourse-cdn.com/elastic/original/3X/0/5/050594ba880cd180e4e3f2c258c182256b99b70b.jpeg)

---

<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:** [January 21, 2021, 3:51am UTC](https://discuss.elastic.co/t/hikaricp-metrics-ingestion-error/259875/6 "2021-01-21T03:51:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [February 2, 2021, 9:33am UTC](https://discuss.elastic.co/t/hikaricp-metrics-ingestion-error/259875/8 "2021-02-02T09:33:56Z")

</div>


