Author: nim
[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: with metrics: my_metric_http{status_code=200, cluster=nim] 100my_metric_http{status_code=500, cluster=nim] 100k8s_metric_memory{container=web, cluster=nim] 100…
[DevSecOps] Mutation testing
Look into Mutation testing. Mutation testing is a type of software testing where certain statements in the source code are changed (or “mutated”) to determine if the test cases can detect the changes. The idea is to ensure that the test suite is robust and can catch defects in the code. Here’s a basic overview…
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” »
[Python] Look into FastAPI to contribute backend by Python
1) Define Function in Python. Sau đây chúng ta define 1 function trong python. Trong đoạn mã Python trên, hàm my_func có một đối số có tên là my_var có kiểu dữ liệu được ghi là str | None. Đây là kiểu gợi ý cho Python biết đối số my_var có thể là một chuỗi…
Read More “[Python] Look into FastAPI to contribute backend by Python” »
[DevSecOps] Engines for Pentesters
“Which search engines do Pentesters use during the information gathering phase❓” Today I have a great resource suggestion where you can find the answer to this question❗️🌝 You should definitely add it to your bookmarks.🤞🏻🌸
[DevSecOps] Use CrowdSec to detect the malicious behaviors in your system.
CrowdSec là một giải pháp mã nguồn mở được thiết kế để bảo vệ máy chủ và ứng dụng của bạn khỏi các cuộc tấn công độc hại. Nó hoạt động dựa trên cơ chế phát hiện và cấm IP dựa trên hành vi độc hại và sau đó chia sẻ các địa chỉ IP…
Read More “[DevSecOps] Use CrowdSec to detect the malicious behaviors in your system.” »
[Windows Docker] How to run the Windows Container on Local.
Your Docker host is configured to run Linux containers inside of a VM. To run Windows containers, you need to right click on the Docker icon in the system tray, and select “Switch to Windows containers…” in the Docker menu. This option is not available in “Home” versions of Windows. Documentation is available here.
[coroot] Metrics, logs, and traces by Coroot
Coroot is an open-source eBPF-based observability tool that turns telemetry data into actionable insights, helping you identify and resolve application issues quickly. You can look into the Coroot at: https://github.com/coroot/coroot
[ArgoCD] Failed to wait for service account secret: timed out waiting for the condition
Nếu bạn gặp lỗi: FATA[0033] Failed to wait for service account secret: timed out waiting for the condition Đây là cách giải quết:https://github.com/argoproj/argo-cd/issues/9422 Just want to share my (hacky) work around on this. With that, to fix this by the ‘short term solution’, we may need to not only create a service account token Secret,…