Actian Monitor > Using Actian Monitor > Metrics > Examples of Metric Producers, Metrics, and Attributes
Was this helpful?
Examples of Metric Producers, Metrics, and Attributes
Attributes filesystem and mounted associated with a metric:
- name: used
units: "{blocks}"
description: "Total blocks used"
type: long
regex: "^(?<filesystem>\\S+)\\s+\\d+\\s+(?<used>\\d+)\\s+\\d+\\s+\\S+\\s+(?<mounted>.*+)$"
attributes:
- filesystem
- mounted
A value-based metric producer with a command that is expected to return exactly one line with a single long or double value. Attributes are not supported.
- name: procstat
parse: value
refresh_rate: 15
command: "cat /proc/stat | grep processes | cut -f 2 -d ' '"
metrics:
- name: forks
units: "{processes}"
description: "Number of forks since boot"
type: long
This is a template-based metric producer which generates multiple metrics with values and attributes. The output is expected to be in a very simple format (csv or bs separated with one metric per line):
- name: vm
parse: template
refresh_rate: 15
command: "cat /proc/vmstat"
metrics:
- name: stat
units: "{number}"
description: "/proc/vmstat values"
type: long
template: "name stat"
attributes:
- name
Last modified date: 01/29/2026