Skip to Main Content
Liongard Library

Welcome to Liongard Library, where Lions share! This is a community-led space where Liongard users can come to teach and learn from one another.
Share custom Metrics, get inspired and see what’s trending in the Pride.

Pride Etiquette:
➕ Have great custom Metrics? Add them as entries!
🌟 Want to use a Metric? Copy the query and
follow this doc.
👍 Tried a Metric from the Library? Like it!
📣 Have a question or feedback on a Metric? Add a comment!
🔎 Not sure where to start? Learn about Metrics and how to write them.
💬 Need help writing a metric or want to help support others? Join the conversation in our Liongard Lounge #metrics slack channel.


🥴 See something off? Open a support chat to let us know.

Categories Roar
Created by Lamont Largie
Created on Oct 8, 2024

Roar: Liongard Environments Status Overview

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.

  • JMESPath Query: Environments[].[Name,Status]

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.

Query

Environments[].[Name,Status]

  • Attach files