Splunk AppDynamics

Machine Agent HTTP Listener Not Registering New Metrics

Fernando_Piccoz
Engager

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
}
]

Labels (1)
0 Karma

Nawaz_Ali_Moha1
Contributor

Hello Fernando,

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

0 Karma

iamryan
Community Manager
Community Manager

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 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...