-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add integrations queries for Flint #1150
Merged
Merged
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
283d663
Switch heading types on setup page
Swiddis d230445
Merge remote-tracking branch 'upstream/main' into new-headers
Swiddis 55357df
Add alb and nginx create table queries
Swiddis 900c02d
Merge remote-tracking branch 'upstream/main' into integ-queries
Swiddis 725a4b4
Switch from toast to callout for set up failures
Swiddis 75d4510
Fix label selection for truncated labels
Swiddis f89bc70
Fix button color
Swiddis a83df4c
Fix tests
Swiddis 3c30aba
Remove loading progress bar
Swiddis 78fa19c
Remove unused imports
Swiddis 9f13cf0
Refactor labels to make distinctions more semantically useful
Swiddis 08dfb97
Merge remote-tracking branch 'upstream/main' into integ-loading
Swiddis f9a397d
Merge branch 'integ-loading' into integ-tags
Swiddis 2c048e8
Merge branch 'integ-tags' into integ-queries
Swiddis 1a01617
Add running queries for ELB integration
Swiddis 47cc88b
Update tests
Swiddis e7ffde6
Improve error handling for integration creation
Swiddis 385db93
Merge remote-tracking branch 'upstream/main' into integ-queries
Swiddis 23cd257
Resolve missed merge
Swiddis dba790b
Fix another missed merge marker
Swiddis 744e7b3
Remove buggy table from nginx
Swiddis 08867b5
Improve validation for integration setup
Swiddis c337aee
Make create flow actually use new field
Swiddis 1f28a3c
Add onblur check to validation for s3 link
Swiddis 0c266a6
Update queries for parsing raw logs
Swiddis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
38 changes: 38 additions & 0 deletions
38
server/adaptors/integrations/__data__/repository/aws_elb/assets/create_mv-1.0.0.sql
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,38 @@ | ||
CREATE MATERIALIZED VIEW | ||
{table_name}_mview AS | ||
SELECT | ||
type as `aws.elb.elb_type`, | ||
time as `@timestamp`, | ||
elb as `aws.elb.elb_name`, | ||
client_ip as `aws.elb.client.ip`, | ||
client_port as `aws.elb.client.port`, | ||
target_ip as `aws.elb.target_ip`, | ||
target_port as `aws.elb.target_port`, | ||
request_processing_time as `aws.elb.request_processing_time`, | ||
target_processing_time as `aws.elb.target_processing_time`, | ||
response_processing_time as `aws.elb.response_processing_time`, | ||
elb_status_code as `aws.elb.elb_status_code`, | ||
target_status_code as `aws.elb.target_status_code`, | ||
received_bytes as `aws.elb.received_bytes`, | ||
sent_bytes as `aws.elb.sent_bytes`, | ||
request_verb as `http.request.method`, | ||
request_url as `url.full`, | ||
request_proto as `url.schema`, | ||
user_agent as `http.user_agent.name`, | ||
ssl_cipher as `aws.elb.ssl_cipher`, | ||
ssl_protocol as `aws.elb.ssl_protocol`, | ||
target_group_arn as `aws.elb.target_group_arn`, | ||
trace_id as `traceId`, | ||
domain_name as `url.domain`, | ||
chosen_cert_arn as `aws.elb.chosen_cert_arn`, | ||
matched_rule_priority as `aws.elb.matched_rule_priority`, | ||
request_creation_time as `aws.elb.request_creation_time`, | ||
actions_executed as `aws.elb.actions_executed`, | ||
redirect_url as `aws.elb.redirect_url`, | ||
lambda_error_reason as `aws.elb.lambda_error_reason`, | ||
target_port_list as `aws.elb.target_port_list`, | ||
target_status_code_list as `aws.elb.target_status_code_list`, | ||
classification as `aws.elb.classification`, | ||
classification_reason as `aws.elb.classification_reason` | ||
FROM | ||
{table_name}; |
37 changes: 37 additions & 0 deletions
37
server/adaptors/integrations/__data__/repository/aws_elb/assets/create_table-1.0.0.sql
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,37 @@ | ||
CREATE EXTERNAL TABLE IF NOT EXISTS {table_name} ( | ||
type string, | ||
time timestamp, | ||
elb string, | ||
client_ip string, | ||
client_port bigint, | ||
target_ip string, | ||
target_port bigint, | ||
request_processing_time double, | ||
target_processing_time double, | ||
response_processing_time double, | ||
elb_status_code bigint, | ||
target_status_code string, | ||
received_bytes bigint, | ||
sent_bytes bigint, | ||
request_verb string, | ||
request_url string, | ||
request_proto string, | ||
user_agent string, | ||
ssl_cipher string, | ||
ssl_protocol string, | ||
target_group_arn string, | ||
trace_id string, | ||
domain_name string, | ||
chosen_cert_arn string, | ||
matched_rule_priority string, | ||
request_creation_time string, | ||
actions_executed string, | ||
redirect_url string, | ||
lambda_error_reason string, | ||
target_port_list string, | ||
target_status_code_list string, | ||
classification string, | ||
classification_reason string | ||
) | ||
USING parquet | ||
LOCATION '{s3_bucket_location}'; |
1 change: 1 addition & 0 deletions
1
server/adaptors/integrations/__data__/repository/aws_elb/assets/refresh_mv-1.0.0.sql
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 @@ | ||
REFRESH MATERIALIZED VIEW {table_name}_mview; |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why catalog here?
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.
Because the form isn't referring to a table, I asked around for a better name.