|
1 | | -# Telemetry |
| 1 | +# Docker Compose Telemetry |
2 | 2 |
|
3 | 3 | ## Overview |
4 | 4 |
|
5 | 5 | Graphistry services export telemetry information (metrics and traces) using the [OpenTelemetry](https://opentelemetry.io/) standard. |
6 | 6 |
|
7 | 7 | Graphistry services push their telemetry data to the [opentelemetry-collector](https://opentelemetry.io/docs/collector/) service (alias `otel-collector`) and this will forward the data to any observability tool that is compatible with the OpenTelemetry standard (e.g. Prometheus, Jaeger, Grafana Cloud, etc.). |
8 | 8 |
|
9 | | -## Telemetry Deployment Modes in Graphistry |
| 9 | +## Telemetry Deployment Modes |
10 | 10 |
|
11 | 11 | When telemetry services are enabled, the OpenTelemetry Collector will be included in all deployment scenarios: |
12 | 12 |
|
@@ -36,6 +36,9 @@ cd $GRAPHISTRY_HOME |
36 | 36 | If you need to manage individual telemetry services, you can use the following commands. Each command starts a specific service: |
37 | 37 |
|
38 | 38 | ```bash |
| 39 | +# Start the Node Exporter to collect and expose system-level metrics (e.g., CPU, memory, disk, and network). |
| 40 | +./release up -d node-exporter |
| 41 | + |
39 | 42 | # Start the NVIDIA Data Center GPU Manager Exporter (DCGM Exporter) for GPU monitoring |
40 | 43 | ./release up -d dcgm-exporter |
41 | 44 |
|
@@ -73,11 +76,9 @@ Use this URL when the service is [behind Caddy](#caddyfile---reverse-proxy-set-u |
73 | 76 | Use this URL when the service is **not behind Caddy**: `https://$GRAPHISTRY_HOST:16686/jaeger/` |
74 | 77 |
|
75 | 78 | ### Grafana dashboard |
76 | | -Grafana will include GPU metrics and dashboards from NVIDIA Data Center GPU Manager: `DCGM Exporter Dashboards`: |
77 | | - |
78 | | -Use this URL when the service is [behind Caddy](#caddyfile---reverse-proxy-set-up): `https://$GRAPHISTRY_HOST/grafana/` |
79 | | - |
80 | | -Use this URL when the service is **not behind Caddy**: `https://$GRAPHISTRY_HOST:3000` |
| 79 | +Grafana will include GPU metrics and dashboards from NVIDIA Data Center GPU Manager: `DCGM Exporter Dashboards`, as well as the Node Exporter Dashboard for system-level metrics (e.g., CPU, memory, disk, and network). |
| 80 | +- Use this URL when the service is [behind Caddy](#caddyfile---reverse-proxy-set-up): `https://$GRAPHISTRY_HOST/grafana/` |
| 81 | +- Use this URL when the service is **not behind Caddy**: `https://$GRAPHISTRY_HOST:3000` |
81 | 82 |
|
82 | 83 | ## Configuration |
83 | 84 |
|
@@ -271,67 +272,3 @@ To acces the telemetry services, you need to use the template file `$GRAPHISTRY_ |
271 | 272 | The feature flag in the web admin panel (waffle) for OpenTelemetry is `flag_ot_traces`, and it is off by default |
272 | 273 |
|
273 | 274 | You need to be admin in order to change its value, this flag controls at runtime which users can export telemetry data. You can set monitoring to no/all/select users. |
274 | | - |
275 | | -## Kubernetes Deployment |
276 | | -To deploy OpenTelemetry services for Graphistry in a Kubernetes environment, you will need to configure the system using Helm values. For comprehensive documentation on deploying Graphistry with Helm, refer to the official documentation at [Graphistry Helm Documentation](https://graphistry-helm.readthedocs.io/). Additionally, you can explore the open-source Helm project for Graphistry on GitHub at [Graphistry Helm GitHub](https://github.com/graphistry/graphistry-helm). |
277 | | - |
278 | | -### Prerequisites |
279 | | - |
280 | | -Before deploying OpenTelemetry services for Graphistry on Kubernetes, ensure you have the following prerequisites in place: |
281 | | - |
282 | | -1. **Kubernetes Cluster**: You must have access to a running Kubernetes cluster. |
283 | | -2. **Helm**: Helm is the package manager for Kubernetes that simplifies the deployment and management of applications. |
284 | | -3. **Graphistry Helm Project**: You must have the `graphistry-helm` project cloned or downloaded to your local machine. This project contains the necessary Helm charts and configurations for deploying Graphistry services with Kubernetes. You can find the project and instructions in the official [Graphistry Helm GitHub repository](https://github.com/graphistry/graphistry-helm). |
285 | | -4. **Access to Required Resources**: Ensure you have the necessary permissions to deploy applications to the Kubernetes cluster. You may need appropriate access rights to the cloud provider's Kubernetes resources or administrative permissions for your self-hosted Kubernetes environment. |
286 | | - |
287 | | -### Helm Values for OpenTelemetry in Kubernetes |
288 | | - |
289 | | -To deploy OpenTelemetry for Graphistry in a Kubernetes environment, you'll need to configure the Helm deployment with specific values. These values are typically defined in a `values.yaml` file, which will replace the Docker Compose configuration in your setup. |
290 | | - |
291 | | -The following is an example of the configuration you would include in your `values.yaml` file to deploy OpenTelemetry services within Kubernetes: |
292 | | - |
293 | | -```yaml |
294 | | -global: ## global settings for all charts |
295 | | - ENABLE_OPEN_TELEMETRY: true |
296 | | - |
297 | | -# Graphistry Telemetry values and environment variables for observability tools |
298 | | -# can be set like helm upgrade -i chart_name --name release_name \ |
299 | | -#--set stENVPublic.LOG_LEVEL="FOO" |
300 | | -# Telemetry documentation: |
301 | | -# https://github.com/graphistry/graphistry-cli/blob/master/docs/tools/telemetry.md#kubernetes-deployment |
302 | | -telemetryEnv: |
303 | | - OTEL_CLOUD_MODE: false # false: deploy our stack: jaeger, prometheus, grafana etc.; else fill OTEL_COLLECTOR_OTLP_HTTP_ENDPOINT and credentials bellow |
304 | | - openTelemetryCollector: |
305 | | - image: "otel/opentelemetry-collector-contrib:0.87.0" |
306 | | - OTEL_COLLECTOR_OTLP_HTTP_ENDPOINT: "" # e.g. Grafana OTLP HTTP endpoint for Graphistry Hub https://otlp-gateway-prod-us-east-0.grafana.net/otlp |
307 | | - OTEL_COLLECTOR_OTLP_USERNAME: "" # e.g. Grafana Cloud Instance ID for OTLP |
308 | | - OTEL_COLLECTOR_OTLP_PASSWORD: "" # e.g. Grafana Cloud API Token for OTLP |
309 | | - grafana: |
310 | | - image: "grafana/grafana:11.0.0" |
311 | | - GF_SERVER_ROOT_URL: "/grafana" |
312 | | - GF_SERVER_SERVE_FROM_SUB_PATH: "true" |
313 | | - dcgmExporter: |
314 | | - image: "nvcr.io/nvidia/k8s/dcgm-exporter:3.3.5-3.4.1-ubuntu22.04" |
315 | | - DCGM_EXPORTER_CLOCK_EVENTS_COUNT_WINDOW_SIZE: 1000 # milliseconds |
316 | | - jaeger: |
317 | | - image: "jaegertracing/all-in-one:1.50.0" |
318 | | - nodeExporter: |
319 | | - image: "prom/node-exporter:v1.8.2" |
320 | | - prometheus: |
321 | | - image: "prom/prometheus:v2.47.2" |
322 | | -``` |
323 | | -
|
324 | | -### Configuration Overview |
325 | | -
|
326 | | -1. **`global`**: This section in the `values.yaml` file is used to define values that are accessible across all charts within the parent-child hierarchy. Both the parent chart (e.g., `charts/graphistry-helm`) and its child charts (e.g., `charts/graphistry-helm/charts/telemetry`) can reference these global values using `.Values.global.<value_name>`, providing a unified configuration across the deployment. |
327 | | -2. **`telemetryEnv`**: This section defines environment variables that control the OpenTelemetry configuration in Kubernetes. These variables replicate the settings that were originally defined in the Docker Compose setup. |
328 | | -3. **`global.ENABLE_OPEN_TELEMETRY`**: Set to `true` to enable the OpenTelemetry stack within the Kubernetes environment. This will ensure that telemetry data is collected and processed by the relevant tools in your stack. |
329 | | -4. **`telemetryEnv.OTEL_CLOUD_MODE`**: |
330 | | - - When set to `false`, the internal observability stack (`Jaeger`, `Prometheus`, `Grafana`, `NVIDIA DCGM Exporter` and `Node Exporter`) is deployed locally within your Kubernetes cluster. So, setting it to `false` is similar to [using packaged observability tools](#using-packaged-observability-tools) within the Kubernetes environment. |
331 | | - - When set to `true`, telemetry data is forwarded to external services, such as Grafana Cloud or other OTLP-compatible services. So, setting this to `true` is equivalent to [forwarding telemetry to external services](#forwarding-to-external-services). |
332 | | -5. **`telemetryEnv.openTelemetryCollector.OTEL_COLLECTOR_OTLP_HTTP_ENDPOINT`**, **`telemetryEnv.openTelemetryCollector.OTEL_COLLECTOR_OTLP_USERNAME`**, and **`telemetryEnv.openTelemetryCollector.OTEL_COLLECTOR_OTLP_PASSWORD`**: These fields are required only if `OTEL_CLOUD_MODE` is set to `true`. They provide the necessary connection details (such as the endpoint, username, and password) for forwarding telemetry data to external services like Grafana Cloud or other OTLP-compatible services. |
333 | | -6. **`telemetryEnv.grafana.GF_SERVER_ROOT_URL`** and **`telemetryEnv.grafana.GF_SERVER_SERVE_FROM_SUB_PATH`**: These settings are used to configure Grafana, especially when it's deployed behind a reverse proxy or using an ingress controller. |
334 | | - - **`telemetryEnv.grafana.GF_SERVER_ROOT_URL`** defines the root URL for accessing Grafana (e.g., `/grafana`). |
335 | | - - **`telemetryEnv.grafana.GF_SERVER_SERVE_FROM_SUB_PATH`** should be set to `true` if Grafana is accessed from a sub-path (e.g., `/grafana`) behind a reverse proxy or ingress. |
336 | | -7. **`telemetryEnv.dcgmExporter.DCGM_EXPORTER_CLOCK_EVENTS_COUNT_WINDOW_SIZE`**: This environment variable is used when `OTEL_CLOUD_MODE` is set to `true`, and the `dcgm-exporter` is deployed to export GPU metrics to Prometheus. It controls the frequency of GPU sampling to gather metrics. The value `1000` represents the window size for counting clock events on the GPU. |
337 | | -8. **`telemetryEnv.*.image`**: These values allow to change the image versions of the observability tools. |
0 commit comments