IT Squared / Cloud-Native Integration for Riverbed APM is pulling metrics from AppInternals using API with categories and filters. Each entity is defined by its AppInternals ID, and can have “pretty” name for Splunk/ElasticSearch searches. One way to gather IDs of applications and transactions that you want to ingest is AppInternals Web UI – set a filter on app or transaction and write down id from URL in browser. This works just fine for small scope.

But if you are looking for metrics fron lots of apps and transactions – we recommend to get a list of Name – ID pairs via API and choose what you need from the request results. All you need is a minute or two and AppInternals credentials with API access. Follow these steps:

  1. Create credentials json file login_request.json with the following contents:
    { “username”: “AppInternals_username”, “password”: “AppInternals_password” }
  2. Login and store cookie for API requests:
    curl -k –cookie-jar curl-cookies -H “content-type: application/json” https://steelcentral.net/auth/api/login -d @login_request.json
    Expected results:
    {“hasCompany”:true,”isReady”:true,”isEnabled”:true,”isSamlActive”:false,”promptForLocalPassword”:false,”proceedWithSamlAuth”:false}
  3. Get Applications IDs:
    curl -k –cookie curl-cookies -X GET https://steelcentral.net/scai.metrics/1.0/applications > applications.json
  4. Get Transaction IDs:
    curl -k –cookie curl-cookies -X GET https://steelcentral.net/scai.metrics/1.0/transaction_types > transaction_types.json
  5. All the information you need is stored In applications.json and transaction_types.json files now. Reference it for application and transaction IDs when preparing configuration file for the
    IT Squared / Cloud-Native Integration for Riverbed APM.

Note: Change server name in all above commands if you are using on-premise AppInternal.

There are other requests you might be interested in:

curl -k –cookie curl-cookies -X GET https://steelcentral.net/scai.metrics/1.0/software_version
curl -k –cookie curl-cookies -X GET https://steelcentral.net/scai.metrics/1.0/object_categories > object_categories.json
curl -k –cookie curl-cookies -X GET https://steelcentral.net/scai.metrics/1.0/metric_names > metric_names.json
curl -k –cookie curl-cookies -X GET https://steelcentral.net/scai.metrics/1.0/statistics > statistics.json

Tags

Comments