Category Archives: Scripting/coding

Golang: writing an AWS Load Balancer logs collector for VictoriaLogs
5 (1)

6 December 2025

The next task I want to do with Golang is building a custom log collector that retrieves AWS Application Load Balancer logs from S3 and sends them to VictoriaLogs. Sure, we could simply use Vector.dev, like what I did for AWS VPC Flow Logs (see: Vector.dev introduction, logs from AWS S3, and VictoriaLogs integration). But… Read More: Golang: writing an AWS Load Balancer logs collector for VictoriaLogs5… »

Loading

Golang: interfaces – the “magic” of calling methods through interface
0 (0)

29 November 2025

Interfaces in Go allow you to describe access to data or behavior without providing concrete implementations inside the interface itself. In this way, we create a “common bus” that we can then use to “connect” external “systems.” In other words, an interface is an abstraction that defines a contract. The contract describes what can be… Read More: Golang: interfaces – the “magic” of calling methods through interface0… »

Loading

Golang: creating OpenAI Exporter for VictoriaMetrics
0 (0)

23 November 2025

Got a new task to monitor costs on OpenAI – to see how much each project spends per day, and send alerts to Slack if costs exceed a set threshold. I tried several existing exporters for the OpenAI API, but none provided cost metrics per project – so we’ll build one ourselves. To create the… Read More: Golang: creating OpenAI Exporter for VictoriaMetrics0 (0) »

Loading

Kubernetes: what are the Kubernetes Operator and CustomResourceDefinition
0 (0)

21 July 2025

Perhaps everyone has used operators in Kubernetes, for example, PostgreSQL operator, VictoriaMetrics Operator. But what’s going on under the hood? How and to what are CustomResourceDefinition (CRD) applied, and what is an “operator”? And finally, what is the difference between a Kubernetes Operator and a Kubernetes Controller? In the previous part – Kubernetes: Kubernetes APIs,… Read More: Kubernetes: what are the Kubernetes Operator and CustomResourceDefinition0 (0) »

Loading

TCP/IP: OSI and TCP/IP models, TCP packets, Linux sockets and ports
0 (0)

19 July 2025

It’s difficult to describe in one post what thousands of books have been written about in a thousand pages, but today we’ll try to quickly review the basics of how hosts communicate on a network. First, let’s talk about the OSI and TCP/IP models, then about packet structure and connection establishment, and finally, we’ll look… Read More: TCP/IP: OSI and TCP/IP models, TCP packets, Linux sockets and… »

Loading

AI: writing an MCP server for VictoriaLogs
0 (0)

22 May 2025

In the previous article, we figured out what an MCP is in general, and created a basic MCP server that was connected to Windsurf – see AI: What is the MCP? Now, let’s try to create something more useful, for example, an MCP server that will connect to VictoriaLogs and receive some data. In fact,… Read More: AI: writing an MCP server for VictoriaLogs0 (0) »

Loading

Python: introduction to the Celery, and its monitoring configurations
0 (0)

20 May 2025

To put it very simply, Celery is something we can use to perform tasks outside of our main service. For example, there is a Backend API that has some kind of endpoint to which mobile devices send information that the user has created a new whatever in the application. The task of the Backend is… Read More: Python: introduction to the Celery, and its monitoring configurations0 (0) »

Loading

Python: introduction to @decorators using FastAPI as an example
0 (0)

19 May 2025

The last time I’ve used decorators in Python about 10 years ago, in Python 2, and I want to refresh my memory a bit, because now I’ve started using them quite actively, so want to see how it works under the hood, and what it is in general. The post turned out a bit… weird?… Read More: Python: introduction to @decorators using FastAPI as an example0 (0) »

Loading

AWS: Lambda – copy EC2 tags to its EBS, part 1 – Python and boto3
0 (0)

13 October 2021

We have an AWS Elastic Kubernetes Service cluster, which has a few WorkerNode Groups that were created as AWS AutoScaling Groups by using the eksctl, see the AWS Elastic Kubernetes Service: a cluster creation automation, part 2 – Ansible, eksctl for more details. The WorkerNode Group configuration for the eksctl keeps a set of Tags,… Read More: AWS: Lambda – copy EC2 tags to its EBS, part… »

Loading