Skip to content

Instantly share code, notes, and snippets.

View pavolloffay's full-sized avatar
🚀
Let's build something together!

Pavol Loffay pavolloffay

🚀
Let's build something together!
View GitHub Profile
[
{
"_id": "AWYWCtQZezvXAqIiUTRh",
"_type": "dashboard",
"_source": {
"title": "demo-dashboard",
"hits": 0,
"description": "",
"panelsJSON": "[{\"col\":1,\"id\":\"AWYWClB3ezvXAqIiUTQo\",\"panelIndex\":1,\"row\":1,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"},{\"col\":7,\"id\":\"AWYWC5A-ezvXAqIiUTSc\",\"panelIndex\":2,\"row\":4,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"},{\"size_x\":6,\"size_y\":3,\"panelIndex\":3,\"type\":\"visualization\",\"id\":\"AWYWDjk2ezvXAqIiUTWZ\",\"col\":1,\"row\":4},{\"size_x\":6,\"size_y\":3,\"panelIndex\":4,\"type\":\"visualization\",\"id\":\"AWYWEU_YezvXAqIiUTzQ\",\"col\":7,\"row\":1}]",
"optionsJSON": "{\"darkTheme\":false}",
@pavolloffay
pavolloffay / kiali.md
Created September 10, 2018 08:35
Kiali
JAEGER_URL=http://tracing-istio-system.`minishift ip`.nip.io
GRAFANA_URL="http://grafana-istio-system.`minishift ip`.nip.io"

cat kiali-configmap.yaml | VERSION_LABEL=v0.7.0 JAEGER_URL=http://tracing-istio-system.`minishift ip`.nip.io GRAFANA_URL="http://grafana-istio-system.`minishift ip`.nip.io" envsubst | oc create -n istio-system -f -
cat kiali-secrets.yaml | VERSION_LABEL=v0.7.0 envsubst | oc create -n istio-system  -f  - 
cat kiali.yaml | IMAGE_NAME=kiali/kiali IMAGE_VERSION=latest NAMESPACE=istio-system VERSION_LABEL=master VERBOSE_MODE=4  IMAGE_PULL_POLICY_TOKEN="imagePullPolicy: IfNotPresent" envsubst | oc create -n istio-system -f -
@pavolloffay
pavolloffay / devnation
Last active September 10, 2018 19:58
devnation
docker run --net=host --rm -it jaegertracing/all-in-one
java -jar target/preference.jar --spring.profiles.active=local
curl localhost:8180
Istio headers propagation
https://gist.github.com/pavolloffay/164e20c4f43abb24cbb6d1c35d4834d5
Advanced routing
istioctl create -f istiofiles/destination-rule-recommendation-v1-v2.yml -n tutorial
istioctl create -f istiofiles/virtual-service-recommendation-v1.yml -n tutorial
@pavolloffay
pavolloffay / ovirt-fedora
Last active July 3, 2018 13:02
ovirt-fedora
virt-builder centos-7.4 --root-password password:nolamavaio --size=15G --ssh-inject=root --format=qcow2 -o centos74.qcow2
sudo virt-install --import --disk centos74.qcow2 --memory 10000 --name oc-test --cpu core2duo,+x2apic,disable=vmx
Destroy
virsh destroy oc-test
virsh undefine oc-test --managed-save
Restart
virsh shutdown oc-test
virsh start oc-test
@pavolloffay
pavolloffay / installer-guidelines.md
Last active January 17, 2023 22:00
Guidelines for Jaeger installer on OpenShift
  1. download istiooc binary https://github.com/openshift-istio/origin/releases
  2. run ./istiooc_linux cluster up --istio=true

Change openshift-ansible and reflect changes in OC cluster

Build and tag the image brefore running oc cluster up so it can be consumed from local registry.

  1. build modified ansible image cd openshift-ansible && docker build -f images/installer/Dockerfile.istio -t openshiftistio/origin-ansible .
  2. remove/rename the old image docker rmi <sha>
  3. tag new image appropriately docker tag 17fece18c5ca openshiftistio/origin-ansible:<> the version is usually the same as istiooc
@pavolloffay
pavolloffay / installing-oh-my-zsh-fedora.md
Created February 13, 2018 14:13 — forked from jshcrowthe/installing-oh-my-zsh-fedora.md
Installing Oh My ZSH oh Fedora (2015 CIT 325 Image)

Installing oh-my-zsh on Fedora (for DB class images)

Oh-my-zsh is an extension of the traditional z shell that is extensible via community created plugins (Plugins found here: oh-my-zsh github repo). It is, in my opinion, a breath of fresh air in comparison to the traditional bash shell.

DO THE FOLLOWING IN ORDER

Installing ZSH (using yum)

The first step for this install is getting zsh we will do this via yum. From your terminal:

@pavolloffay
pavolloffay / Configuration.java
Created February 2, 2018 13:25
jaeger tracer bean
@Bean
public io.opentracing.Tracer jaegerTracer() {
Builder builder = new Builder("spring-boot",
new RemoteReporter(new HttpSender("http://jaeger-collector.istio-system:14268/api/traces"), 10,
65000, new Metrics(new StatsFactoryImpl(new NullStatsReporter()))),
new ConstSampler(true))
.registerInjector(Builtin.HTTP_HEADERS, new B3TextMapCodec())
.registerExtractor(Builtin.HTTP_HEADERS, new B3TextMapCodec());
return builder.build();
}
@pavolloffay
pavolloffay / Controller.java
Last active February 2, 2018 13:05
opentracing-istio-envoy
@RestController
public class HelloController {
@Autowired
private RestTemplate restTemplate;
@RequestMapping(value = "/hello")
public String hello() {
return "Hello from Spring Boot!";
}
@pavolloffay
pavolloffay / brewery.md
Last active September 1, 2017 13:34
brewery app
@pavolloffay
pavolloffay / Jaeger.md
Last active November 13, 2019 11:34
Jaeger.md

This readme describes how to configure Jaeger storages and various Jaeger services.

Cassandra

This section describes how to configure Jaeger with Cassandra storage

Run Cassandra with ccm

https://github.com/pcmanus/ccm

# create one node cassandra
ccm create test -v 3.11.0 -n 1 -s