mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-14 10:13:10 +02:00
526b815f47
* Add metric instrumentation to example * Add prometheus configs * Add prometheus kubernetes configs * Correct Prometheus config files * Tweak prometheus configs * Change instrument to Counter * Elaborate example README * Polish submission * Correct otel config * Tweak details * Update licensing text * Modify licensing text * Fix typos Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
42 lines
2.4 KiB
Makefile
42 lines
2.4 KiB
Makefile
namespace-k8s:
|
|
kubectl apply -f k8s/namespace.yaml
|
|
|
|
jaeger-operator-k8s:
|
|
# Create the jaeger operator and necessary artifacts in ns observability
|
|
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/crds/jaegertracing.io_jaegers_crd.yaml
|
|
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/service_account.yaml
|
|
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role.yaml
|
|
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role_binding.yaml
|
|
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/operator.yaml
|
|
|
|
# Create the cluster role & bindings
|
|
kubectl create -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/cluster_role.yaml
|
|
kubectl create -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/cluster_role_binding.yaml
|
|
|
|
jaeger-k8s:
|
|
kubectl apply -f k8s/jaeger.yaml
|
|
|
|
prometheus-k8s:
|
|
kubectl apply -f k8s/prometheus-service.yaml # Prometheus instance
|
|
kubectl apply -f k8s/prometheus-monitor.yaml # Service monitor
|
|
|
|
otel-collector-k8s:
|
|
kubectl apply -f k8s/otel-collector.yaml
|
|
|
|
clean-k8s:
|
|
- kubectl delete -f k8s/otel-collector.yaml
|
|
|
|
- kubectl delete -f k8s/prometheus-monitor.yaml
|
|
- kubectl delete -f k8s/prometheus-service.yaml
|
|
|
|
- kubectl delete -f k8s/jaeger.yaml
|
|
|
|
- kubectl delete -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/cluster_role.yaml
|
|
- kubectl delete -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/cluster_role_binding.yaml
|
|
|
|
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/crds/jaegertracing.io_jaegers_crd.yaml
|
|
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/service_account.yaml
|
|
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role.yaml
|
|
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role_binding.yaml
|
|
- kubectl delete -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/operator.yaml
|