f8ccabfcc5
The idea is to not re-emit cpu samples from the cpu_pipeline by default, but instead simplify the pipeline.yaml by allowing these original samples to be emitted by the general-purpose pipeline as before, thus avoiding unintended double-publication. Now only the derived samples would be emitted from the scaling or rate of change transformers. Change-Id: I12623181d289fc0ee3cdb6fcdbacf8e76e53d244
25 lines
505 B
YAML
25 lines
505 B
YAML
---
|
|
-
|
|
name: meter_pipeline
|
|
interval: 600
|
|
counters:
|
|
- "*"
|
|
transformers:
|
|
publishers:
|
|
- rpc://
|
|
-
|
|
name: cpu_pipeline
|
|
interval: 600
|
|
counters:
|
|
- "cpu"
|
|
transformers:
|
|
- name: "rate_of_change"
|
|
parameters:
|
|
target:
|
|
name: "cpu_util"
|
|
unit: "%"
|
|
type: "gauge"
|
|
scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
|
|
publishers:
|
|
- rpc://
|