Skip to content

Metric latest value is always 0 #31

@royjs

Description

@royjs

I'm using the check-azurerm-monitor-metric.rb check with Azure Postgres metrics (cpu_percent, memory_percent, storage_percent)
The issue I'm having is that metrics are always a few minutes behind so the latest value is almost always 0.0.

My first thought was to select a different timespan to use a start time from 2 or 3 minutes ago but it doesn't seem to be possible currently with this check. I did test it by changing the code directly and it worked.

Any ideas on how I could get around this issue?
Should we add a new option for the timespan start time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions