Below is a step-by-step tutorial to help you get started with OpenTelemetry in Go for collecting metrics, plus best practices for deploying in Kubernetes. 1. What is OpenTelemetry? OpenTelemetry is an open-source…
Category: DevOps
Other great resources
How Prometheus scrap works, and how to find the target node and get the metrics files
Below is an overview of how Prometheus scraping works, how Prometheus discovers (“finds”) targets in Kubernetes or other environments, and how it retrieves metrics from those targets. 1. Prometheus Scraping Fundamentals Example…
How to collect metrics of container, pods, node and cluster in k8s?
Below is a detailed overview of how to collect metrics at different layers in a Kubernetes cluster—covering container-level, pod-level, node-level, and overall cluster-level metrics. We’ll focus on the most common, open-source approaches,…
LeetCode 347 – Top K Frequent Elements
Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. Example 1: Input: nums = [1,1,1,2,2,3], k = 2,…
Leetcode 112 – Path Sum
Problem: Leetcode 112 – Path Sum Description: Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all…
Leetcode 199 – Binary Tree Right Side View
Problem: Leetcode 199 – Binary Tree Right Side View Description: Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes…
Leetcode 17 – Letter Combinations of a Phone Number
Description: Given a string containing digits from 2 to 9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. A mapping of digit to…
Setup multiple SSH Keys to different github accounts
Setting up multiple SSH keys for different GitHub accounts on the same machine is useful if you manage multiple GitHub accounts, such as a personal account and a work account. Here are…
System Design – Components&Concepts
Scalability Scalability refers to the ability of a system, network, or process to handle a growing amount of work or its potential to be enlarged in order to accommodate that growth. In…
System Design – Booking/Reservation System
Overview of the Ticket Booking System Event Data Schema Creating a data schema for a ticket selling or reservation system requires a thoughtful approach to handle events, venues, tickets, customers, and reservations….