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
#!/usr/bin/env python3 | |
import subprocess | |
import json | |
def run_command(command, timeout=4): | |
try: | |
result = subprocess.run(command, capture_output=True, text=True, timeout=timeout) | |
return json.loads(result.stdout) | |
except subprocess.TimeoutExpired: |
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 | |
set -e | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root or with sudo" | |
exit | |
fi | |
usage() { |
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
resource.type="k8s_container" | |
jsonPayload.data.url="/health" | |
jsonPayload.data.status=200 | |
( ( trace:* sample(trace, 1.0) ) OR | |
( NOT trace:* operation.id:* sample(operation.id, 1.0) ) OR | |
( NOT trace:* NOT operation.id:* sample(insertId, 1.0) ) ) |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: postgres | |
name: postgres | |
spec: | |
ports: | |
- port: 5432 | |
protocol: TCP |
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
#!/usr/bin/env bash | |
set -e | |
mkdir tls-ca | |
step certificate create \ | |
ca.c.bpcli-dev.internal \ | |
tls-ca/ca.crt tls-ca/ca.key \ | |
--profile root-ca \ |
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
mode: | |
- "all" | |
- "-migrate" |
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
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: observiq-otel-collector | |
namespace: default | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: |
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
# Deploy BindPlane OP and a single collector for proof of concept. | |
# This configuration is not intended for collectors outside of the docker environment. | |
version: "3.9" | |
services: | |
collector: | |
hostname: collector | |
restart: always | |
image: observiq/observiq-otel-collector:1.13.0 | |
environment: | |
- OPAMP_ENDPOINT=ws://bindplane:3001/v1/opamp |
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
#!/usr/bin/env bash | |
set -e | |
curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm | |
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm | |
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libcap1-1.10-7.el7.x86_64.rpm | |
yum localinstall compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm -y | |
yum localinstall compat-libcap1-1.10-7.el7.x86_64.rpm -y |
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 | |
# Copyright (c) 2020-2021 VMware, Inc. All rights reserved. | |
# VMware Confidential | |
# | |
# Run this from the affected PSC/VC | |
# | |
# NOTE: This works on external and embedded PSCs | |
# This script will do the following | |
# 1: Regenerate STS certificate | |
# |
NewerOlder