Add files via upload

adding 503 http error collector

Signed-off-by: vear959595 <69949561+vear959595@users.noreply.github.com>
This commit is contained in:
vear959595 2022-10-24 21:26:54 +07:00 committed by GitHub
parent 68f7efec32
commit c3fa0039ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,