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
Copy file name to clipboardExpand all lines: docs/tutorial.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,7 @@ The New York City taxi data contains the details of millions of taxi rides, with
89
89
Now that you have a table created, let's add the NYC taxi data. It is in CSV files in S3, and you can load the data from there.
90
90
91
91
1. The following command inserts ~2,000,000 rows into your `trips` table from two different files in S3: `trips_1.tsv.gz` and `trips_2.tsv.gz`:
92
+
92
93
```sql
93
94
INSERT INTO trips
94
95
SELECT * FROM s3(
@@ -499,4 +500,3 @@ Well done - you made it through the tutorial, and hopefully you have a better un
499
500
- [Connect your favorite UI/BI tool](./integrations/data-visualization/index.md) to ClickHouse
500
501
-Check out the [SQL Reference](./sql-reference/index.md) and browse through the various functions. ClickHouse has an amazing collection of functions for transforming, processing and analyzing data
501
502
- Learn more about [Dictionaries](/sql-reference/dictionaries/index.md)
Copy file name to clipboardExpand all lines: docs/use-cases/observability/grafana.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,15 +49,15 @@ If adhering to the Grafana requirements for logs, users can select `Query Type:
49
49
SELECTTimestampastimestamp, Body as body, SeverityText as level, TraceId as traceID FROM"default"."otel_logs"WHERE ( timestamp>= $__fromTime ANDtimestamp<= $__toTime ) ORDER BYtimestampDESCLIMIT1000
The query builder provides a simple means of modifying the query, avoiding the need for users to write SQL. Filtering, including finding logs containing keywords, can be performed from the query builder. Users wishing to write more complex queries can switch to the SQL editor. Provided the appropriate columns are returned, and `logs` selected as the Query Type, the results will be rendered as logs. The required columns for log rendering are listed [here](https://grafana.com/developers/plugin-tools/tutorials/build-a-logs-data-source-plugin#logs-data-frame-format).
55
55
56
56
### Logs to traces {#logs-to-traces}
57
57
58
58
If logs contain trace Ids, users can benefit from being able to navigate through to a trace for a specific log line.
59
59
60
-
<Imageimg={observability_17}alt="Logs to traces"size="lg"/>
60
+
<Imageimg={observability_17}alt="Logs to traces"size="lg"border/>
61
61
62
62
## Traces {#traces}
63
63
@@ -78,7 +78,7 @@ WHERE ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )
78
78
79
79
This query returns the column names expected by Grafana, rendering a table of traces as shown below. Filtering on duration or other columns can be performed without needing to write SQL.
Users wishing to write more complex queries can switch to the `SQL Editor`.
84
84
@@ -114,7 +114,7 @@ LIMIT 1000
114
114
Note how the above query uses the materialized view `otel_traces_trace_id_ts` to perform the trace id lookup. See [Accelerating Queries - Using Materialized views for lookups](/use-cases/observability/schema-design#using-materialized-views-incremental--for-fast-lookups) for further details.
@@ -128,15 +128,15 @@ WHERE ( traceID = '<trace_id>' )
128
128
ORDER BYtimestampASCLIMIT1000
129
129
```
130
130
131
-
<Imageimg={observability_20}alt="Traces to logs"size="lg"/>
131
+
<Imageimg={observability_20}alt="Traces to logs"size="lg"border/>
132
132
133
133
## Dashboards {#dashboards}
134
134
135
135
Users can build dashboards in Grafana using the ClickHouse data source. We recommend the Grafana and ClickHouse [data source documentation](https://github.com/grafana/clickhouse-datasource) for further details, especially the [concept of macros](https://github.com/grafana/clickhouse-datasource?tab=readme-ov-file#macros) and [variables](https://grafana.com/docs/grafana/latest/dashboards/variables/).
136
136
137
137
The plugin provides several out-of-the-box dashboards, including an example dashboard, "Simple ClickHouse OTel dashboarding," for logging and tracing data conforming to the OTel specification. This requires users to conform to the default column names for OTel and can be installed from the data source configuration.
Copy file name to clipboardExpand all lines: docs/use-cases/observability/introduction.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,6 @@ Each trace consists of several spans, with the initial span associated with the
91
91
92
92
Most observability vendors visualize this information as a waterfall, with relative timing shown using horizontal bars of proportional size. For example, in Grafana:
For users needing to familiarize themselves deeply with the concepts of logs and traces, we highly recommend the [OpenTelemetry documentation](https://opentelemetry.io/docs/concepts/).
0 commit comments