Skip to content

Commit

Permalink
add the application types for Ceph & Rook components
Browse files Browse the repository at this point in the history
  • Loading branch information
def committed Mar 28, 2022
1 parent 21b6fa2 commit 6588864
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion containers/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
}

0 comments on commit 6588864

Please sign in to comment.