# CONFIGURED BY ANSIBLE monitoring: port: 16300 status: port: 16301 routes: - input: plugin: linux_metrics config: poll_period: 5s proc_directory: "/proc" sys_directory: "/sys" resources: cpu: basic # need cpu_total for load averages memory: basic # ram usage network: null storage: basic # disk usage io: null kernel: basic # load averages namespace: sys channel: pipe: - filter: plugin: filter_metrics config: match: "{name=*memory*MemAvailable|*memory*MemTotal|*memory*SwapTotal|*memory*SwapFree|*proc*LoadAverage*min|*cpu*CpuCores|*filesystem*}" - filter: plugin: transform_metric_labels config: labels: - instance: {{inventory_hostname}} - host: {{inventory_hostname}} - resource_type: vm - resource_id: {{inventory_hostname}} output: plugin: yc_metrics config: url: https://monitoring.api.cloud.yandex.net/monitoring/v2/data/write folder_id: {{folder_id}} iam: cloud_meta: {} retry_count: 5 retry_delay: 1s timeout: 10s request_timeout: 1s