This file contains hidden or 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
#!/usr/bin/env bash | |
# run script like "bash prometheus-metrics_dump.sh" | |
# Based on Red Hat solution https://access.redhat.com/solutions/5482971 | |
function queue() { | |
local TARGET="${1}" | |
shift | |
local LIVE | |
LIVE="$(jobs | wc -l)" | |
while [[ "${LIVE}" -ge 45 ]]; do |
This file contains hidden or 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 | |
echo "Switching to openshift-logging project" | |
oc project openshift-logging | |
echo | |
echo "### Pods ###" | |
oc get pods -owide|grep elasticsearch-c | |
echo |
This file contains hidden or 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
Du hast Dich bis dato nicht gegen Corona impfen lassen? | |
Du hältst Dich und speziell Dein Immunsystem für Corona fit? | |
Du bist der Meinung, dass Deine Immunabwehr mit dem Virus leicht fertig wird? | |
Du hältst die "Panik" um die Gefährlichkeit von Corona für übertrieben? | |
Du hältst die Maßnahmen für übertrieben? | |
Du würdest gerne wieder auf Urlaub fliegen? Raus in die weite Welt? | |
Dann erzähle ich Dir jetzt mal etwas über das Fliegen und die PilotInnen, denen Du Dein Leben anvertraust. | |
Du weißt das wahrscheinlich schon. Weil das ist ja eigentlich eh selbstverständlich und auch gut, dass es so ist wie es ist. | |
PilotInnen von Passagierflugzeugen müssen immer wieder ein Training im Simulator absolvieren. Nicht nur in ihrer Ausbildung, sondern auch während ihrer ganzen Laufbahn. Und da gibt es auch keinen Unterschied zwischen dem jungen Copiloten oder der erfahrenen Kapitänin. Jeder! Laufend! |
This file contains hidden or 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 | |
echo "Switching to Logging project" | |
oc project openshift-logging | |
echo | |
echo | |
# fetch one ELA pod to run queries against | |
es_pod=$(oc get pod --selector=component=elasticsearch --no-headers -o jsonpath='{range .items[?(@.status.phase=="Running")]}{.metadata.name}{"\n"}{end}' | head -n1) |