Skip to content

Color code based on NRQL latest result #72

@JorgeAlaniz007

Description

@JorgeAlaniz007

This is for the NRQL Status Widget. When configuring this custom viz, we configure a NRQL and a bucket size, lets say we configure the bucket size for 15 minutes, this means we will have 24 squared buckets in the bottom of the widget each running the query for 15 minutes. However, the main result of the query, which is the one used to color code the whole widget, its based on 24x15 = 360 = 6 hours time instead of the last 15 result of the query.

Summary

NRQL result used to color code the widget is based on the bucket size multiplied by 24 buckets (Example: 24 buckets X 15 minutes = 6 hours) instead of showing the result of the last bucket (last 15 minutes)

Desired Behaviour

Widget should color code based on the last result of the NRQL and not the 24 buckets multiplied by bucket size

Possible Solution

Add a toggle to deside if we want the whole 24xBucketSize time or use the latest result of the query

Additional context

We are using status for synthetics monitors, so if the monitor has been failing for a lot of time, and then its fixed, the widget will not go green until some time has passed (5-6 hours in the above example)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions