mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-14 00:46:35 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e07b2053af | ||
|
|
7d3c0d3b76 |
@@ -885,6 +885,10 @@ func (c *IISCollector) collectWebService(ctx *ScrapeContext, ch chan<- prometheu
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, app := range WebService {
|
for _, app := range WebService {
|
||||||
|
if app.Name == "_Total" || c.siteBlacklistPattern.MatchString(app.Name) || !c.siteWhitelistPattern.MatchString(app.Name) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.CurrentAnonymousUsers,
|
c.CurrentAnonymousUsers,
|
||||||
prometheus.GaugeValue,
|
prometheus.GaugeValue,
|
||||||
@@ -1159,6 +1163,12 @@ func (c *IISCollector) collectAPP_POOL_WAS(ctx *ScrapeContext, ch chan<- prometh
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, app := range APP_POOL_WAS {
|
for _, app := range APP_POOL_WAS {
|
||||||
|
if app.Name == "_Total" ||
|
||||||
|
c.appBlacklistPattern.MatchString(app.Name) ||
|
||||||
|
!c.appWhitelistPattern.MatchString(app.Name) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
for key, label := range applicationStates {
|
for key, label := range applicationStates {
|
||||||
isCurrentState := 0.0
|
isCurrentState := 0.0
|
||||||
if key == uint32(app.CurrentApplicationPoolState) {
|
if key == uint32(app.CurrentApplicationPoolState) {
|
||||||
|
|||||||
Reference in New Issue
Block a user