Skip to content

Commit e052089

Browse files
committed
[PLAT-14774] Per process tserver metrics is not working if YSQL is disabled
Summary: Fixed pid list calculation for tserver whithout postgres subprocess Test Plan: - Create universe without YSQL - Verify node metrics are collected Reviewers: amalyshev Reviewed By: amalyshev Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D36890
1 parent 3040472 commit e052089

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

managed/src/main/resources/health/node_health.py.template

+3-2
Original file line numberDiff line numberDiff line change
@@ -1733,8 +1733,9 @@ class NodeChecker():
17331733
pid_list.append(root_pid)
17341734
if process_name == TSERVER:
17351735
postgre_pid = self.get_process_pid_by_name(POSTMASTER)
1736-
pid_list.remove(postgre_pid)
1737-
pid_list = [p for p in pid_list if p not in self._get_subprocess_pids(postgre_pid)]
1736+
if postgre_pid is not None:
1737+
pid_list.remove(postgre_pid)
1738+
pid_list = [p for p in pid_list if p not in self._get_subprocess_pids(postgre_pid)]
17381739
total_stat = self._get_empty_proc_results()
17391740
prev_process_map = {}
17401741
if process_name in self.prev_process_results.keys():

0 commit comments

Comments
 (0)