Skip to content

Commit

Permalink
fix: bugfixes and performance improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Jul 18, 2024
1 parent 153efbd commit 41ab33e
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
spegel:
appendMirrors: true
containerdSock: /run/containerd/containerd.sock
containerdRegistryConfigPath: /etc/cri/conf.d/hosts
service:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ spec:
retries: 3
values:
fullnameOverride: blackbox-exporter
pspEnabled: false
ingress:
enabled: true
annotations:
external-dns.alpha.kubernetes.io/target: internal.devbu.io
className: internal
hosts:
- host: blackbox-exporter.devbu.io
paths:
- path: /
pathType: Prefix
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
add: ["NET_RAW"]
config:
modules:
http_2xx:
Expand All @@ -32,22 +48,22 @@ spec:
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2.0"]
follow_redirects: true
preferred_ip_protocol: ip4
preferred_ip_protocol: ipv4
icmp:
prober: icmp
timeout: 30s
timeout: 5s
icmp:
preferred_ip_protocol: ip4
ingress:
preferred_ip_protocol: ipv4
tcp_connect:
prober: tcp
timeout: 5s
tcp:
preferred_ip_protocol: ipv4
serviceMonitor:
enabled: true
annotations:
external-dns.alpha.kubernetes.io/target: internal.devbu.io
className: internal
hosts:
- host: blackbox-exporter.devbu.io
paths:
- path: /
pathType: Prefix
defaults:
interval: 1m
scrapeTimeout: 10s
prometheusRule:
enabled: true
rules:
Expand All @@ -59,28 +75,3 @@ spec:
annotations:
summary: |-
The host {{ $labels.target }} is currently unreachable
pspEnabled: false
securityContext:
capabilities:
add: ["NET_RAW"]
podSecurityContext:
sysctls:
- name: net.ipv4.ping_group_range
value: "0 2147483647"
serviceMonitor:
enabled: true
defaults:
interval: 1m
targets:
- { name: &name expanse.internal, module: icmp, url: *name }
- { name: &name garage-door.internal, module: icmp, url: *name }
- { name: &name hdhomerun.internal, module: icmp, url: *name }
- { name: &name idrac.internal, module: icmp, url: *name }
- { name: &name kiosk.internal, module: icmp, url: *name }
- { name: &name kvm.internal, module: icmp, url: *name }
- { name: &name pikvm.internal, module: icmp, url: *name }
- { name: &name receiver.internal, module: icmp, url: *name }
- { name: &name ups.internal, module: icmp, url: *name }
- { name: &name vacuum.internal, module: icmp, url: *name }
- { name: &name zigbee-controller.internal, module: icmp, url: *name }
- { name: &name zwave-controller.internal, module: icmp, url: *name }
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ./probes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/monitoring.coreos.com/probe_v1.json
---
kind: Probe
apiVersion: monitoring.coreos.com/v1
metadata:
name: devices
spec:
module: icmp
prober:
url: blackbox-exporter.observability.svc.cluster.local:9115
targets:
staticConfig:
static:
- expanse.internal
- garage-door.internal
- hdhomerun.internal
- idrac.internal
- kiosk.internal
- kvm.internal
- pikvm.internal
- receiver.internal
- ups.internal
- vacuum.internal
- zigbee-controller.internal
- zwave-controller.internal

0 comments on commit 41ab33e

Please sign in to comment.