I am using the APMIA GCP extension to collect GCP service inventory/metrics. Mostly we are interested in the inventory (so we have tags that correlate to other agent instances for dashboard creation) and metrics for some services. We are not interested in collecting performance metrics from compute instances, as these are also collected by an agent running on each instance. Is there any way to disable the collection of compute instance metrics? It is taking around 450 seconds/106,000 metrics, so it would be very beneficial to turn these off.
By default configuration, APMIA GCP extension supports fetching metrics based on both STANDARD and ADVANCED metric groups. You can first configure the agent property introscope.agent.gcp.profiles.gcp.1.monitored.groups in the GCP extension bundle.properties to only STANDARD metric group to see if it is sufficient to help reduce the number of GCP metrics, e.g.
introscope.agent.gcp.profiles.gcp.1.monitored.groups=STANDARD
If you still want to further reduce the GCP metrics being reported, then it would require more complex customization of the GCP extension schema json files to support a custom metric group and additional testing to verify.