Skip to content

Instantly share code, notes, and snippets.

View mulbc's full-sized avatar

Chris Blum mulbc

  • IBM
  • Berlin, Germany
  • 01:22 (UTC +02:00)
View GitHub Profile
@mulbc
mulbc / cosb_grafa_link.py
Created September 4, 2019 08:58
Cosbench misc parses
@mulbc
mulbc / vmware-odf-machineset
Last active May 18, 2022 10:46
Creates a machineset for ODF based on an existing machineset (only for VMWARE IPI)
#!/bin/bash
MACHINESET=$(oc get -n openshift-machine-api machinesets -o name | grep -v ocs | head -n1)
oc get -n openshift-machine-api "$MACHINESET" -o json | jq '
del( .metadata.uid, .metadata.managedFields, .metadata.selfLink, .metadata.resourceVersion, .metadata.creationTimestamp, .metadata.generation, .status) |
(.metadata.name, .spec.selector.matchLabels["machine.openshift.io/cluster-api-machineset"], .spec.template.metadata.labels["machine.openshift.io/cluster-api-machineset"]) |= sub("worker";"ocs") |
(.spec.template.spec.providerSpec.value.numCPUs) |= 16 |
@mulbc
mulbc / radosgw-exporter.service
Created September 4, 2019 08:50
RGW textfile collector
[Unit]
Description=Ceph RGW Prometheus Exporter
After=docker.service
[Service]
EnvironmentFile=-/etc/environment
ExecStart=/usr/local/bin/python3 /usr/bin/rgw_exporter.py
Restart=always
RestartSec=90s
TimeoutStartSec=300
@mulbc
mulbc / all.yml
Last active October 11, 2023 16:38
EBPF IO latency histogram with IO size buckets
kind: Namespace
apiVersion: v1
metadata:
name: ebpf-exporter
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: ebpf-exporter-robot
namespace: ebpf-exporter