Tolok ukur Prometheus vs VictoriaMetrics pada metrik node_exporter

Untuk calon siswa dari kursus "Praktik dan Alat DevOps" kami menyiapkan terjemahan materi yang menarik.



Kami juga mengundang semua orang untuk berpartisipasi dalam
webinar terbuka “Prometheus: Quick Start”. Selama pelajaran, peserta akan mempertimbangkan arsitektur Prometheus dan cara kerjanya dengan metrik, serta cara menghasilkan peringatan dan peristiwa di sistem.






Baru-baru ini VictoriaMetrics memperkenalkan kemampuan untuk membatalkan target Prometheus . Dan sekarang kita dapat membandingkan apel dengan apel: berapa banyak sumber daya yang digunakan oleh Prometheus dan VictoriaMetrics saat mengumpulkan dalam jumlah besar node_exporter



.





Pengaturan benchmark

Pengujian dilakukan di Google Compute Engine pada empat mesin (contoh):





  • node exporter v1.0.1 . e2-standard-4 : 4 vCPU, 16 RAM, 1 HDD. , node_exporter



    . Prometheus VictoriaMetrics node_exporter



    . node_exporter



    nginx . node_exporter



    , .





  • e2-highmem-4 Prometheus v2.22.2 VictoriaMetrics v1.47.0 : 4 vCPU, 32 RAM, 1 . VictoriaMetrics, Prometheus , (-promscrape.config = prometheus.yml



    VictoriaMetrics -config.file = prometheus.yml



    Prometheus). prometheus.yml



    Jinja2:





global:
  scrape_interval: 10s
scrape_configs:
  - job_name: node_exporter
    static_configs:
{% for n in range(3400) %}
      - targets: ['host-node-{{n}}:9100']
        labels:
          host_number: cfg_{{n}}
          role: node-exporter
          env: prod
{% endfor %}
      
      



host-node-{{n}}



node_exporter



. /etc/hosts



. 3400 node_exporter



.





  • e2-standard-2 VictoriaMetrics Prometheus. VictoriaMetrics , node_exporter



    VictoriaMetrics Prometheus. .





node_exporter



:





  • node_exporter



    — , Prometheus.





  • node_exporter



    ( , , -, . .), Prometheus .





VictoriaMetrics, Prometheus nodeexporter . 24 . 





VictoriaMetrics Prometheus :





  • (ingestion rate): 280 . / .





  • (active time series): 2,8





  • (samples scraped and stored): 24,5





:





Penggunaan ruang disk.
.

Prometheus 15 , VictoriaMetrics — . VictoriaMetrics 4 . :





  • VictoriaMetrics: 7,2 . 0,3 (7,2 / 24,5 ).





  • Prometheus: 52,3 (32,3 + 18 WAL). 52,3 / 24,5 = 2,1 . , Prometheus 7 (2,1 / 0,3) .





-:





Disk I / O: Byte yang ditulis per detik.
-: , .
Disk I / O: Byte dibaca per detik.
-: , .

, Prometheus 95 / , VictoriaMetrics 15 /.





:





Penggunaan CPU, inti vCPU.
CPU, vCPU.
  • 3400 node_exporter



    1,5–1,75 vCPU. , vCPU   4000 node_exporter



    .





  • . VictoriaMetrics , OOM (out of memory



    ) Prometheus. ( ) VictoriaMetrics .





:





Penggunaan memori RSS.
RSS-.

VictoriaMetrics 4,3 RSS-, Prometheus 6,5 14 23 . OOM , Kubernetes Prometheus. , 32 , . , Prometheus , , - OOM, .





, Prometheus 5,3 (23 / 4,3 ) , VictoriaMetrics.





Prometheus, VictoriaMetrics vCPU. , InfluxDB TimescaleDB.





VictoriaMetrics 5 7 Prometheus node_exporter



. .





P.S. VictoriaMetrics, . VictoriaMetrics ( ). , .






«DevOps ».



«Prometheus: ».








All Articles