Skip to content

Commit 2e749e9

Browse files
authored
Merge pull request #177 from coroot/app_types_coroot
application types: add Coroot
2 parents 96a31bf + 50caf2c commit 2e749e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

containers/app.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ func guessApplicationType(cmdline []byte) string {
1818
}
1919
cmd := bytes.TrimSuffix(bytes.Fields(parts[0])[0], []byte{':'})
2020
switch {
21+
case bytes.HasSuffix(cmd, []byte("coroot")):
22+
return "coroot-community-edition"
23+
case bytes.HasSuffix(cmd, []byte("coroot-ee")):
24+
return "coroot-enterprise-edition"
25+
case bytes.HasSuffix(cmd, []byte("coroot-node-agent")):
26+
return "coroot-node-agent"
27+
case bytes.HasSuffix(cmd, []byte("coroot-cluster-agent")):
28+
return "coroot-cluster-agent"
29+
case bytes.HasSuffix(cmd, []byte("coroot-operator")):
30+
return "coroot-operator"
2131
case bytes.HasSuffix(cmd, []byte("memcached")):
2232
return "memcached"
2333
case bytes.HasSuffix(cmd, []byte("envoy")):

0 commit comments

Comments
 (0)