Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rhildred/info8985_microservice_instrumentation
- Owner: rhildred
- License: mit
- Created: 2024-10-31T17:03:34.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-01T16:53:09.000Z (2 months ago)
- Last Synced: 2024-11-01T17:31:42.256Z (2 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# INFO8985 Microservice instrumentation
run kubernetes cluster with signoz and log, trace and meter to it from knative funcTLDR;
```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 clusterNext week we will have a chance to understand the logging in signoz.