Metric Name: Liongard Environments Status Overview
Category: Operational Efficiency / Billing Management
Description:
This metric generates a list of all Liongard environments and their current status (Active or Inactive), pulling directly from available environment data within the Liongard Roar Inspector. The query helps to ensure that teams are aware of environment usage, enabling efficient billing and operational management.
Purpose:
To help service providers monitor the status and details of environments, allowing them to align billing accurately and maintain proper resource oversight. This ensures that billing reflects active environments and provides the ability to track or deactivate unnecessary ones.
How it works:
The metric uses a JMESPath query to extract specific datapoints from the Liongard Roar Inspector related to environments. By querying the Environments
array, the metric retrieves the Name and Status of each environment. Based on this information, teams can track which environments are actively in use and which are inactive.
Beneficiaries:
Billing Teams: Ensures accurate tracking of active environments for invoicing.
Operations Teams: Provides insights into which environments are operational for management and troubleshooting.
Management Teams: Helps monitor service usage trends and resource allocation.
Available Datapoints:
The Liongard Roar Inspector provides a variety of useful datapoints for querying, allowing this metric to be expanded and customized based on specific needs. The core datapoints include:
Name: The environment's name.
Status: The current status of the environment (e.g., Active, Inactive).
ID: The unique identifier for each environment.
CreatedAt: Timestamp of when the environment was created.
UpdatedAt: Timestamp of the last update to the environment.
LastInspectionDate: The date of the last inspection for the environment.
Potential Modifications:
Filter for Active Environments Only: If the goal is to only see active environments, you could modify the query to Environments[?Status=='Active'].[Name,Status]
. This filter will exclude inactive environments, allowing for a more focused list.
Add More Details: If you want to include more context, such as the LastInspectionDate or the AccountName, the query can be enhanced:
Environments[].[Name,Status,LastInspectionDate,AccountName]
. This would provide insights into the environment’s last activity and its associated account for better tracking.
Sort by Last Inspection Date: To prioritize environments that may need attention, sorting the environments by their last inspection date can be useful. You could adjust the query to:
Environments | sort_by(@, &LastInspectionDate)[].[Name,Status,LastInspectionDate]
.
Why Make These Changes:
Modifying the query to include additional details or filters helps users quickly identify active environments, track when they were last inspected, and associate them with specific clients. This makes billing more efficient and improves operational oversight, leading to better resource allocation and faster identification of unused or inactive environments.