Middle
What is an SLI (Service Level Indicator)?
sobes.tech AI
Answer from AI
This is a quantitative indicator reflecting the level of service provided by the system. It measures a specific aspect of performance or reliability.
Examples of SLI:
- Percentage of successful HTTP requests
- Average API response time
- Error rate in message processing
- Service availability (uptime)
- System throughput
For example, for an API:
// Example of an SLI metric: Percentage of successful HTTP requests
// Metric: http_requests_total (counter)
// Labels: {status="2xx"}
// SLI will be calculated as: (number of successful requests) / (total number of requests)