Category Archives: Administration

DataDog: use events in dashboards

Using events as datasource is pretty straightforward, and described here — To use it as a graph overlay (for instance, to show app deployments), you can edit your graph, Event Overlays, and add something like below:

Fixing docker does not want to update images

If you run docker pull, and you see an error like failed to register layer: Error processing tar file(exit status 2): fatal error: runtime: out of memory, there could be 2 reasons. Obvious one — not enough disk space for docker. You can fix it with

WARNING: It will remove your unused resources like …

Read more

How to add and increase swap on CentOS

Adding a swap file without reboot If you are having a dedicated server somewhere with not that much memory, you could decide to add a swap without rebooting your server. To do so, you need to follow the routine:

Increasing a swap size If something goes wrong with your system, and you see that …

Read more

How to install multiple versions of go on mac m1

For instance, I want to try a new beta, go1.18beta2 (I check if it’s available on the download page). And I already have a regular go1.17, that I want to use as a default one. To do so, I need to do this:

Then I can check if it’s okay — go1.18beta2 version #go …

Read more

Create SQS queues on localstack container start

Put this file to your filesystem as ←→:

For instance, ./localstack_bootstrap/ Don’t forget to run chmod +x ./localstack_bootstrap/ Add this line to your docker-compose.yml: — ./localstack_bootstrap:/docker-entrypoint-initaws.d/. So it could look like this:

Then your queues can be reached by URLs http://localhost:4566/000000000000/queue1 and http://localhost:4566/000000000000/queue2. Further reading:

Parental control for Linux Mint

Time limiter with UI — Timekpr ( Domain blocker — Mintnanny (, too simple.

Using tcpdump for k8s pods

You need wireshark to be installed on your local machine — download (more on this below). If you don’t have tcpdump installed inside the pod, you can install it with

Then, on your local machine:

If you want to see packets in grpc/http2, you can add a rule in Wireshark. For this, click …

Read more

Forward multiple kubernetes pods for local development

kubefwd is a great tool that can forward a lot of pods at once to your local machine. The only downside for me is that it touches your local /etc/hosts. That’s how I use it:

It does not have huge documentation, but it is written in golang, and you can check how the source …

Read more

Using DataDog on your CentOs Or, if you want a dockerized version of DataDog agent, and you want to listen to docker logs, you can do this:

More info here — Then you will see your logs here —

Add all lines from a .env file to environment



to output to stdout

prepend running a command (did not try it, but something similar):