Splunk AppDynamics

How to link a map a SAM metric extracted via API to its configured service name?

Philippe_Thero1
Explorer

Retrieving SAM data from the event server via RETS API, I get records like this:
<metricId>11326213</metricId>\n
<metricName>Hardware Resources|Service Availability|59|Success Rate (%)</metricName>\n
<metricPath>Application Infrastructure Performance|Root|Individual Nodes|usl00001292.us.hsbc|Hardware Resources|Service Availability|59|Success Rate (%)</metricPath>\n
<frequency>SIXTY_MIN</frequency>\n
<metricValues>\n
<metric-value>\n
<startTimeInMillis>1651823040000</startTimeInMillis>\n
<occurrences>60</occurrences>\n
<current>0</current>\n
<min>0</min>\n
<max>100</max>\n
<useRange>true</useRange>\n
<count>24</count>\n
<sum>2400</sum>\n
<value>100</value>\n
<standardDeviation>0</standardDeviation>\n
</metric-value>\n </metricValues>\n
</metric-data>\n <metric-data>\n

As you can see, the service monitored is identified by a number, here 59. Same thing in the metrics browser.
This attribute is called the config ID.

However, I cannot see how to map the number (59 in the above example) to the (service name, URL target, machine agent server) identifier.

I cannot find the (service name, URL target, machine agent server) triplet identifier of the SAM monitor anywhere in the metrics tree.

Any clue?

Thanks in advance

regards


Philippe

Labels (1)
Tags (3)
0 Karma
1 Solution

Morelz
Builder

Hi Philippe

You can use the ID you get back and query the following that will provide the service name of the SAM

https://<controller fqdn>/controller/sim/v2/user/sam/targets/http/<id>

Ciao

View solution in original post

Morelz
Builder

Hi Philippe

You can use the ID you get back and query the following that will provide the service name of the SAM

https://<controller fqdn>/controller/sim/v2/user/sam/targets/http/<id>

Ciao

Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...