-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #427 from duyet/chore/ui-update
feat(docs): enhance deployment documentation
- Loading branch information
Showing
19 changed files
with
646 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
export default { | ||
export const meta = { | ||
index: 'Introduction', | ||
'getting-started': 'Getting Started', | ||
deploy: 'Deployments', | ||
advanced: 'Advanced', | ||
} | ||
|
||
export default meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const meta = { | ||
'multiple-hosts': 'Multiple Hosts', | ||
'custom-name': 'Custom ClickHouse Name', | ||
} | ||
|
||
export default meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Tabs } from 'nextra/components' | ||
|
||
# Custom Name | ||
|
||
![](/custom-name.png) | ||
|
||
You can customize the ClickHouse host name by using the environment variable below: | ||
|
||
- `CLICKHOUSE_NAME`: A list of names for the ClickHouse instances separated by commas. The number of items must match the number of hosts in `CLICKHOUSE_HOST`. For example `clickhouse-0,clickhouse-1,clickhouse-2`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
export default { | ||
export const meta = { | ||
vercel: 'Vercel', | ||
docker: 'Docker', | ||
k8s: 'Kubernetes', | ||
} | ||
|
||
export default meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
# Getting Started | ||
|
||
To get the project up and running on your local machine, follow these steps: | ||
import { Cards } from 'nextra/components' | ||
import { Code, UserCog, Grid2x2Check } from 'lucide-react' | ||
|
||
1. Clone the repository | ||
2. Install dependencies using `npm install` or `yarn install` | ||
3. Create a `.env.local` file by copying the `.env.example` file and filling in the required environment variables: | ||
|
||
- `CLICKHOUSE_HOST`: ClickHouse host(s), for example `http://localhost:8123` or `http://ch-1:8123,http://ch-2:8123` | ||
- `CLICKHOUSE_NAME`: (Optional) Name of ClickHouse instance, must match the number of hosts in `CLICKHOUSE_HOST`, for example `localhost` or `ch-1,ch-2`. | ||
- `CLICKHOUSE_USER`: ClickHouse user with permission to query the `system` database. | ||
- `CLICKHOUSE_PASSWORD`: ClickHouse password for the specified user. | ||
- `CLICKHOUSE_MAX_EXECUTION_TIME`: [`max_execution_time`](https://clickhouse.com/docs/en/operations/settings/query-complexity#max-execution-time) timeout in seconds. Default is `10`. | ||
- `CLICKHOUSE_TZ`: ClickHouse server timezone. Default: `''`. | ||
- `NEXT_QUERY_CACHE_TTL`: TTL of [`unstable_cache`](https://nextjs.org/docs/app/api-reference/functions/unstable_cache) - cache the results of most charts to speed up and reuse them across multiple requests. Default: `86400`. | ||
- `NEXT_PUBLIC_LOGO`: (Optional) HTTP path to logo image. | ||
- `EVENTS_TABLE_NAME`: The table name for storing dashboard self-tracking events. Default: `system.monitoring_events` | ||
|
||
4. Run the development server with `npm run dev` or `yarn dev` | ||
5. Open [http://localhost:3000](http://localhost:3000) in your browser to see the dashboard. | ||
<Cards> | ||
<Cards.Card | ||
icon={<Code />} | ||
title="Local Development" | ||
href="/getting-started/local" | ||
arrow | ||
/> | ||
<Cards.Card | ||
icon={<UserCog />} | ||
title="User Roles and Profile" | ||
href="/getting-started/clickhouse-requirements" | ||
arrow | ||
/> | ||
<Cards.Card | ||
icon={<Grid2x2Check />} | ||
title="Enable System Tables" | ||
href="/getting-started/clickhouse-enable-system-tables" | ||
arrow | ||
/> | ||
</Cards> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
export default { | ||
'clickhouse-requirements': 'Clickhouse User Roles and Settings', | ||
'clickhouse-enable-system-tables': 'Clickhouse Enable System Tables', | ||
export const meta = { | ||
local: 'Local Development', | ||
'clickhouse-requirements': 'User Roles and Profile', | ||
'clickhouse-enable-system-tables': 'Enable System Tables', | ||
} | ||
|
||
export default meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import { Steps, Tabs, Cards } from 'nextra/components' | ||
import { Code, UserCog, Grid2x2Check } from 'lucide-react' | ||
|
||
# Local Development | ||
|
||
To get the project up and running on your local machine, follow these steps: | ||
|
||
<Steps> | ||
### Clone the repository | ||
|
||
```bash | ||
git clone https://github.com/duyet/clickhouse-monitoring | ||
``` | ||
|
||
### Install dependencies | ||
|
||
<Tabs items={['npm', 'yarn']}> | ||
<Tabs.Tab>```bash npm install ```</Tabs.Tab> | ||
<Tabs.Tab>```bash yarn ```</Tabs.Tab> | ||
</Tabs> | ||
|
||
### Setup env | ||
|
||
Create a `.env.local` file by copying the `.env.example` file and filling in the required environment variables: | ||
|
||
- `CLICKHOUSE_HOST`: ClickHouse host, for example `http://localhost:8123` | ||
- `CLICKHOUSE_USER`: ClickHouse user with permission to query the `system` database. | ||
- `CLICKHOUSE_PASSWORD`: ClickHouse password for the specified user. | ||
- `CLICKHOUSE_MAX_EXECUTION_TIME`: [`max_execution_time`](https://clickhouse.com/docs/en/operations/settings/query-complexity#max-execution-time) timeout in seconds. Default is `10`. | ||
- `CLICKHOUSE_TZ`: ClickHouse server timezone. Default: `''`. | ||
- `NEXT_QUERY_CACHE_TTL`: TTL of [`unstable_cache`](https://nextjs.org/docs/app/api-reference/functions/unstable_cache) - cache the results of most charts to speed up and reuse them across multiple requests. Default: `86400`. | ||
- `NEXT_PUBLIC_LOGO`: (Optional) HTTP path to logo image. | ||
- `EVENTS_TABLE_NAME`: The table name for storing dashboard self-tracking events. Default: `system.monitoring_events` | ||
|
||
### Config ClickHouse | ||
|
||
<Cards> | ||
<Cards.Card | ||
icon={<UserCog />} | ||
title="1. User Roles and Profile" | ||
href="/getting-started/clickhouse-requirements" | ||
arrow | ||
/> | ||
<Cards.Card | ||
icon={<Grid2x2Check />} | ||
title="2. Enable System Tables" | ||
href="/getting-started/clickhouse-enable-system-tables" | ||
arrow | ||
/> | ||
</Cards> | ||
|
||
### Run the development server | ||
|
||
<Tabs items={['npm', 'yarn']}> | ||
<Tabs.Tab>```bash npm run dev ```</Tabs.Tab> | ||
<Tabs.Tab>```bash yarn dev ```</Tabs.Tab> | ||
</Tabs> | ||
|
||
### Final | ||
|
||
Open [http://localhost:3000](http://localhost:3000) in your browser to see the dashboard. | ||
|
||
</Steps> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import Script from 'next/script' | ||
|
||
export default { | ||
logo: <span>ClickHouse Monitoring</span>, | ||
project: { | ||
link: 'https://github.com/duyet/clickhouse-monitoring' | ||
}, | ||
head: ( | ||
<script async src="https://cdn.seline.so/seline.js" data-token="05046b3773d0534"></script> | ||
) | ||
} | ||
logo: <span>ClickHouse Monitoring</span>, | ||
project: { | ||
link: 'https://github.com/duyet/clickhouse-monitoring', | ||
}, | ||
head: ( | ||
<Script | ||
async | ||
src="https://cdn.seline.so/seline.js" | ||
data-token="05046b3773d0534" | ||
/> | ||
), | ||
} |
Oops, something went wrong.
e8b2be7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
clickhouse-monitoring – ./
clickhouse-monitor.vercel.app
clickhouse-monitoring-git-main-duyet-team.vercel.app
clickhouse.duyet.net
clickhouse-monitoring.vercel.app
clickhouse-monitoring-duyet-team.vercel.app
clickhouse-dashboard.vercel.app