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 ----
Sending 102 lines to http://localhost:14499/metrics/ingest "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
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.
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?
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 :
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