Skip to content

Commit

Permalink
Change load label and add processes chart (#12711)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubad786 authored Dec 12, 2023
1 parent d6828ed commit 1a7701b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/middlewared/middlewared/plugins/reporting/netdata/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class LoadPlugin(GraphBase):

title = 'System Load Average'
uses_identifiers = False
vertical_label = 'Processes'
vertical_label = 'Load'

LOAD_MAPPING = {
'load1': 'shortterm',
Expand All @@ -118,6 +118,16 @@ def normalize_metrics(self, metrics) -> dict:
return metrics


class ProcessesPlugin(GraphBase):

title = 'System Active Processes'
uses_identifiers = False
vertical_label = 'Processes'

def get_chart_name(self, identifier: typing.Optional[str] = None) -> str:
return 'system.active_processes'


class MemoryPlugin(GraphBase):

title = 'Physical memory utilization'
Expand Down

0 comments on commit 1a7701b

Please sign in to comment.