How to config different peroid for different metricset of system module?


(水冗) #1

system module contains some useful metricset: cpu memory diskio network... but they share a single peroid configuration item, which means we are not able to use different frequency for different metricset.

is there any workaround? or is there any need to add support in future releases?


(Carlos Pérez Aradros) #2

Hi @PChou,

You can always instantiate the module several times, with different metricsets, actually, we ship exactly that in the defaults:

- module: system
  period: 10s
  metricsets:
    - cpu
    - load
    - memory
    - network
    - process
    - process_summary
    #- core
    #- diskio
    #- socket
  processes: ['.*']
  process.include_top_n:
    by_cpu: 5      # include top 5 processes by CPU
    by_memory: 5   # include top 5 processes by memory

- module: system
  period: 1m
  metricsets:
    - filesystem
    - fsstat

- module: system
  period: 15m
  metricsets:
    - uptime

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.