Skip to content

Commit 4c6a491

Browse files
telemetry docs (#10)
1 parent fb36cd1 commit 4c6a491

File tree

4 files changed

+66
-7
lines changed

4 files changed

+66
-7
lines changed

docs/user-guide/configurations.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ DATU_ENABLE_MCP=true
101101
##### MCP Servers Configuration
102102
Define your MCP servers in a JSON config file (e.g. mcp_config.json):
103103

104-
```sh
104+
```json
105105
{
106106
"mcpServers": {
107107
"sql_generator": {
@@ -113,3 +113,12 @@ Define your MCP servers in a JSON config file (e.g. mcp_config.json):
113113
}
114114
```
115115

116+
#### Telemetry related configuration
117+
118+
##### Product telemetry
119+
120+
Product telemetry is enabled by default and you can disable it by
121+
122+
```sh
123+
DATU_ENABLE_ANONYMIZED_TELEMETRY=false
124+
```

docs/user-guide/deploy/deploy_as_container_service.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Use below recommended method to run Datu application as container service.
66

77
To deploy your Datu, you need to containerize it using Podman or Docker. The Dockerfile defines how your application is packaged and run. Below is an example Docker file that installs all needed dependencies, the application, and configures the FastAPI server to run via unicorn dockerfile.
88

9-
```sh
9+
```dockerfile
1010
FROM python:3.11-slim
1111
SHELL ["/bin/bash", "-c"]
1212

@@ -18,15 +18,15 @@ RUN apt-get update && \
1818
rm -rf /var/lib/apt/lists/* && \
1919
pip install --upgrade pip
2020

21-
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
22-
RUN curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list
21+
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg \
22+
&& curl https://packages.microsoft.com/config/debian/11/prod.list -o /etc/apt/sources.list.d/mssql-release.list
2323

2424
RUN apt-get update
2525
RUN env ACCEPT_EULA=Y apt-get install -y msodbcsql18
2626
WORKDIR /app
27+
COPY . .
2728
RUN pip install "datu-core[postgres,sqldb]"
28-
ENTRYPOINT []
29-
CMD ["uvicorn", "datu.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
29+
CMD ["datu"]
3030
```
3131

3232
## Infrastructure
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Telemetry in Datu Server
2+
3+
Datu Server comes with a built-in **telemetry system** that gathers **anonymous usage information**.
4+
This data helps the maintainers understand how the software is being used and guides ongoing improvements.
5+
6+
---
7+
8+
## Why Telemetry?
9+
10+
Telemetry provides valuable feedback without exposing personal or sensitive information.
11+
It allows the team to:
12+
13+
- Measure how features are being adopted.
14+
- Detect common usage patterns and performance bottlenecks.
15+
- Prioritize enhancements that have the greatest impact.
16+
- Ensure the system evolves in line with real-world needs.
17+
18+
---
19+
20+
## What Data Is Collected?
21+
22+
The telemetry system only collects **non-identifiable, aggregated data** such as:
23+
24+
- Basic environment details (e.g., version, operating system).
25+
- Which features or APIs are being exercised.
26+
- MCP server names.
27+
- General performance metrics.
28+
29+
No private data, user content, or identifiers are captured such as: usernames, hostnames, file names, environment variables, or hostnames of systems being tested.
30+
31+
---
32+
33+
## Where is telemetry information stored?
34+
35+
We use [Posthog](https://posthog.com/) to store and visualize telemetry data.
36+
37+
<div style="border: 1px solid #ccc; padding: 12px; border-radius: 6px; background-color: #f9f9f9;">
38+
<strong>PostHog</strong> is an open source platform for product analytics.
39+
Learn more at <a href="https://posthog.com">posthog.com</a> or <a href="https://github.com/posthog">github.com/posthog</a>.
40+
</div>
41+
42+
## Turning Telemetry Off
43+
44+
If you prefer not to share anonymous usage data, you can disable telemetry with an environment variable:
45+
46+
```sh
47+
export DATU_ENABLE_ANONYMIZED_TELEMETRY=false
48+
```

mkdocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ nav:
5757
- Deploy:
5858
- Container service: user-guide/deploy/deploy_as_container_service.md
5959
- MCP:
60-
- user-guide/MCP/mcp_connectivity.md
60+
- user-guide/mcp/mcp_connectivity.md
61+
- Telemetry:
62+
- user-guide/telemetry/product.md
6163
- Architecture:
6264
- Overview: architecture/README.md
6365
- Contribute ❤️: https://github.com/Datuanalytics/datu-core/blob/main/CONTRIBUTING.md

0 commit comments

Comments
 (0)