cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Prometheus Extension 2.0 Error 32

Sahil2308
Participant

Hi,

I am trying to create a prometheus extension following this Dynatrace session. (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, http://localhost:9090/metrics 

Sahil2308_1-1706453020493.png

 

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

extension config:

Sahil2308_2-1706453230364.png

 

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

extension.yaml content:

Sahil2308_0-1706453351338.png

 


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



2 REPLIES 2

Mike_L
Dynatrace Guru
Dynatrace Guru

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. 

Mike

avinash-platfor
Newcomer

The issue is with your metric type. It needs to one among `count`, `gauge`, `histogram` or `summary`. `seconds` is an invalid metric type.
https://docs.dynatrace.com/docs/extend-dynatrace/extensions20/data-sources/prometheus-extensions/pro...

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

Featured Posts