Labels for Google Cloud Platform integrations

Hello!

We’re happy to announce that New Relic now collects labels for Google Compute Engine, Kubernetes Engine, Cloud SQL, and Cloud Functions services. They join BigQuery, Cloud Spanner, Cloud Pub/Sub, and Cloud Storage integrations, which were collecting labels already.

Therefore, now you can use the following new metadata to narrow down queries, dashboards, and alerts related to Google Cloud resources:

  • Labels for Functions.
  • Labels for SQL databases.
  • Labels for Kubernetes clusters, which are propagated to nodes, pods and containers. If you’d like entity specific labels to be collected, you can use the Kubernetes integration.
  • Labels and tags for Compute Engine virtual machines, and labels for disks. Tags are treated as a regular label with value true.

Just make sure New Relic has been granted the appropriate permissions.

Here are some use cases for labels:

Narrow down alert conditions
Infrastructure Alerts UI show the label keys and values, so you can select to which resources the alert condition applies. For instance, to just one of your environments.

Narrow down Insights queries
In NRDB events, find labels prefixed as label.<key> = <value>. Use labels in query conditions, and for faceting results.

SELECT average(`firewall.DroppedPackets`)
FROM GcpVirtualMachineSample
WHERE `label.environment` = 'dev' TIMESERIES AUTO

SELECT average(`firewall.DroppedPackets`)
FROM GcpVirtualMachineSample
FACET `label.environment` TIMESERIES AUTO

Filter dashboards
The filter in default integration dashboards shows the available labels, and their values. You can select the specific label keys and values you want to focus on, and reduce the scope of the data shown in the charts.

Detect label inconsistencies
With Infrastructure Inventory, you can validate whether resources are correctly labeled. Inventory UI groups resources according to their labels, so it’s easy to see if label keys and values are consistent.

For instance, you might not want to have both an env and an environment label key. And you might want to check if bob is an expected label value.

Be aware of configuration changes
Infrastructure Events surface any change on labels, showing the new and the old values.

Cheers!

Helena Pujol
Product Manager, New Relic, Cloud Integrations

3 Likes