In my opinion it is possible but you have to use own script. You can use INSTANA API in order to solve this problem.
1. Use this endpoint /api/instana/usage/hosts/
You will get number of hosts APM and INFRA.
2. Next you can compare the number of host with your threshold.
3. If you cross the threshold, then send custom alarm/event by pushing information to this endpoint:
You can find more information how to use API on: https://instana.github.io/openapi/ and https://www.ibm.com/docs/en/instana-observability/current?topic=apis-host-agent-rest-api#curl-example
Example
------------------------------
Lukas
------------------------------
Original Message:
Sent: Wed November 22, 2023 10:33 AM
From: saury granados
Subject: Create alarm to count Instana agents
I need to create an alarm to count the agents connected to Instana and be able to validate that the subscription is not oversubscribed by mistake or carelessness
------------------------------
saury granados
ing
GBM Corporation
San José
506-22843999
------------------------------