mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-03-24 12:00:23 +00:00
Add files via upload
adding 503 http error collector Signed-off-by: vear959595 <69949561+vear959595@users.noreply.github.com>
This commit is contained in:
parent
68f7efec32
commit
c3fa0039ba
@ -1334,6 +1334,7 @@ type perflibW3SVC_W3WP_IIS8 struct {
|
||||
|
||||
RequestErrorsTotal float64
|
||||
RequestErrors500 float64 `perflib:"% 500 HTTP Response Sent"`
|
||||
RequestErrors503 float64 `perflib:"% 503 HTTP Response Sent"`
|
||||
RequestErrors404 float64 `perflib:"% 404 HTTP Response Sent"`
|
||||
RequestErrors403 float64 `perflib:"% 403 HTTP Response Sent"`
|
||||
RequestErrors401 float64 `perflib:"% 401 HTTP Response Sent"`
|
||||
@ -1644,6 +1645,14 @@ func (c *IISCollector) collectW3SVC_W3WP(ctx *ScrapeContext, ch chan<- prometheu
|
||||
pid,
|
||||
"500",
|
||||
)
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.RequestErrorsTotal,
|
||||
prometheus.CounterValue,
|
||||
app.RequestErrors503,
|
||||
name,
|
||||
pid,
|
||||
"503",
|
||||
)
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
c.WebSocketRequestsActive,
|
||||
prometheus.CounterValue,
|
||||
|
Loading…
Reference in New Issue
Block a user