Source Configuration
To create a source, you need to fill in the form data.
Connection Data
Section titled “Connection Data”ClickHouse Source
Section titled “ClickHouse Source”Important: As of version 0.0.19, Telescope only supports HTTP(S) connections to ClickHouse. The native protocol is no longer supported.
host
– ClickHouse server host. Defaults tolocalhost
.port
– ClickHouse server HTTP(S) port. Defaults to8123
for HTTP or8443
for HTTPS. Note: The native protocol port (9000) is no longer supported.user
– Username used to connect to the server. Defaults todefault
.password
– Password used to connect to the server.database
– Database name.table
– Table name.ssl
– Whether to use a secure HTTPS connection.
If SSL is enabled, a few additional options become available:
Verify
– specifies whether a certificate is required and whether it will be validated after connection. Defaults to True.CA Certs
– see ssl.wrap_socket() docsCert file
– see ssl.wrap_socket() docsKey file
– see ssl.wrap_socket() docsSSL file
– see ssl.wrap_socket() docsCiphers
– see ssl.wrap_socket() docsServer hostname
– Hostname to use in SSL Wrapper construction. Defaults to None which will send the passed host param during SSL initialization. This param may be used when connecting over an SSH tunnel to correctly identify the desired server via SNI.Alt hosts
– list of alternative hosts for connection.
Docker Source
Section titled “Docker Source”address
– The URL of the Docker daemon socket. This is typically something likeunix:///var/run/docker.sock
for local access, ortcp://<host>:<port>
for remote connections.
After filling in the connection data, you need to test the connection by clicking the “Validate connection & load schema” button.
If the connection test is successful, you will later have the option to automatically populate the form fields using the “Load fields from schema” button.
If the connection test fails, you can still create the source, but you will need to add the fields manually.
Common Data
Section titled “Common Data”slug
– A unique slug field. Cannot be changed after creation (used as a human-readable source identifier).name
– Source name.description
– Source description.
Fields Setup
Section titled “Fields Setup”In this section, you need to define the list of fields and configure their usage. If the connection test was previously successful, you can automatically add fields from the retrieved schema using the “Load fields from schema” button.
After adding fields, the “Time field” and “Severity field” options will become selectable from a dropdown list.
Time field
– Used in the time range selector for querying data.Severity field
– Used to apply different colors to message bars based on severity and as a default field for graph grouping. If not set, no colored bars appear in the result table, and no group-by field is selected by default.Default chosen fields
– Comma-separated list of values for the field selector. Each value must exist in the field name list.
Field Properties
Section titled “Field Properties”Each field has several properties:
Name
– This name is mapped to the field name in the database table.Display Name
– This name is used in the table as alias when querying logs.Type
– The field type, based on the ClickHouse data type. If the schema is loaded automatically, this type is derived directly from ClickHouse. When adding fields manually, users can select a type from a predefined list or enter it manually. Currently, the type is primarily used to determine which fields can be selected as theTime field
(only fields containingdatetime
are eligible).Treat as JSON String
– A boolean property that defines whether this field should be treated as a JSON object in the result. If set totrue
, the server will convert the string into a JSON object. If set tofalse
, the value will remain a string and will be displayed as such in the UI.Autocomplete
– A boolean property that defines whether this field should use autocompletion in the query input.Suggest
– A boolean property that defines whether this field should be suggested in the query input.Values
– A comma-separated list of predefined field values. This field is used only for theenum
type. It allows specifying a fixed set of values for a particular field, ensuring that only valid options are used. This is particularly useful forenum
types, as it helps prevent sending requests with incorrect data.