pyrra-dev / pyrra

Making SLOs with Prometheus manageable, accessible, and easy to use for everyone!
https://demo.pyrra.dev
Apache License 2.0
1.16k stars 101 forks source link

Issue when showing some SLOs (white screen) #1130

Open juanjcsr opened 3 months ago

juanjcsr commented 3 months ago

Hello Everyone

I've found a possible bug or issue when displaying some SLOs. When I navigate from the SLO list to the details page or when I check the details of a multiburn alert, I get a white screen:

image

image

The javascript error is the following:

TypeError: Cannot read properties of undefined (reading 'push')
    at aligneddata.tsx:121:19
    at Array.forEach (<anonymous>)
    at aligneddata.tsx:120:18
    at Array.forEach (<anonymous>)
    at aligneddata.tsx:117:15
    at Pd (BurnrateGraph.tsx:115:7)
    at Ea (react-dom.production.min.js:167:137)
    at Ou (react-dom.production.min.js:197:258)
    at Sl (react-dom.production.min.js:292:88)
    at bs (react-dom.production.min.js:280:389)

The SLO that generates the error is the following:

spec:
  target: "99"
  window: 2w
  description: tarantool latency
  indicator:
    latency:
      success:
        metric: http_server_request_latency_bucket{job=~"tarantool-tnt-cluster",status="200", le="0.05", path="/accommodation/pointOfSale/:pointOfSale/seoUrl/*seoUrl"}
      total:
        metric: http_server_request_latency_count{job=~"tarantool-tnt-cluster",status="200",path="/accommodation/pointOfSale/:pointOfSale/seoUrl/*seoUrl"}

I locally launched the UI (master branch) against my deployed pyrra server and encountered the same issue.

I'm running Pyrra v0.7.4

Do you have any idea why is this happening or how can I help to debug this issue?

Thank you, I really enjoy the work everyone is doing with Pyrra 😄