You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(docs): update OpenTelemetry self-hosted guide with new metrics and dashboard features
Enhanced the self-hosted OpenTelemetry documentation by adding a sample Grafana dashboard for visualizing metrics from Gate. Updated configuration details for the OpenTelemetry Collector, including new metrics endpoints and improved instructions for setting up Prometheus scraping. Removed outdated Kubernetes configuration examples and added new YAML files for the OpenTelemetry Collector setup. Updated the documentation to reflect changes in metrics collection and visualization capabilities.
Copy file name to clipboardExpand all lines: .web/docs/guide/otel/index.md
+23-21Lines changed: 23 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,28 @@
1
1
# OpenTelemetry
2
2
3
-
Gate uses OpenTelemetry for observability, leveraging the [otel-config-go](https://github.com/honeycombio/otel-config-go) library for configuration. This provides a simple way to configure tracing and metrics collection through environment variables.
3
+
OpenTelemetry is an observability framework and toolkit designed to facilitate the generation, export, and collection of telemetry data such as traces, metrics, and logs. It is an open-source and vendor-agnostic project, meaning it can be used with a broad variety of observability backends, including open-source tools like Jaeger and Prometheus, as well as commercial offerings. A major goal of OpenTelemetry is to enable easy instrumentation of applications and systems, regardless of the programming language, infrastructure, and runtime environments used. OpenTelemetry itself is not an observability backend; the storage and visualization of telemetry data are intentionally left to other tools. ([Source](https://opentelemetry.io/docs/what-is-opentelemetry/))
4
+
5
+
::: info
6
+
Gate utilizes OpenTelemetry for its observability capabilities. For configuration, Gate leverages the [otel-config-go](https://github.com/honeycombio/otel-config-go) library, which offers a straightforward method to set up tracing and metrics collection via [environment variables](#configuration).
| OTEL_SERVICE_NAME | No |`gate`| Name of your service |
16
-
| OTEL_SERVICE_VERSION | No | - | Version of your service |
17
-
| OTEL_EXPORTER_OTLP_ENDPOINT | No |`localhost:4317`| Endpoint for OTLP export |
18
-
| OTEL_LOG_LEVEL | No |`info`| Logging level |
19
-
| OTEL_PROPAGATORS | No |`tracecontext,baggage`| Configured propagators |
20
-
| OTEL_METRICS_ENABLED | No |`true`| Enable metrics collection |
21
-
| OTEL_TRACES_ENABLED | No |`true`| Enable trace collection |
22
-
| OTEL_METRICS_SERVER_ENABLED | No |`false`| Enable Prometheus metrics server |
23
-
| OTEL_METRICS_SERVER_PATH | No |`/metrics`| Path for Prometheus metrics endpoint |
24
-
| OTEL_METRICS_SERVER_ADDR | No |`:9464`| Address for Prometheus metrics server |
15
+
Gate's OpenTelemetry implementation can be configured using the following [environment variables](https://github.com/honeycombio/otel-config-go/blob/127951890a85db4effad9fbc961d0f09ddd8a818/otelconfig/otelconfig.go#L304):
-**Download Raw JSON:**[Download Dashboard JSON](https://raw.githubusercontent.com/minekube/gate/master/.web/docs/guide/otel/self-hosted/grafana-dashboards/gate-overview-dashboard.json)
20
+
-**View on GitHub:**[gate-overview-dashboard.json](https://github.com/minekube/gate/blob/master/.web/docs/guide/otel/self-hosted/grafana-dashboards/gate-overview-dashboard.json)
21
+
22
+
If you have cloned the repository, you can also find the dashboard at `.web/docs/guide/otel/self-hosted/grafana-dashboards/gate-overview-dashboard.json` within your local copy.
23
+
24
+
**Importing the Dashboard:**
25
+
26
+
1. Navigate to your Grafana instance (usually http://localhost:3000).
27
+
2. Log in (default: admin/admin, then change the password).
28
+
3. On the left-hand menu, go to **Dashboards**.
29
+
4. On the Dashboards page, click the **"New"** button in the top right and select **"Import"**.
30
+

31
+
5. Click the **"Upload JSON file"** button and select the `gate-overview-dashboard.json` file you downloaded, or paste the JSON content directly into the text area.
32
+
6. On the next screen, you can change the dashboard name if desired.
33
+
7.**Important:** Select your Prometheus data source from the dropdown (usually named "Prometheus").
0 commit comments