Skip to content

Commit

Permalink
Update API name for WM central services in Grafana dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
arooshap committed Dec 28, 2023
1 parent 8502242 commit d5f350a
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions kubernetes/cmsweb/monitoring/logstash.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,34 @@ filter {
pattern_definitions => { "WORDHYPHEN" => "\b[\w\-]+\b" }
match => { "request" => '/%{WORDHYPHEN:system}%{UNIXPATH:uri_path}%{URIPARAM:uri_params}?' }
}
if [uri_params] {
grok { match => { "uri_path" => '/.*/%{DATA:api}$' } }
if [api] == "" {
grok { match => { "uri_path" => '/.*/%{DATA:api}/$' } }
if [system] =~ /^(wmstatsserver|reqmgr2|t0_reqmon|ms-pileup|ms-transferor|ms-monitor|ms-output|ms-unmerged|ms-rulecleaner)$/ {
grok {
match => { "uri_path" => '/[^/]+/%{WORD:api}' }
}
} else {
grok { match => { "request" => '/.*/%{DATA:api}$' } }
if [api] == "" {
grok { match => { "request" => '/.*/%{DATA:api}/$' } }
grok {
match => { "uri_path" => '/[^/]+/%{DATA:api}/' }
}
}
}else {
if [uri_params] {
grok {
match => { "uri_path" => '/.*/%{DATA:api}$' }
}
if [api] == "" {
grok {
match => { "uri_path" => '/.*/%{DATA:api}/$' }
}
}
} else {
grok {
match => { "request" => '/.*/%{DATA:api}$' }
}
if [api] == "" {
grok {
match => { "request" => '/.*/%{DATA:api}/$' }
}
}
}
}
if [uri_params] and ![api] {
Expand Down

0 comments on commit d5f350a

Please sign in to comment.