Skip to content

Instantly share code, notes, and snippets.

View jsirianni's full-sized avatar

Joseph Sirianni jsirianni

  • observIQ, Inc
  • Grand Rapids Michigan
View GitHub Profile
@jsirianni
jsirianni / migrate.sh
Created April 8, 2024 18:44
Export bindplane resources
#!/bin/bash
set -e
if [ "$EUID" -ne 0 ]
then echo "Please run as root or with sudo"
exit
fi
usage() {
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) ) )
apiVersion: v1
kind: Service
metadata:
labels:
app: postgres
name: postgres
spec:
ports:
- port: 5432
protocol: TCP
#!/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 \
@jsirianni
jsirianni / gist:4c16c50eb39e010d4b64a3c0fb205c4f
Created January 18, 2024 15:47
BindPlane without migrations
mode:
- "all"
- "-migrate"
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: observiq-otel-collector
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
# 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
#!/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
#!/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
#
receivers:
iis:
collection_interval: 30s
hostmetrics:
collection_interval: 30s
scrapers:
cpu:
disk:
load: