-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5949e61
commit 5a981d9
Showing
26 changed files
with
5,489 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Observability | ||
|
||
OpenTelemetry observability stack with Grafana | ||
- OpenTelemetry Collector - Receive telemetry data from SDK | ||
- Grafana - Dashboard | ||
- Grafana Loki - Logs | ||
- Grafana Tempo - Traces | ||
- Prometheus - Metrics | ||
|
||
## Signal Paths | ||
Traces: `App -> Collector -> Temp -> Grafana` | ||
|
||
Metrics: `App -> Collector -> Prometheus -> Grafana` | ||
|
||
Logs: `App -> Logger -> Loki -> Grafana` | ||
|
||
|
||
## Usage | ||
|
||
Start the service | ||
``` | ||
docker compose up -d | ||
``` | ||
|
||
Open Grafana | ||
http://localhost:9000 | ||
``` | ||
username: admin | ||
password: admin | ||
``` | ||
|
||
Data sources for Loki, Tempo and Prometheus are auto-configured. | ||
|
||
Tempo is set up be able to navigate to Loki logs using a trace id. | ||
|
||
## Endpoints | ||
| Service | Host | | ||
|-------------------|:------------------------------------| | ||
| Grafana Dashboard | http://localhost:9000 | | ||
| OTel Collector | http://localhost:55679/debug/tracez | | ||
| Prometheues | http://localhost:9090 | | ||
| App Metrics | http://localhost:8889/metrics | | ||
| Loki | http://localhost:9100 | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: 1 | ||
datasources: | ||
- name: loki | ||
uid: loki | ||
type: loki | ||
access: proxy | ||
url: http://loki:3100 | ||
basicAuth: false | ||
editable: true | ||
isDefault: true | ||
version: 1 | ||
|
||
- name: prometheus | ||
uid: prometheus | ||
type: prometheus | ||
url: http://prometheus:9090 | ||
access: proxy | ||
basicAuth: false | ||
editable: true | ||
isDefault: false | ||
version: 1 | ||
|
||
- name: tempo | ||
uid: tempo | ||
type: tempo | ||
url: http://tempo:3200 | ||
access: proxy | ||
basicAuth: false | ||
editable: true | ||
isDefault: false | ||
jsonData: | ||
tracesToLogsV2: | ||
customQuery: true | ||
datasourceUid: loki | ||
filterByTraceID: true | ||
query: '{trace_id="${__trace.traceId}"}' | ||
version: 1 |
Oops, something went wrong.