Libp2p is one of most commonly used libraries across web3 infrasture. It exposes several metrics compatible with Prometheus.
The official github repo has Grafana dashboard json for a quick start.
Libp2p is one of most commonly used libraries across web3 infrasture. It exposes several metrics compatible with Prometheus.
The official github repo has Grafana dashboard json for a quick start.
#!/bin/bash | |
ip neigh show dev wlan0 |
sudo raspi-config nonint do_blanking 0
sudo loginctl enable-linger $(whoami)
sudo setterm -powerdown 0
and sudo setterm -powersave off
# Using this composer in the machines that a specific app runs which opens the port for prometheus | |
# Using promtail collect logs and publish to external loki | |
version: '3.8' | |
networks: | |
monitoring: | |
driver: bridge | |
services: | |
cadvisor: |
Downloading a tar.gz file and extracting it after the download completes might consume a lot of disk space and time.
It is possible to write tar.gz
file directly as input to tar
command and untar it to directory directly from remote url.
wget -qO- your_link_here | tar -xvz -C /target/directory
# Create the folder to mount drive
sudo mkdir /mnt/storage
# Set user/group perms to write
chown -R pi:pi /mnt/storage
# find the driver properties
sudo blkid
sudo sysctl -w kern.maxfiles=75000 | |
sudo sysctl -w kern.maxfilesperproc=75000 | |
ulimit -S -n 75000 |
FROM golang:1.13 as build | |
WORKDIR /app | |
COPY go.mod go.sum ./ | |
RUN GO111MODULE=on go mod download | |
COPY . . | |
RUN CGO_ENABLED=0 go build -v |
package stack | |
type Stack struct { | |
*node | |
} | |
type node struct { | |
value string | |
next *node | |
} |