Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rhildred/info8985_microservice_instrumentation

realized, that I hadn't tried signoz with k8
https://github.com/rhildred/info8985_microservice_instrumentation

Last synced: 12 days ago
JSON representation

realized, that I hadn't tried signoz with k8

Awesome Lists containing this project

README

        

# INFO8985 Microservice instrumentation
run kubernetes cluster with signoz and log, trace and meter to it from knative func

TLDR;

```bash
pip install -r requirements.txt
ansible-playbook playbook.yml

```

Run `kubectl get pods` to see that the pods are all running or completed. Then you need to forward the ports:

```bash
nohup kubectl port-forward svc/my-signoz-frontend 3301:3301 2>&1 &
nohup kubectl port-forward svc/my-signoz-otel-collector 4317:4317 2>&1 &
```

You can run app.py to see your metrics, logs and traces in signoz.

```bash
export OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
opentelemetry-instrument --logs_exporter otlp flask run -p 8080
```

All of the apps are reachable in your browser from the globe on the ports tab.

To delete the cluster (and start over):

```bash
k3d cluster delete local-k8s
```

Use this as a template and:

1. use [this article](https://knative.dev/docs/functions/install-func/) to install func. and create a python hello world.
2. use the example in app.py to instrument the code created with func
3. deploy the function on the cluster

Next week we will have a chance to understand the logging in signoz.