This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This program parses the cosbench run-histpry CSV file and produces a HTML output | |
# with links to Grafana at scrolled to the time when the cosbench tests were executed | |
#!/usr/bin/env python | |
import csv | |
import datetime | |
import sys | |
with open(sys.argv[0]) as csv_file: | |
csv_reader = csv.reader(csv_file, delimiter=',') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Namespace | |
apiVersion: v1 | |
metadata: | |
name: ebpf-exporter | |
--- | |
kind: ServiceAccount | |
apiVersion: v1 | |
metadata: | |
name: ebpf-exporter-robot | |
namespace: ebpf-exporter |
OlderNewer