Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log & Monitor
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
  • Toggle search form

[Grafana/Prometheus] Design chart for bucket metrics to Grafana

Posted on November 8, 2021November 11, 2021 By nim No Comments on [Grafana/Prometheus] Design chart for bucket metrics to Grafana

Một ngày dẹp trời thì bạn được sếp quang cho 1 metrics và kêu vẽ chart trên grafana.
OK => pilot_xds_push_time_bucket
bạn để ý là nó có đuôi là bucket và data của metric có trường le.

Contents

  • 1) research
  • 2) Design Grafana chart

1) research

  • Histogram: Thực chất là một biểu đồ tích lũy, Histogram tạo bộ đếm cho số lượng sự kiện, bộ đếm cho tổng sự kiện và bộ đếm cho mỗi bucket. Buckets sẽ đếm xem các giá trị bé hoặc lớn hơn giá trị của bucket (trong Prometheus thường là bé hơn “le” )
    • Có thể tính toán percentitles từ histogram bằng function histogram_quantile

Links: https://prometheus-book.netlify.app/documentation/

pilot_xds_push_time_bucket – Total time in seconds Pilot takes to push lds, rds, cds and eds.

2) Design Grafana chart

Câu query trên grafana sẽ là như sau
histogram_quantile(0.5, sum(rate(pilot_xds_push_time_bucket[1m])) by (le))

Anh em để ý đây là time_bucket và nó tình theo seconds.
Câu query ở trên sẽ là 50% pilot_xds_push thì mất “xxx” giây hay
pilot_xds_push là “xxx” giây thì chiếm 50%
nghe rối vãi.

Lăn xuống tiếp.
Nhìn hình là hiểu hihi
How does a Prometheus Histogram work?
Link tham đọc để hiểu hơn
Grafana, Prometheus

Post navigation

Previous Post: [spinnaker/Github] Login spinnaker through github
Next Post: [Jenkins] Share Libraries 1: Global Function

More Related Articles

[Node exporter] Install node_exporter on MacOS BareMetal
[Prometheus/Istio] Research about Recording Rules in Prometheus and reduce metrics of istio cluster. Isito-EnvoyFilter
[Prometheus] Prometheus to use monitoring k8s Prometheus
[Prometheus] Relabelling – Custom “__name__” to your mind Prometheus
[VictoriaMetrics/Grafana/Prometheus/Kiali] VictoriaMetrics is a fast, cost-effective and scalable time series database Grafana
[Prometheus] Relabelling – Đưa thông tin từ Discovered Label sang target label Log & Monitor

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Smartctl] Instruction check the health disk of Raspberry. January 16, 2023
  • [kubectl/Argocd] How to create a kubectl config file for serviceaccount or from the cluster secret of Argocd January 12, 2023
  • [Helm/Github] Create a public Helm chart repository with GitHub Pages January 8, 2023
  • [AWS] How to increase the disk size of a Windows EC2 machine? January 4, 2023
  • [Redis] ElastiCache-Redis Cross-Region Replication|Global DataStore January 3, 2023

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • Golang
    • Jquery & JavaScript
    • Laravel
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kubernetes
      • Ingress
    • Longhorn – Storage
    • Vault
    • VictoriaMetrics
  • Log & Monitor
    • ELK
      • Kibana
      • Logstash
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2023 NimTechnology.