-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/1850-add-possibility-to-adjust-incid…
…ents-mining-configuration
- Loading branch information
Showing
35 changed files
with
1,248 additions
and
450 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: 'ClickHouse' | ||
sidebarTitle: 'ClickHouse Provider' | ||
description: 'ClickHouse provider allows you to interact with ClickHouse database.' | ||
--- | ||
|
||
## Overview | ||
|
||
ClickHouse is an open-source column-oriented DBMS for online analytical processing that allows users to generate analytical reports using SQL queries in real-time. | ||
|
||
## Authentication Parameters | ||
|
||
The ClickHouse provider requires the following authentication parameters: | ||
|
||
- `Clickhouse Username`: The username to authenticate with ClickHouse. | ||
- `Clickhouse Password`: The password to authenticate with ClickHouse. | ||
- `Clickhouse Hostname`: The host where ClickHouse is running. | ||
- `Clickhouse Port`: The port where ClickHouse is running. The default port is `9000`. | ||
- `Clickhouse Database`: The database to connect to. | ||
|
||
## Connecting with the ClickHouse provider | ||
|
||
1. Obtain the required authentication parameters. | ||
2. Add ClickHouse provider to your keep account and configure with the above authentication parameters. | ||
|
||
## Useful Links | ||
|
||
- [ClickHouse](https://clickhouse.com/) | ||
- [ClickHouse Statements](https://clickhouse.com/docs/en/sql-reference/statements/) |
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,31 @@ | ||
id: query-clickhouse | ||
description: Query Clickhouse and send an alert if there is an error | ||
triggers: | ||
- type: manual | ||
|
||
steps: | ||
- name: clickhouse-step | ||
provider: | ||
config: "{{ providers.clickhouse }}" | ||
type: clickhouse | ||
with: | ||
query: SELECT * FROM logs_table ORDER BY timestamp DESC LIMIT 1; | ||
single_row: "True" | ||
|
||
actions: | ||
- name: ntfy-action | ||
if: "'{{ steps.clickhouse-step.results.level }}' == 'ERROR'" | ||
provider: | ||
config: "{{ providers.ntfy }}" | ||
type: ntfy | ||
with: | ||
message: "Error in clickhouse logs_table: {{ steps.clickhouse-step.results.level }}" | ||
topic: clickhouse | ||
|
||
- name: slack-action | ||
if: "'{{ steps.clickhouse-step.results.level }}' == 'ERROR'" | ||
provider: | ||
config: "{{ providers.slack }}" | ||
type: slack | ||
with: | ||
message: "Error in clickhouse logs_table: {{ steps.clickhouse-step.results.level }}" |
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
Oops, something went wrong.