Skip to content

Commit

Permalink
feat: fixes tracing of data
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Sep 10, 2023
1 parent 61ad319 commit 2b11c86
Show file tree
Hide file tree
Showing 2 changed files with 159 additions and 8 deletions.
4 changes: 2 additions & 2 deletions api-gateway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ spring:
maxBackoff: 500ms
- name: RequestRateLimiter
args:
redis-rate-limiter.replenishRate: 10
redis-rate-limiter.burstCapacity: 20
redis-rate-limiter.replenishRate: 60
redis-rate-limiter.burstCapacity: 10
- id: inventory-service
predicates:
- Path=/inventory-service/**
Expand Down
163 changes: 157 additions & 6 deletions docker/grafana/dashboards/logs_traces_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"x": 0,
"y": 0
},
"id": 7,
"id": 11,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": true,
"showCommonLabels": true,
"showLabels": true,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": true
Expand All @@ -56,12 +56,12 @@
"uid": "loki-micro-service"
},
"editorMode": "builder",
"expr": "{container=\"api-gateway\"} |= ``",
"expr": "{container=\"payment-service\"} |= ``",
"queryType": "range",
"refId": "A"
}
],
"title": "API-GATEWAY-LOGS",
"title": "PAYMENT-SERVICE-LOGS",
"transparent": true,
"type": "logs"
},
Expand Down Expand Up @@ -102,6 +102,157 @@
"title": "CATALOG-SERVICE-LOGS",
"type": "logs"
},
{
"datasource": {
"type": "loki",
"uid": "loki-micro-service"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 10,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": true,
"showCommonLabels": true,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": true
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki-micro-service"
},
"editorMode": "builder",
"expr": "{container=\"order-service\"} |= ``",
"queryType": "range",
"refId": "A"
}
],
"title": "ORDER-SERVICE-LOGS",
"transparent": true,
"type": "logs"
},
{
"datasource": {
"type": "loki",
"uid": "loki-micro-service"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 8
},
"id": 7,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": true,
"showCommonLabels": true,
"showLabels": true,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": true
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki-micro-service"
},
"editorMode": "builder",
"expr": "{container=\"api-gateway\"} |= ``",
"queryType": "range",
"refId": "A"
}
],
"title": "API-GATEWAY-LOGS",
"transparent": true,
"type": "logs"
},
{
"datasource": {
"type": "loki",
"uid": "loki-micro-service"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
},
"id": 9,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": true,
"showCommonLabels": true,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": true
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki-micro-service"
},
"editorMode": "builder",
"expr": "{container=\"inventory-service\"} |= ``",
"queryType": "range",
"refId": "A"
}
],
"title": "INVENTORY-SERVICE-LOGS",
"type": "logs"
},
{
"datasource": {
"type": "loki",
"uid": "loki-micro-service"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 16
},
"id": 12,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": true,
"showCommonLabels": true,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": true
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki-micro-service"
},
"editorMode": "builder",
"expr": "{container=\"config-server\"} |= ``",
"queryType": "range",
"refId": "A"
}
],
"title": "CONFIG-SERVER-LOGS",
"transparent": true,
"type": "logs"
},
{
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -165,7 +316,7 @@
"h": 10,
"w": 23,
"x": 0,
"y": 8
"y": 24
},
"id": 4,
"options": {
Expand Down Expand Up @@ -224,7 +375,7 @@
"type": "timeseries"
}
],
"refresh": "5s",
"refresh": "auto",
"schemaVersion": 38,
"style": "dark",
"tags": [],
Expand Down

0 comments on commit 2b11c86

Please sign in to comment.