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
      • Pod
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • DevSecOps
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log, Monitor & Tracing
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

Category: Prometheus

[Prometheus] filter or allowlist metrics before sending to the remote storage via remote_write in Prometheus

Posted on September 14, 2023 By nim No Comments on [Prometheus] filter or allowlist metrics before sending to the remote storage via remote_write in Prometheus
[Prometheus] filter or allowlist metrics before sending to the remote storage via remote_write in Prometheus

There are a few options to filter or allowlist metrics before they are sent to the remote storage via remote_write in Prometheus: 1. Use metric relabeling You can configure relabelling rules on the remote_write config to filter or transform metrics before they are sent. For example: This would only keep metrics matching the regex ^my_metric_.*…

Read More “[Prometheus] filter or allowlist metrics before sending to the remote storage via remote_write in Prometheus” »

Prometheus

How to join labels of 2 different metrics on PromQL

Posted on September 8, 2023 By nim No Comments on How to join labels of 2 different metrics on PromQL
How to join labels of 2 different metrics on PromQL

Look into the situation Đầu tiên chúng ta có 2 metric labels như sau: Metrics and Labels: Look into kube_pod_container_info metrics. With kube_pod_container_info Look into windows_container_cpu_usage_seconds_kernelmode windows_container_cpu_usage_seconds_kernelmode thì có container_id, nhưng lại không có namespace, pod, container==> Bằng mắt: thì chúng ta không thể nào nhận biết được CPU usage này của container nào. Từ…

Read More “How to join labels of 2 different metrics on PromQL” »

Prometheus

[Kubernetes] Monitor Persistent Volume usage in Kubernetes using Prometheus

Posted on August 7, 2023August 9, 2023 By nim No Comments on [Kubernetes] Monitor Persistent Volume usage in Kubernetes using Prometheus
[Kubernetes] Monitor Persistent Volume usage in Kubernetes using Prometheus

Hôm nay thì mình muốn monitor usage của pv https://github.com/antonputra/tutorials/tree/main/lessons/134 What is the kubelet Yes, I know about the kubelet in Kubernetes (k8s). The kubelet is the primary “node agent” that runs on each node in a Kubernetes cluster. It can register the node with the apiserver using one of several methods: the hostname, a…

Read More “[Kubernetes] Monitor Persistent Volume usage in Kubernetes using Prometheus” »

Prometheus

[Monitoring] How to monitor EBS on AWS via Prometheus

Posted on July 11, 2023July 18, 2023 By nim No Comments on [Monitoring] How to monitor EBS on AWS via Prometheus
[Monitoring] How to monitor EBS on AWS via Prometheus

Như các bạn cũng đã biết thì Prometheus không thể collect trực tiếp metrics của Cloudwatch. Mình sẽ cài 1 thằng là cloudwatch-exporter để collect metrics.Bạn có thể sử dụng bài viết bên dưới Look into the helpful metrics. Bài này mình sẽ tập trung nhiều vào việc là tìm ra các metrics có ích…

Read More “[Monitoring] How to monitor EBS on AWS via Prometheus” »

AWS - Amazon Web Service, Prometheus

[DataDog] How does DataDog collect metrics from the Prometheus exporter endpoint

Posted on April 5, 2023July 10, 2023 By nim No Comments on [DataDog] How does DataDog collect metrics from the Prometheus exporter endpoint
[DataDog] How does DataDog collect metrics from the Prometheus exporter endpoint

1) Introduce the design architecture Mô hình bạn có thể thấy như hình bên dưới. Thì mình dùng datadog agent trên k8s để collect metrics của cloudwatchNhưng mà datadog agent không để đọc trực tiếp vào Cloudwatch nên mình sẽ sử dụng 1 opensource của prometheus là prometheus cloudwatch exporter để get metrics từ cloud…

Read More “[DataDog] How does DataDog collect metrics from the Prometheus exporter endpoint” »

DataDog, Prometheus

[Promethues] Install Prometheus Operator on Kubernetes.

Posted on April 2, 2023August 29, 2023 By nim No Comments on [Promethues] Install Prometheus Operator on Kubernetes.
[Promethues] Install Prometheus Operator on Kubernetes.

1) the preparing before install Prometheus Operator Đầu tiên thì bạn cần cài đặt trước các CustomResourceDefinition REPO URL: https://prometheus-community.github.io/helm-chartsCHART: prometheus-operator-crds:2.0.0 We need to press the sync button I am sure that you also have a problem with prometheuses.monitoring.coreos.comThis message: “CustomResourceDefinition.apiextensions.k8s.io “prometheuses.monitoring.coreos.com” is invalid: metadata.annotations: Too long: must have at most 262144 bytes“ Don’t be…

