Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nhatthaiquang-agilityio/net6-azure-opentelemetry

Using Azure Monitor for logging and tracing
https://github.com/nhatthaiquang-agilityio/net6-azure-opentelemetry

azure-monitor k8s logging opentelemetry opentelemetry-collector terraform tracing

Last synced: 17 days ago
JSON representation

Using Azure Monitor for logging and tracing

Awesome Lists containing this project

README

        

# Azure Monitor OpenTelemetry
+ Using OpenTelemetry Collector and send logs to Azure Monitor on local

## Goals
+ Integrate OpenTelemetry for tracing and metrics between services
+ Azure Monitor

### Usage docker-compose.yml file
+ Using otel collector for collection and sending logging. Otel Collector will be sent the logging to the Azure Monitor.
+ Add instrumentation_key into otel-collector-config.yml
+ Run on local
```
docker-compose up
```

### Minikube: send directly log to the Azure Monitor
+ Replace AzureServiceBus and IntrumentionKey in devops/k8s/*.yml file
+ Run services on Minikube
```
kubectl apply -f order-api.yml
kubectl apply -f worker-service.yml
kubectl apply -f ingress-minikube.yml
```

+ Expose Order API

```
minikube service --url order-api
```

### Results
+ ![Overview Monitor](./images/overview-monitor.png)
+ ![Application Map](./images/application-map.png)
+ ![Logs](./images/monitor-logs.png)

### References
---------------
+ [OpenTelemetry Collector and Azure Monitor](https://purple.telstra.com/blog/dotnet--opentelemetry-collector--and-azure-monitor)
+ [Open Telemetry and Azure Monitor Trace Explorer](https://tech.playgokids.com/open-telemetry-azure-monitor-trace-exporter/)