Metriktypen - Beispiele

Table 1. Metriktypen - Beispiele
Metriktypen Beschreibung
Counter
 ```yaml
   TotalRequests:
     help: "Total number of requests received"
     type: "Counter"
   ``` 
Gauge
```yaml
   ServerTemperature:
     help: "Current temperature of the server"
     type: "Gauge"
     labelNames: "serverId"
   ```
Histogram
```yaml
   RequestDuration:
     help: "Duration of HTTP requests in milliseconds"
     type: "Histogram"
     buckets: [0.1, 0.5, 1, 5, 10]
   ```
Summary
```yaml
   ResponseSizes:
     help: "Sizes of HTTP responses"
     type: "Summary"
     percentiles: [0.5, 0.9, 0.99]
   ```
MovingAvgGauge
```yaml
   AverageLoad:
     help: "Average system load over a period"
     type: "MovingAvgGauge"
     avgWindowSize: 5
     rateOfChange: false
   ```
​ Weitere Informationen über Standardmetriken finden Sie in der Online-[Dokumentation](https://github.com/siimon/prom-client).