Add process id and reference glob pattern matching

For the API endpoint /v3/process two new query parameter are introduced
in order to list only processes that match a pattern for the id and the
reference: idpattern and refpattern. The pattern is a glob pattern. If
patterns for both are given, the results will be intersected. If you use
other query parameters such as id or reference, they will be applied
after the result of the pattern matching.
This commit is contained in:
Ingo Oppermann
2022-08-17 07:55:44 +03:00
parent 11c3fce812
commit 3e7b1751d5
47 changed files with 3057 additions and 29 deletions

View File

@@ -57,7 +57,7 @@ func (c *restreamCollector) Collect() metric.Metrics {
"starting": 0,
}
ids := c.r.GetProcessIDs()
ids := c.r.GetProcessIDs("", "")
for _, id := range ids {
state, _ := c.r.GetProcessState(id)