-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c4be4b
commit 656a670
Showing
12 changed files
with
175 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
ALTER TABLE rakkess | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 10 MINUTE | ||
SETTINGS index_granularity = 8192; | ||
CREATE TABLE IF NOT EXISTS new_rakkess ( | ||
ClusterName String, | ||
Name String, | ||
Create String, | ||
Delete String, | ||
List String, | ||
Update String, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,12 @@ | ||
ALTER TABLE DeprecatedAPIs | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
CREATE TABLE IF NOT EXISTS DeprecatedAPIs ( | ||
ClusterName String, | ||
ObjectName String, | ||
Description String, | ||
Kind String, | ||
Deprecated UInt8, | ||
Scope String, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,15 @@ | ||
ALTER TABLE DeletedAPIs | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
|
||
CREATE TABLE IF NOT EXISTS DeletedAPIs ( | ||
ClusterName String, | ||
ObjectName String, | ||
Group String, | ||
Kind String, | ||
Version String, | ||
Name String, | ||
Deleted UInt8, | ||
Scope String, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,15 @@ | ||
ALTER TABLE jfrogcontainerpush | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
CREATE TABLE IF NOT EXISTS jfrogcontainerpush ( | ||
Domain String, | ||
EventType String, | ||
RegistryURL String, | ||
RepositoryName String, | ||
SHAID String, | ||
Size Int32, | ||
ImageName String, | ||
Tag String, | ||
Event String, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,11 @@ | ||
ALTER TABLE getall_resources | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
CREATE TABLE IF NOT EXISTS getall_resources ( | ||
ClusterName String, | ||
Namespace String, | ||
Kind String, | ||
Resource String, | ||
Age String, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,14 @@ | ||
ALTER TABLE outdated_images | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
|
||
CREATE TABLE IF NOT EXISTS outdated_images ( | ||
ClusterName String, | ||
Namespace String, | ||
Pod String, | ||
CurrentImage String, | ||
CurrentTag String, | ||
LatestVersion String, | ||
VersionsBehind Int64, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,10 @@ | ||
ALTER TABLE kubescore | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
CREATE TABLE IF NOT EXISTS kubescore ( | ||
id UUID, | ||
namespace String, | ||
cluster_name String, | ||
recommendations String, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,21 @@ | ||
ALTER TABLE trivy_vul | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, vul_last_modified_date) | ||
TTL vul_last_modified_date + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
CREATE TABLE IF NOT EXISTS trivy_vul ( | ||
id UUID, | ||
cluster_name String, | ||
namespace String, | ||
kind String, | ||
name String, | ||
vul_id String, | ||
vul_vendor_ids String, | ||
vul_pkg_id String, | ||
vul_pkg_name String, | ||
vul_pkg_path String, | ||
vul_installed_version String, | ||
vul_fixed_version String, | ||
vul_title String, | ||
vul_severity String, | ||
vul_published_date DateTime('UTC'), | ||
vul_last_modified_date DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, vul_last_modified_date) | ||
TTL vul_last_modified_date + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,22 @@ | ||
ALTER TABLE trivy_misconfig | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
|
||
CREATE TABLE IF NOT EXISTS trivy_misconfig ( | ||
id UUID, | ||
cluster_name String, | ||
namespace String, | ||
kind String, | ||
name String, | ||
misconfig_id String, | ||
misconfig_avdid String, | ||
misconfig_type String, | ||
misconfig_title String, | ||
misconfig_desc String, | ||
misconfig_msg String, | ||
misconfig_query String, | ||
misconfig_resolution String, | ||
misconfig_severity String, | ||
misconfig_status String, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,17 @@ | ||
ALTER TABLE trivyimage | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, vul_last_modified_date) | ||
TTL vul_last_modified_date + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
CREATE TABLE IF NOT EXISTS trivyimage ( | ||
id UUID, | ||
cluster_name String, | ||
artifact_name String, | ||
vul_id String, | ||
vul_pkg_id String, | ||
vul_pkg_name String, | ||
vul_installed_version String, | ||
vul_fixed_version String, | ||
vul_title String, | ||
vul_severity String, | ||
vul_published_date DateTime('UTC'), | ||
vul_last_modified_date DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, vul_last_modified_date) | ||
TTL vul_last_modified_date + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,13 @@ | ||
ALTER TABLE dockerhubbuild | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
|
||
CREATE TABLE IF NOT EXISTS dockerhubbuild ( | ||
PushedBy String, | ||
ImageTag String, | ||
RepositoryName String, | ||
DateCreated String, | ||
Owner String, | ||
Event String, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |
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,13 @@ | ||
ALTER TABLE azurecontainerpush | ||
ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; | ||
CREATE TABLE IF NOT EXISTS azurecontainerpush ( | ||
RegistryURL String, | ||
RepositoryName String, | ||
Tag String, | ||
ImageName String, | ||
Event String, | ||
Size Int32, | ||
SHAID String, | ||
EventTime DateTime('UTC') | ||
) ENGINE = MergeTree() | ||
ORDER BY (ClusterName, EventTime) | ||
TTL EventTime + INTERVAL 30 DAY | ||
SETTINGS index_granularity = 8192; |