Test deploy input cpu
Wyniki ręcznych testów
Podstawowy input
konfiguracja telegrafa:
telegraf_inputs:
- name: "cpu"
type: "cpu"
telegraf_outputs:
- name: "test-cpu"
type: "file"
data_format: "json"
output w pliku:
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":100,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0,"usage_user":0},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666865215}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.43181818181816,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0.2840909090909198,"usage_user":0.2840909090909198},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666865226}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.71153846153872,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0.09615384615382723,"usage_user":0.19230769230765446},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666865236}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.99999999999969,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0,"usage_user":0},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666865245}
collect_cpu_time: yes
opcja konfiguracja telegrafa:
telegraf_inputs:
- name: "cpu"
type: "cpu"
collect_cpu_time: yes
telegraf_outputs:
- name: "test-cpu"
type: "file"
data_format: "json"
output w pliku:
{"fields":{"time_guest":0,"time_guest_nice":0,"time_idle":846.75,"time_iowait":4.06,"time_irq":0,"time_nice":0,"time_softirq":0.48,"time_steal":0.02,"time_system":31.9,"time_user":88.79},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666865918}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.84350547730844,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0.0782472613458375,"usage_user":0.07824726134589309},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666865918}
{"fields":{"time_guest":0,"time_guest_nice":0,"time_idle":852.07,"time_iowait":4.06,"time_irq":0,"time_nice":0,"time_softirq":0.48,"time_steal":0.02,"time_system":31.9,"time_user":88.79},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666865923}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":100,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0,"usage_user":0},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666865923}
collect_per_cpu: yes
opcja konfiguracja telegrafa:
telegraf_inputs:
- name: "cpu"
type: "cpu"
collect_per_cpu: yes
telegraf_outputs:
- name: "test-cpu"
type: "file"
data_format: "json"
output w pliku:
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.85795454545467,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0,"usage_user":0.14204545454552336},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666866416}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.85795454545467,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0,"usage_user":0.14204545454552336},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666866416}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.90310077519389,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0,"usage_user":0.09689922480625172},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666866427}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.90310077519389,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0,"usage_user":0.09689922480625172},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666866427}
collect_cpu_time: yes
z collect_per_cpu: yes
opcje konfiguracja telegrafa:
telegraf_inputs:
- name: "cpu"
type: "cpu"
collect_cpu_time: yes
collect_per_cpu: yes
telegraf_outputs:
- name: "test-cpu"
type: "file"
data_format: "json"
output w pliku:
{"fields":{"time_guest":0,"time_guest_nice":0,"time_idle":950.84,"time_iowait":4.23,"time_irq":0,"time_nice":0,"time_softirq":0.51,"time_steal":0.03,"time_system":33.42,"time_user":88.53},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666866046}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":96.3080168776369,"usage_iowait":0.10548523206751746,"usage_irq":0,"usage_nice":0,"usage_softirq":0.10548523206751044,"usage_steal":0,"usage_system":2.742616033755323,"usage_user":0.7383966244726504},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666866046}
{"fields":{"time_guest":0,"time_guest_nice":0,"time_idle":950.84,"time_iowait":4.23,"time_irq":0,"time_nice":0,"time_softirq":0.51,"time_steal":0.03,"time_system":33.42,"time_user":88.53},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666866046}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":96.3080168776369,"usage_iowait":0.10548523206751746,"usage_irq":0,"usage_nice":0,"usage_softirq":0.10548523206751044,"usage_steal":0,"usage_system":2.742616033755323,"usage_user":0.7383966244726504},"name":"cpu","tags":{"cpu":"cpu-total","host":"test"},"timestamp":1666866046}
collect_total_cpu: no
opcja konfiguracja telegrafa:
telegraf_inputs:
- name: "cpu"
type: "cpu"
collect_total_cpu: no
telegraf_outputs:
- name: "test-cpu"
type: "file"
data_format: "json"
output w pliku: brak outputu
collect_total_cpu: no
z collect_cpu_time: yes
opcje konfiguracja telegrafa:
telegraf_inputs:
- name: "cpu"
type: "cpu"
collect_total_cpu: no
telegraf_outputs:
- name: "test-cpu"
type: "file"
data_format: "json"
output w pliku: brak outputu
collect_total_cpu: no
z collect_per_cpu: yes
opcje konfiguracja telegrafa:
telegraf_inputs:
- name: "cpu"
type: "cpu"
collect_total_cpu: no
collect_per_cpu: yes
telegraf_outputs:
- name: "test-cpu"
type: "file"
data_format: "json"
output w pliku:
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":100,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0,"usage_user":0},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666867674}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.8472116119172,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0.07639419404126462,"usage_user":0.07639419404129176},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666867687}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.18144611186939,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0,"usage_user":0.8185538881310014},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666867694}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":97.61015683345785,"usage_iowait":0.07468259895444873,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":1.792382374906637,"usage_user":0.5227781926810549},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666867708}
collect_total_cpu: no
, collect_per_cpu: yes
z collect_cpu_time: yes
opcje konfiguracja telegrafa:
telegraf_inputs:
- name: "cpu"
type: "cpu"
collect_total_cpu: no
collect_per_cpu: yes
collect_cpu_time: yes
telegraf_outputs:
- name: "test-cpu"
type: "file"
data_format: "json"
output w pliku:
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":97.40150880134108,"usage_iowait":0.08382229673092859,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":2.0955574182732595,"usage_user":0.4191114836546281},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666867585}
{"fields":{"time_guest":0,"time_guest_nice":0,"time_idle":83.09,"time_iowait":5.49,"time_irq":0,"time_nice":0,"time_softirq":0.43,"time_steal":0.15,"time_system":26.56,"time_user":85.43},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666867596}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":97.62131303520444,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0.9514747859181512,"usage_user":1.427212178877311},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666867596}
{"fields":{"time_guest":0,"time_guest_nice":0,"time_idle":92.67,"time_iowait":5.49,"time_irq":0,"time_nice":0,"time_softirq":0.43,"time_steal":0.15,"time_system":26.57,"time_user":85.47},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666867605}
{"fields":{"usage_guest":0,"usage_guest_nice":0,"usage_idle":99.48078920041569,"usage_iowait":0,"usage_irq":0,"usage_nice":0,"usage_softirq":0,"usage_steal":0,"usage_system":0.10384215991694286,"usage_user":0.4153686396676239},"name":"cpu","tags":{"cpu":"cpu0","host":"test"},"timestamp":1666867605}
Edited by Michal Konstantynowicz