An SLI measures a defined experience across eligible events. For availability here, successful requests are all requests except status 500. Keep numerator and denominator on the same service and window. A host’s CPU or a successful scrape is not this request-based SLI.
Read the labels before you run the example. This workbench evaluates the final sample of a regularly spaced fixture, so its rates omit Prometheus scrape extrapolation. Compare the result with the underlying series, then change the service scope. The last request leaves the query construction to you; a hard-coded number won't survive the changed dataset.