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

Failed metric ingestion: java.net.ConnectException: Connection refused (Connection refused)

GayathriVRadha
Newcomer_

I am trying to send metrics from spring Boot Application deployed in the host where Dynatrace operator and dynatrace One Agent in installed already. But am getting below error.

 

Started Application ----

 
 "io.micrometer.dynatrace.v2.DynatraceExporterV2"
"Failed metric ingestion: java.net.ConnectException: Connection refused (Connection refused)"
 
I am trying deploy the application in same namespace and cluster where dynatrace operator and Agent are installed, And am not supplying url and token from my spring boot app since I am trying to deploying in the same host where agent/operator are running . Am I missing something here. Is it because My application is not able to establish a connection with Dynatrace Oneagent/Operator ?
 
Please help on this
8 REPLIES 8

ChadTurner
DynaMight Legend
DynaMight Legend

@GayathriVRadha is that the correct port? 

-Chad

And beside the port could also check that if the OneAgent metric api is enabled on those hosts since I'm assuming that currently your setup tries to send the data towards oneagent.

https://www.dynatrace.com/support/help/shortlink/local-api#enable-the-oneagent-metric-api

manisundaram
Contributor

You got this working ? We are experiencing same problem here

Mizső
DynaMight Guru
DynaMight Guru

Hi @GayathriVRadha,

We have the same probleam at a client environment however extension controller settings are enabled. Have you found the reason of the connection refuse message? 

Mizs_0-1712780672041.png

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

chary441
Newcomer

I am seeing the same issue on the AKS. Do you guys have a solution for above issue?

panda
Guide

the same issue happened for me when using micrometer-dyantrace to automate send metric into dynatrace, is there any solution?

krusheel
Newcomer_

Any update on this ? , For an OSGi system , We have added micrometer-dynatrace to send metrics via Oneagent installed in a host.We are getting the same error : 

*WARN* [dynatrace-metrics-publisher] io.micrometer.dynatrace.v2.DynatraceExporterV2 Failed metric ingestion: java.net.ConnectException: Connection refused

 

m_zol
Participant

The problem might be because the feature of metric-ingest on the active gate is not enabled by default:

  activeGate:
    # Specifies which capabilities will be enabled on ActiveGate instances
    # The following capabilities can be set:
    # - routing
    # - kubernetes-monitoring
    # - metrics-ingest
    # - dynatrace-api
    #
    capabilities:
      - routing
      - kubernetes-monitoring
      - dynatrace-api

Featured Posts