Skip to content

Status page graphs don't work if there is a NaN value #1031

Closed

Description

@manugarg

Currently probestatus module computes success ratio as NaN if there are no new metrics for a target. This results in status page graph breakage and we get log messages like this:

time=2025-03-06T12:33:15.001-08:00 level=ERROR source=surfacers/internal/probestatus/graph.go:219 msg="Error converting graph data to JSON: json: unsupported value: NaN" system=cloudprober surfacer=probestatus
time=2025-03-06T12:33:17.393-08:00 level=ERROR source=surfacers/internal/probestatus/graph.go:219 msg="Error converting graph data to JSON: json: unsupported value: NaN" system=cloudprober surfacer=probestatus

Activity

  1. added
    bug
    on Mar 6, 2025
  2. self-assigned this
    on Mar 6, 2025
  3. added this to the v0.14.0 milestone on Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions