Skip to content

Instantly share code, notes, and snippets.

View denisgolius's full-sized avatar
🇺🇦

Denys Holius denisgolius

🇺🇦
View GitHub Profile
@denisgolius
denisgolius / local-path-storage.yml
Created September 28, 2022 19:49
vcmluster-with-local-storage
apiVersion: v1
kind: Namespace
metadata:
name: local-path-storage
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: local-path-provisioner-service-account
@denisgolius
denisgolius / PostgreSQL-EXTENSIONs.md
Created February 11, 2022 07:57 — forked from joelonsql/PostgreSQL-EXTENSIONs.md
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

@denisgolius
denisgolius / install-victoriametrics-single-ubuntu.sh
Last active April 5, 2025 17:25
install VicotriaMetrics Single on ubuntu 20.04
#!/bin/bash
set -e
system_set_hostname "$HOSTNAME"
apt update && apt upgrade -y && apt install -y curl wget net-tools traceroute jq
# Generate files
mkdir -p /etc/victoriametrics/single
mkdir -p /var/lib/victoria-metrics-data
user nginx;
worker_processes auto;
worker_rlimit_nofile 10000;
pid /var/run/nginx.pid;
events {
worker_connections 4000;
multi_accept on;
use epoll;
}
@denisgolius
denisgolius / gist:1bb389bf95547f2b7912444a557b9b23
Created September 14, 2021 10:10
run grafana from docker-compose
version: '3.9'
services:
grafana:
container_name: grafana
image: grafana/grafana:8.1.2
ports:
- 3000:3000
volumes:
- grafanadata:/var/lib/grafana
restart: always
@denisgolius
denisgolius / install_node_exporter.sh
Last active May 15, 2025 18:46
install node_exporter on ubuntu as a systemd service
export VER=1.9.1
useradd -M -r -s /bin/false node_exporter && \
wget https://github.com/prometheus/node_exporter/releases/download/v$VER/node_exporter-$VER.linux-amd64.tar.gz && \
tar xvfz node_exporter-*.*-amd64.tar.gz && \
chmod +x node_exporter-$VER.linux-amd64/node_exporter && \
cp node_exporter-$VER.linux-amd64/node_exporter /usr/local/bin/ && \
touch /etc/systemd/system/node_exporter.service && \
cat> /etc/systemd/system/node_exporter.service <<EOF
[Unit]
[root@fedora default]# dnf update
Copr repo for VictoriaMetrics owned by antonpatsev 13 kB/s | 9.2 kB 00:00
Fedora 34 - x86_64 8.5 MB/s | 74 MB 00:08
Fedora 34 openh264 (From Cisco) - x86_64 1.9 kB/s | 2.5 kB 00:01
Fedora Modular 34 - x86_64 2.5 MB/s | 4.9 MB 00:01
Fedora 34 - x86_64 - Updates 6.8 MB/s | 26 MB 00:03
Fedora Modular 34 - x86_64 - Updates 3.2 MB/s | 4.6 MB 00:01
Dependencies resolved.
Nothing to do.
Complete!
# Default values for victoria-metrics.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
rbac:
create: true
pspEnabled: true
namespaced: false
extraLabels: {}
# annotations: {}
replicaCount: 1
# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
deployment:
enabled: true
# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
strategy: {}
# rollingUpdate:
# maxSurge: 25%
@denisgolius
denisgolius / docker-compose.yaml
Created June 18, 2021 06:08
VictoriaMetrics cluster with 2 vmstorages
version: '3.5'
services:
vmagent:
container_name: vmagent
image: victoriametrics/vmagent
depends_on:
- "vminsert"
ports:
- 8429:8429
volumes: