From 658886465fcd5bb03f195352439f8f9d1969cf3e Mon Sep 17 00:00:00 2001 From: Nikolay Sivko Date: Mon, 28 Mar 2022 11:42:15 +0300 Subject: [PATCH] add the application types for Ceph & Rook components --- containers/app.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/containers/app.go b/containers/app.go index 741f640..9d2fe35 100644 --- a/containers/app.go +++ b/containers/app.go @@ -74,7 +74,14 @@ func guessApplicationType(cmdline []byte) string { return "cockroach" case bytes.HasSuffix(cmd, []byte("prometheus")): return "prometheus" + case bytes.HasSuffix(cmd, []byte("ceph-mon")) || + bytes.HasSuffix(cmd, []byte("ceph-mgr")) || + bytes.HasSuffix(cmd, []byte("ceph-osd")) || + bytes.HasSuffix(cmd, []byte("cephcsi")): + return "ceph" + case bytes.HasSuffix(cmd, []byte("rook")): + return "rook" } - //todo: ceph services, php-fpm, python, nodejs, java + //todo: php-fpm, python, nodejs, java return "" }