# Prometheus Extension 2.0 Error 32

**URL:** <https://community.dynatrace.com/t/prometheus-extension-2-0-error-32/43873>\
**Category:** Extensions\
**Tags:** prometheus, extensions\
**Created:** [January 28, 2024, 2:49pm UTC](https://community.dynatrace.com/t/prometheus-extension-2-0-error-32/43873 "2024-01-28T14:49:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahil2308](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@Sahil2308](https://community.dynatrace.com/u/Sahil2308)\
**Post date:** [January 28, 2024, 2:49pm UTC](https://community.dynatrace.com/t/prometheus-extension-2-0-error-32/43873/1 "2024-01-28T14:49:19Z")

</div>

Hi,

I am trying to create a prometheus extension following this Dynatrace session. ([https://www.youtube.com/watch?v=Qy4Ge8HIzEk&t=3344s](https://www.youtube.com/watch?v=Qy4Ge8HIzEk&t=3344s))

I am getting the below error: “INVALID\_CONFIG\_ERROR:Invalid configuration [status code=32]; ; Datasource has exited and will be starting shortly”

metrics are available on the endpoint,&nbsp;[http://localhost:9090/metrics](http://localhost:9090/metrics)

 ![Sahil2308_1-1706453020493.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/1/a1f6a1bfb420542c2f4c68ef35d57953d32901df.png)

==============================

extension config:

 ![Sahil2308_2-1706453230364.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/7/579976206f79cce4c651152337060d35eb43c568.png)

=============================

extension.yaml content:

 ![Sahil2308_0-1706453351338.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/a/3abadd4b15f138e0ca627666be1896115de16859.png)

I am not able to figure out what exactly wrong I am doing.&nbsp;  
Help will be appreciated. Making an extension first time 🙂.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [January 28, 2024, 4:44pm UTC](https://community.dynatrace.com/t/prometheus-extension-2-0-error-32/43873/2 "2024-01-28T16:44:09Z")

</div>

I think that it is the first time I see that error. I don’t see anything obvious which is wrong. Maybe try reinstalling the OneAgent, and otherwise open a support case.

---

<div class="post-metadata">

**Author:** ![avinash-platfor](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@avinash-platfor](https://community.dynatrace.com/u/avinash-platfor)\
**Post date:** [June 26, 2024, 8:11am UTC](https://community.dynatrace.com/t/prometheus-extension-2-0-error-32/43873/3 "2024-06-26T08:11:46Z")

</div>

The issue is with your metric type. It needs to one among `count`, `gauge`, `histogram` or `summary`. `seconds` is an invalid metric type.

> **[Prometheus data source reference](https://docs.dynatrace.com/docs/ingest-from/extensions/develop-your-extensions/data-sources/prometheus-extensions/prometheus-schema-reference)**
>
> Learn about Prometheus extensions in the Extensions framework.

P.S. If you’re converting Prometheus metrics output to dynatrace extension, you will have to change `counter` to `count`.

---

<div class="post-metadata">

**Author:** ![MichaelT\_Lee](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@MichaelT\_Lee](https://community.dynatrace.com/u/MichaelT_Lee)\
**Post date:** [July 29, 2024, 2:53pm UTC](https://community.dynatrace.com/t/prometheus-extension-2-0-error-32/43873/4 "2024-07-29T14:53:19Z")

</div>

Is there a solution for this yet?&nbsp; I am also getting this error.&nbsp; My metric type is set to “guage”, so the type does not seem to be the issue.

---

<div class="post-metadata">

**Author:** ![R\_v\_Engelen](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@R\_v\_Engelen](https://community.dynatrace.com/u/R_v_Engelen)\
**Post date:** [November 27, 2024, 12:24pm UTC](https://community.dynatrace.com/t/prometheus-extension-2-0-error-32/43873/5 "2024-11-27T12:24:49Z")

</div>

You’ve spelt it Guage and not Gauge, might that be your issue or is it just a typo on here?