Read More “[Promethues] Install Prometheus Operator on Kubernetes.” »

Prometheus

[windows-exporter] Monitor the windows Kubernetes.

Posted on April 2, 2023 By nim No Comments on [windows-exporter] Monitor the windows Kubernetes.
[windows-exporter] Monitor the windows Kubernetes.

Hiện tại thì mỉnh sử dụng windows-exporter để monitor windows k8s.https://github.com/prometheus-community/windows_exporter Để integrate với windows_exporter thì bạn nên cài trước prometheus_operator. Mình đang test trên eks 1.24 1) Install the component of windows exporter. https://github.com/prometheus-community/windows_exporter/blob/master/kubernetes/windows-exporter-daemonset.yaml Lúc này thì trên prometheus-operator đang nhận được metrics của windows-exporter. https://grafana.com/grafana/dashboards/17264-windows-exporter-for-prometheus-dashboard-en-v20221026/ Hiện tại mình chỉ thấy là nó monitor…

Read More “[windows-exporter] Monitor the windows Kubernetes.” »

Prometheus

[Prometheus/Grafana] Install Prometheus and Grafana on ubuntu.

Posted on March 27, 2023 By nim No Comments on [Prometheus/Grafana] Install Prometheus and Grafana on ubuntu.
[Prometheus/Grafana] Install Prometheus and Grafana on ubuntu.

Sau đó bạn download chương trình Prometheus về để chạy. Việc download khá đơn giản, bạn chỉ cần truy cập link sau : https://prometheus.io/download/ Giải nén file package Prometheus vừa download. Tạo user để chạy dịch vụ Prometheus. Tạo thư mục cấu hình và data cho Prometheus. Sau đó phân quyền owner tương ứng. Copy…

Read More “[Prometheus/Grafana] Install Prometheus and Grafana on ubuntu.” »

BareMetal, Grafana, Prometheus

[OpenVPN] How do you monitor Your OpenVPN-Server via Prometheus and Grafana

Posted on March 29, 2022March 30, 2022 By nim No Comments on [OpenVPN] How do you monitor Your OpenVPN-Server via Prometheus and Grafana
[OpenVPN] How do you monitor Your OpenVPN-Server via Prometheus and Grafana

Sau bao ngày chạy Openvpn thì cuồi cùng đã monitor được https://kifarunix.com/monitor-openvpn-connections-with-prometheus-and-grafana/ 1) Install Golang 1.1) Raspberry (chipset armvX) 1.2) Ubuntu (not chipset armvX) 2) Download openvpn_exporter and config Bạn nhớ kiểm tra file log status của bạn ở đâu nhé GIờ tiến hành build file. The suggestion of @Burak Serdar to re-install Go fixed…

Read More “[OpenVPN] How do you monitor Your OpenVPN-Server via Prometheus and Grafana” »

Grafana, Log, Monitor & Tracing, Prometheus

[Node exporter] Install node_exporter on Linux by a script file!

Posted on January 27, 2022January 27, 2022 By nim No Comments on [Node exporter] Install node_exporter on Linux by a script file!
[Node exporter] Install node_exporter on Linux by a script file!

https://github.com/prometheus/node_exporter/releasesBạn vào link trên để theo dõi các bạn release mới nhất: File bên có thể bỏ vào file .sh và chạy thực hiện check port:netstat -ntlp xong vào file prometheus.yaml sửa file config thứ hiện reload prometheusMình cài prometheus nên mình reload theo kiểu các bạn cũng chưa thấy.

BareMetal, Prometheus

Posts navigation

1 2 Next
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

  • [Terraform / EKS] Build EKS and Karpenter by Terraform. September 22, 2023
  • [EKS] Adjusting things to migrate EKS legacy to new versions. September 19, 2023
  • [Tetragon] Security Observability and Runtime Enforcement September 17, 2023
  • [Docker] Setup Docker for Windows Containers (NO Docker Desktop Needed!) September 15, 2023
  • [Python] Python connects MongoDB September 15, 2023

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • 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
    • NextCloud
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • DevSecOps
    • 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
    • Kong Gateway
    • Kubernetes
      • Ingress
      • Pod
    • Longhorn – Storage
    • MetalLB
    • Vault
    • VictoriaMetrics
  • Log, Monitor & Tracing
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Fluent
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2023 NimTechnology.