We would like to export the application stack to our own database. Afterwards, this data will be imported in another tool to construct a cmdb.
Original Message:
Sent: Wed September 13, 2023 09:02 AM
From: Tom Tammann
Subject: Get application stack through the API
Hi Jurgen
talking more to engineers, my hunch that such a new feature is potentially very expensive (hence dangerous if put in the wrong hands ;-) ), could you please elaborate your use case and how you use the exported graph?
Much appreciated!
Tom
------------------------------
Tom Tammann
Original Message:
Sent: Wed September 13, 2023 02:14 AM
From: Jurgen Roels
Subject: Get application stack through the API
Thanks for the feedback @Tom Tammann!
I've created the feature request: https://automation-management.ideas.ibm.com/ideas/INSTANA-I-1840
In the meanwhile, I'll try to work with the workaround your colleague @Farhad Ferdowsian suggested.
------------------------------
Kind regards,
Jurgen Roels
Brussels, Belgium
Original Message:
Sent: Tue September 12, 2023 02:36 PM
From: Tom Tammann
Subject: Get application stack through the API
Hi Jurgen
my colleague @Farhad Ferdowsian made me aware of the following (rather hidden) functionality.
Use
/api/application-monitoring/applications/services?includeSnapshotIds=true
to get a list of Services AND their SnapshotIds, then loop through the Snapshots with
/api/infrastructure-monitoring/snapshots/:id
the response will contain "plugins" which reveal the infra entities.
And while a hidden feature, I could argue, that traversing the graph is rather expensive and a more "surgical" approach could be the right way, even if it takes a bit more effort...
Best regards
Tom
------------------------------
Tom Tammann
Original Message:
Sent: Mon September 11, 2023 03:33 AM
From: Jurgen Roels
Subject: Get application stack through the API
Hi all,
I'm trying to retrieve the whole application stack (AP > service > process > host) through the Instana API.
Currently I'm using the following API requests:
{{baseURL}}/api/application-monitoring/applications?nameFilter=xxx
{{baseURL}}/api/application-monitoring/topology/services?applicationId=xxx&applicationBoundaryScope=ALL
{{baseURL}}/api/infrastructure-monitoring/topology
With the result of the above API requests, I can retrieve all required entities. But I'm missing the link between service and process.
Does someone know which API endpoint can provide this missing link?
Thanks in advance!
------------------------------
Kind regards,
Jurgen Roels
Brussels, Belgium
------------------------------