# Problem with Prometheus Integration

**URL:** <https://discuss.elastic.co/t/problem-with-prometheus-integration/353876>\
**Category:** Elastic Agent\
**Tags:** metricbeat\
**Created:** [February 22, 2024, 11:10am UTC](https://discuss.elastic.co/t/problem-with-prometheus-integration/353876 "2024-02-22T11:10:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukasz\_Skrzat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukasz_skrzat/32/130505_2.png) [@Lukasz\_Skrzat](https://discuss.elastic.co/u/Lukasz_Skrzat)\
**Post date:** [February 22, 2024, 11:10am UTC](https://discuss.elastic.co/t/problem-with-prometheus-integration/353876/1 "2024-02-22T11:10:05Z")

</div>

Hi  
I use Prometheus Integration in my ECK stack 8.12.1 version  
Using with spring-boot java application and working good.

But now i add kotlin app and have little problem  
{"log.level":"error","@timestamp":"2024-02-22T10:11:08.791Z","message":"Error fetching data for metricset prometheus.collector: unable to decode response from prometheus endpoint: unexpected status code 400 from server","component":{"binary":"metricbeat","dataset":"elastic\_agent.metricbeat","id":"prometheus/metrics-default","type":"prometheus/metrics"},"log":{"source":"prometheus/metrics-default"},"log.origin":{"file.line":256,"file.name":"module/wrapper.go","function":"[github.com/elastic/beats/v7/metricbeat/mb/module.(\*metricSetWrapper).fetch"},"service.name":"metricbeat","ecs.version":"1.6.0","ecs.version":"1.6.0](http://github.com/elastic/beats/v7/metricbeat/mb/module.(*metricSetWrapper).fetch%22%7D,%22service.name%22:%22metricbeat%22,%22ecs.version%22:%221.6.0%22,%22ecs.version%22:%221.6.0)"}

On standalone metricbeats working good but with Prometheus Integration with ElasticAgent on ECK i have this error ....

Only this one logs ... can any help ??

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/1/31251da225fb840b635832944adeb3904b435ef3.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a61326a68b311178b958cffb4920cfe9e4eb101d.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b8358ff3d1882e70d671d3f621eab4393480f1aa.png)

---

<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:** [March 21, 2024, 11:10am UTC](https://discuss.elastic.co/t/problem-with-prometheus-integration/353876/2 "2024-03-21T11:10:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jamie\_pope](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamie_pope/32/131796_2.png) [@jamie\_pope](https://discuss.elastic.co/u/jamie_pope)\
**Post date:** [December 9, 2024, 6:36pm UTC](https://discuss.elastic.co/t/problem-with-prometheus-integration/353876/3 "2024-12-09T18:36:44Z")

</div>



---

<div class="post-metadata">

**Author:** ![jamie\_pope](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamie_pope/32/131796_2.png) [@jamie\_pope](https://discuss.elastic.co/u/jamie_pope)\
**Post date:** [December 9, 2024, 6:36pm UTC](https://discuss.elastic.co/t/problem-with-prometheus-integration/353876/4 "2024-12-09T18:36:47Z")

</div>


