Skip to content

Instantly share code, notes, and snippets.

View csibbitt's full-sized avatar

Chris Sibbitt csibbitt

  • Red Hat, Inc
  • Ottawa, Canada
View GitHub Profile
[
{
"id": 1,
"orgId": 1,
"name": "OCPPrometheus",
"type": "prometheus",
"typeLogoUrl": "public/app/plugins/datasource/prometheus/img/prometheus_logo.svg",
"access": "proxy",
"url": "https://prometheus-k8s.openshift-monitoring.svc:9091",
"password": "",
apiVersion: interconnectedcloud.github.io/v1alpha1
kind: Qdr
metadata:
name: qdr-white
namespace: sa-telemetry
spec:
addresses:
- distribution: closest
prefix: closest
- distribution: multicast
[root@compute-0 ~]# docker exec metrics_qdr cat /etc/qpid-dispatch/qdrouterd.conf
##
## Licensed to the Apache Software Foundation (ASF) under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. The ASF licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this file except in compliance
## with the License. You may obtain a copy of the License at
##
[root@compute-0 etc]# cat collectd.conf collectd.d/*
# Generated by Puppet
#Hostname localhost
FQDNLookup true
AutoLoadPlugin false
#BaseDir "/var/lib/collectd"
#PluginDir "/usr/lib/collectd"
TypesDB "/usr/share/collectd/types.db"
apiVersion: interconnectedcloud.github.io/v1alpha1
kind: Interconnect
metadata:
name: 'saf-default-blue-interconnect'
namespace: 'sa-telemetry'
spec:
deploymentPlan:
size: 2
role: interior
livenessPort: 8888
apiVersion: interconnectedcloud.github.io/v1alpha1
kind: Interconnect
metadata:
name: qdr-test
spec:
deploymentPlan:
role: interior
size: 1
placement: Any
addresses:
apiVersion: smartgateway.infra.watch/v2alpha1
kind: SmartGateway
metadata:
name: saf-default-blue-telemetry
namespace: sa-telemetry
spec:
amqp_url: saf-default-blue-interconnect.sa-telemetry.svc.cluster.local:5672/collectd/telemetry
container_image_path: quay.io/redhat-service-assurance/smart-gateway:latest
debug: "true"
prefetch: 15000
apiVersion: interconnectedcloud.github.io/v1alpha1
kind: Interconnect
metadata:
name: 'saf-default-tq-interconnect'
namespace: 'sa-telemetry'
spec:
deploymentPlan:
size: 4
role: interior
livenessPort: 8888
#!/bin/bash
done=false
while [ "${done}" = "false" ]; do
unlabeled_pods=$(oc get pod -o json -l application=saf-default-tq-interconnect | jq -r ".items[] as \$p | \$p.metadata.labels | select(has(\"saf-ha-leg\") | not) | \$p.metadata.name")
echo "unlabeled pods: ${unlabeled_pods}"
if [ -z "${unlabeled_pods}" ]; then done=true; break; fi
apiVersion: v1
kind: Service
metadata:
labels:
application: saf-default-interconnect
interconnect_cr: saf-default-interconnect
name: saf-default-blue-interconnect
namespace: sa-telemetry
spec:
ports: