Imporve monitoring 2
This commit is contained in:
@@ -316,8 +316,8 @@ spec:
|
||||
#### Issue: No Metrics Appearing in SigNoz
|
||||
|
||||
**Checklist:**
|
||||
- ✅ OpenTelemetry Collector running? `kubectl get pods -n signoz`
|
||||
- ✅ Service can reach collector? `telnet signoz-otel-collector.signoz 4318`
|
||||
- ✅ OpenTelemetry Collector running? `kubectl get pods -n bakery-ia -l app.kubernetes.io/instance=signoz`
|
||||
- ✅ Service can reach collector? `telnet signoz-otel-collector.bakery-ia 4318`
|
||||
- ✅ OTLP endpoint configured correctly? Check `OTEL_EXPORTER_OTLP_ENDPOINT`
|
||||
- ✅ Service logs show OTLP export? Look for "Exporting metrics"
|
||||
- ✅ No network policies blocking? Check Kubernetes network policies
|
||||
@@ -325,13 +325,13 @@ spec:
|
||||
**Debugging:**
|
||||
```bash
|
||||
# Check OpenTelemetry Collector logs
|
||||
kubectl logs -n signoz -l app=otel-collector
|
||||
kubectl logs -n bakery-ia -l app=otel-collector
|
||||
|
||||
# Check service logs for OTLP errors
|
||||
kubectl logs -l app=auth-service | grep -i otel
|
||||
|
||||
# Test OTLP connectivity from service pod
|
||||
kubectl exec -it auth-service-pod -- curl -v http://signoz-otel-collector.signoz:4318
|
||||
kubectl exec -it auth-service-pod -- curl -v http://signoz-otel-collector.bakery-ia:4318
|
||||
```
|
||||
|
||||
#### Issue: High Latency in Specific Service
|
||||
@@ -442,7 +442,7 @@ class MyService(StandardFastAPIService):
|
||||
|
||||
```env
|
||||
# OpenTelemetry Collector endpoint
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT=http://signoz-otel-collector.signoz:4318
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT=http://signoz-otel-collector.bakery-ia:4318
|
||||
|
||||
# Service-specific configuration
|
||||
OTEL_SERVICE_NAME=auth-service
|
||||
@@ -473,7 +473,7 @@ spec:
|
||||
image: auth-service:latest
|
||||
env:
|
||||
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||
value: "http://signoz-otel-collector.signoz:4318"
|
||||
value: "http://signoz-otel-collector.bakery-ia:4318"
|
||||
- name: OTEL_SERVICE_NAME
|
||||
value: "auth-service"
|
||||
- name: ENVIRONMENT
|
||||
|
||||
Reference in New Issue
Block a user