cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Java (Java Agent, Installation, JVM, and Controller Installation)

Machine Agent HTTP Listener Not Registering New Metrics

Machine Agent HTTP Listener Not Registering New Metrics

Hi, 

 

I am trying to send metrics to the controller using Machine Agent HTTP Listener but the agent is discarding the metrics since it is unregistered. Do I have to register it manually?

 


$URL = "http://localhost:9999"
$Endpoint = "/api/v1/metrics"
$URLFull = "$URL$Endpoint"
$JSON = ConvertTo-Json @(@{"metricName"="Custom Metrics|DFSR Backlog" + "|CommonData|" + $thishost;"aggregatorType"="OBSERVATION";"value"=$backlog_count})
Write-Output $JSON
$JSONHeaders = @{
"Content-Type"="application/json"
"Media-Type"="application/json"
"Accept"="application/json"}

$SendMetric = Invoke-RestMethod -Method Post -Uri $URLFull -Headers $JSONHeaders -Body $JSON

 

This is the JSON that is being passed:

 

[
{
"aggregatorType": "OBSERVATION",
"metricName": "Custom Metrics|DFSR Backlog|CommonData|SERVER1",
"value": -1
}
]

By replying you agree to the Terms and Conditions of the AppDynamics Community.
Machine Agent HTTP Listener Not Registering New Metrics
2 REPLIES 2
Ryan.Paredez
Community Manager

Re: Machine Agent HTTP Listener Not Registering New Metrics

Hi @Fernando.Piccozzi,

 

There is an existing Community post that seems to be similar. Plase check it out and see if it is able to provide any help or insight.

 

Cannot Register Machine agent to an application 


Thanks,
Ryan, AppDynamics Community Manager



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Nawaz Ali.Mohammad
AppDynamics Team

Re: Machine Agent HTTP Listener Not Registering New Metrics

Hello Fernando,

To troubleshoot missing custom metrics, please go through the steps in the Extensions Troubleshooting Document.