Skip to content

Instantly share code, notes, and snippets.

View langerma's full-sized avatar
🔥
Working from home

DataPoints langerma

🔥
Working from home
View GitHub Profile
@langerma
langerma / alloy.yaml
Created March 4, 2026 07:09
a custom app for grafana alloy that i use on truenas scale
configs:
alloy_config:
content: |
// ===== SYSTEM METRICS EXPORT =====
prometheus.exporter.unix "integrations_node_exporter" {
procfs_path = "/host/proc"
sysfs_path = "/host/sys"
include_exporter_metrics = true
enable_collectors = ["systemd"]
disable_collectors = ["mdadm"]
@langerma
langerma / smartctl-exporter.yaml
Created March 4, 2026 07:06
a custom app for smartctl-exporter that i use on truenas scale
services:
smartctl-exporter:
environment:
NVIDIA_VISIBLE_DEVICES: void
TZ: Europe/Vienna
group_add:
- 568
image: prometheuscommunity/smartctl-exporter:latest
network_mode: host
platform: linux/amd64
@langerma
langerma / README.md
Created February 27, 2025 13:04 — forked from usrbinkat/README.md
TuringPi2 RK1 Build Journal

Turing Pi 2 + 4x RK1 32GB Kubevirt Cluster

In this gist we will attempt to capture the prominent steps in building an RK1 TPI2 Talos K8s Cluster for use with the github.com/ContainerCraft/Kargo kubevirt platform.

Info

If you try this and achieve success imaging your RK1 compute modules with the un-merged talos rk1 fork please report your success on this rfe issue: github.com/siderolabs/talos/issues/8187

Update Turing Pi 2 BMC Firmware

@langerma
langerma / epaper.yaml
Created August 10, 2023 18:19
esphome epaper display
globals:
- id: forecast_nums
type: std::vector<int>
- id: notification_nums
type: std::vector<int>
- id: data_updated
type: bool
restore_value: no
initial_value: 'false'
- id: initial_data_received
@langerma
langerma / kafkaui.nomad.hcl
Created April 4, 2023 10:41
deploy kafka-ui on nomad
job "kafkaui" {
datacenters = ["yourdc"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "kafkaui" {
constraint {
attribute = "${attr.cpu.arch}"
value = "arm64"
@langerma
langerma / kafka.nomad.hcl
Created April 4, 2023 09:57
deploy kafka kraft cluster with nomad
job "kafka" {
datacenters = ["yourdatacenter"]
type = "service"
update {
stagger = "5s"
max_parallel = 3
}
group "kafka" {
# There can only be a single job definition per file.
# Create a job with ID and Name 'example'
job "postgres" {
datacenters = ["hetzner"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
update {
job "zookeeper" {
datacenters = ["hetzner"]
type = "service"
#update {
# max_parallel = 1
#}
job "druid" {
datacenters = ["hetzner"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
update {
stagger = "10s"
max_parallel = 1
@langerma
langerma / haproxy-ingress.hcl
Created July 26, 2022 07:57 — forked from hynek/haproxy-ingress.hcl
nomad job for HAProxy ingress
job "ingress" {
region = "global"
datacenters = ["home"]
type = "service"
constraint {
attribute = "${meta.proxy_type}"
value = "internal"
}