Skip to content

Instantly share code, notes, and snippets.

View Richard-Barrett's full-sized avatar
🏠
Working from home

Richard Barrett Richard-Barrett

🏠
Working from home
View GitHub Profile
- name: alert.rules
rules:
- alert: HAproxyMysqlClusterHTTPResponse5xx
expr: >-
rate(haproxy_http_response_5xx{sv="FRONTEND",proxy="mysql_cluster"}[1m]) > 1
for: 2m
labels:
route: "email,salesforce"
severity: "warning"
service: "haproxy/{{ $labels.proxy }}"
@Richard-Barrett
Richard-Barrett / mcp-collector.sh
Last active March 26, 2021 20:50
MCP Information Collection Script
#!/bin/bash
# ======================================================
# Author: Richard Barrett
# Date Created: 10/20/2020
# Organization: Mirantis
# Purpose: Initialize MCPInformation and SOSReport Coll.
# ======================================================
# Official documentation
# ==========================================================================================================================================================
@Richard-Barrett
Richard-Barrett / auto_mke_support_dump.sh
Last active February 22, 2021 15:14
auto_mke_support_dump.sh
#!/bin/bash
# ============================================
# Created by: Richard Barrett
# Date Created: 11/11/2020
# Purpose: MKE Auto Collector for Support Dump
# Company: Mirantis
# ============================================
#set -e
# keep track of the last executed command
@Richard-Barrett
Richard-Barrett / kube-collector.sh
Last active September 13, 2023 17:28
Kubernetes Information Collection Script
#!/bin/bash
# =============================================
# Created by: Richard Barrett
# Date Created: 02/27/2020
# Purpose: Kube Auto Collector for Support Dump
# Company: Mirantis
# =============================================
# Documentation:
# ========================================================================================
@Richard-Barrett
Richard-Barrett / auto-swarm-backup.sh
Created February 28, 2021 02:59
auto-swarm-backup.sh
#!/bin/bash
# ===================================================
# Created by: Richard Barrett
# Date Created: 09/11/2020
# Purpose: Automatc Local or Remote Backup for Swarm
# Company: Mirantis
# ===================================================
# Official documentation
# ======================================================================================================================
@Richard-Barrett
Richard-Barrett / auto_client_bundle_download.sh
Last active November 2, 2022 08:43
Download the MKE Client Bundle Automatically
#!/bin/bash
# =============================================
# Created by: Richard Barrett
# Date Created: 02/27/2020
# Purpose: Auto Client Bundle Download in CWD
# Company: Mirantis
# =============================================
# Documentation:
# ========================================================================================
@Richard-Barrett
Richard-Barrett / auto_interactive_mke_manager_cleanup.sh
Last active March 1, 2021 23:30
Automatic Interactive MKE Manager Cleanup
#!/bin/bash
# ===============================================
# Created by: Richard Barrett
# Date Created: 02/27/2020
# Purpose: Auto Interactive Manager Node Cleanup
# Company: Mirantis
# ===============================================
# Documentation:
# ============================================================================================================================================
@Richard-Barrett
Richard-Barrett / auto_interactive_mke_linux_worker_cleanup.sh
Last active March 1, 2021 23:31
Automatic Linux Worker MKE Node Cleanup Script
#!/bin/bash
# ===============================================
# Created by: Richard Barrett
# Date Created: 02/27/2020
# Purpose: Auto Interactive Worker Node Cleanup
# Company: Mirantis
# ===============================================
# Documentation:
# ============================================================================================================================================
#!/bin/bash
# =============================================
# Created by: Richard Barrett
# Date Created: 03/02/2020
# Purpose: OpenStack Info Collector
# Company: ITInfra
# =============================================
# Documentation:
# ========================================================================================

Keybase proof

I hereby claim:

  • I am richard-barrett on github.
  • I am richardbarrett (https://keybase.io/richardbarrett) on keybase.
  • I have a public key ASDJjyo4EC-WC9hgVeiWVzRU_FIpB-1WlCRtIl0q-xc3mAo

To claim this, I am signing this object: