From 50caf2cd894e76620f5c1e25266de347b1f0b36c Mon Sep 17 00:00:00 2001 From: Anton Petruhin Date: Wed, 12 Feb 2025 12:54:33 +0400 Subject: [PATCH] application types: add Coroot --- containers/app.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/containers/app.go b/containers/app.go index 4b76b99..3353361 100644 --- a/containers/app.go +++ b/containers/app.go @@ -18,6 +18,16 @@ func guessApplicationType(cmdline []byte) string { } cmd := bytes.TrimSuffix(bytes.Fields(parts[0])[0], []byte{':'}) switch { + case bytes.HasSuffix(cmd, []byte("coroot")): + return "coroot-community-edition" + case bytes.HasSuffix(cmd, []byte("coroot-ee")): + return "coroot-enterprise-edition" + case bytes.HasSuffix(cmd, []byte("coroot-node-agent")): + return "coroot-node-agent" + case bytes.HasSuffix(cmd, []byte("coroot-cluster-agent")): + return "coroot-cluster-agent" + case bytes.HasSuffix(cmd, []byte("coroot-operator")): + return "coroot-operator" case bytes.HasSuffix(cmd, []byte("memcached")): return "memcached" case bytes.HasSuffix(cmd, []byte("envoy")):