Skip to content

Instantly share code, notes, and snippets.

:octocat:

Pavol Loffay pavolloffay

:octocat:
Block or report user

Report or block pavolloffay

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 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 Dec 12, 2018
Guidelines for Jaeger installer on OpenShift
View installer-guidelines.md
  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 Feb 13, 2018 — forked from jshcrowthe/installing-oh-my-zsh-fedora.md
Installing Oh My ZSH oh Fedora (2015 CIT 325 Image)
View installing-oh-my-zsh-fedora.md

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:

View Configuration.java
@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 Feb 2, 2018
opentracing-istio-envoy
View Controller.java
@RestController
public class HelloController {
@Autowired
private RestTemplate restTemplate;
@RequestMapping(value = "/hello")
public String hello() {
return "Hello from Spring Boot!";
}
View brewery.md
View 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
@pavolloffay
pavolloffay / kubernetes
Last active Oct 4, 2019
kubernetes, gcloud, minikube
View kubernetes
minikube start --vm=kvm
minikube stop
minikube delete
minikube service jaeger-all-in-one
# Google Cloud
gcloud auth application-default login
gcloud auth activate-service-account --key-file client-secret.json
gcloud auth revoke
gcloud projects list
View Hawkular APM
target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/bin/standalone.sh --debug -Dkeycloak.import=target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/standalone/configuration/hawkular-realm-for-dev.json -Djboss.socket.binding.port-offset=100 -Dkeycloak.server.url=http://localhost:8180/auth
# jdoe:password
dist/target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/bin/standalone.sh --debug -Djboss.socket.binding.port-offset=100
source ~/projects/hawkular/hawkular-btm/dist/target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/btm/setenv.sh
export BTM_AGENT_JAR_PATH=/home/pavol/projects/hawkular/hawkular-btm/dist/target/hawkular-btm-dist-0.8.1.Final-SNAPSHOT/btm/hawkular-btm-agent-rest.jar
export JAVA_OPTS="-javaagent:$BTM_AGENT_JAR_PATH \
You can’t perform that action at this time.