-
Notifications
You must be signed in to change notification settings - Fork 72
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
Support input groups #137
Support input groups #137
Changes from 2 commits
07e5d63
3231fbd
0ca1336
a51d6c1
8c774d2
c15189c
5eec7b0
a77e479
d694a4b
8244513
892b118
12be17d
accac5a
e9e7337
b1aff4e
ed04c0f
1d17ee3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- version: 1.0.0 | ||
changes: | ||
- description: initial release | ||
type: enhancement | ||
link: https://github.com/elastic/package-spec/pull/0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README for integration |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DynamoDB README file |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EC2 README file |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
format_version: 1.0.0 | ||
name: aws | ||
title: AWS | ||
version: 0.3.17 | ||
license: basic | ||
description: AWS Integration | ||
type: integration | ||
categories: | ||
- aws | ||
- cloud | ||
- network | ||
- security | ||
release: beta | ||
conditions: | ||
kibana.version: '^7.9.0' | ||
icons: | ||
- src: /img/logo_aws.svg | ||
title: logo aws | ||
size: 32x32 | ||
type: image/svg+xml | ||
screenshots: | ||
- src: /img/filebeat-aws-cloudtrail.png | ||
title: filebeat aws cloudtrail | ||
size: 1702x1063 | ||
type: image/png | ||
- src: /img/filebeat-aws-elb-overview.png | ||
title: filebeat aws elb overview | ||
size: 5120x2704 | ||
type: image/png | ||
vars: | ||
- name: access_key_id | ||
type: text | ||
title: Access Key ID | ||
- name: secret_access_key | ||
type: text | ||
title: Secret Access Key | ||
policy_templates: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mtojek is this the array from which Kibana only shows the first element today? Or is that something different? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or maybe @jen-huang can weigh in on my question since she's already watching this PR. 🙂 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, this is what Kibana uses the first element of today |
||
- name: ec2 | ||
title: AWS EC2 | ||
description: Collect logs and metrics from EC2 service | ||
inputs: | ||
- type: s3 | ||
title: Collect logs from EC2 service | ||
description: Collecting EC2 logs using S3 input | ||
policy_group: ec2_logs | ||
vars: | ||
- name: visibility_timeout | ||
type: text | ||
title: Visibility Timeout | ||
description: The duration that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. The maximum is 12 hours. | ||
- name: api_timeout | ||
type: text | ||
title: API Timeout | ||
description: The maximum duration of AWS API can take. The maximum is half of the visibility timeout value. | ||
- type: aws/metrics | ||
title: Collect metrics from EC2 service | ||
description: Collecting EC2 metrics using AWS CloudWatch | ||
policy_group: ec2_metrics | ||
vars: | ||
- name: endpoint | ||
type: text | ||
title: Endpoint | ||
default: "amazonaws.com" | ||
description: URL of the entry point for an AWS web service. | ||
icons: | ||
- src: /img/aws-ec2.svg | ||
title: AWS EC2 logo | ||
size: 32x32 | ||
type: image/svg+xml | ||
screenshots: | ||
- src: /img/aws-ec2-overview.png | ||
title: AWS EC2 Overview | ||
size: 1702x1063 | ||
type: image/png | ||
vars: | ||
- name: ec2_foobar_property | ||
type: bool | ||
title: EC2 Specific Property | ||
- name: dynamodb | ||
title: AWS DynamoDB | ||
description: Collect logs and metrics from DynamoDB service | ||
inputs: | ||
- type: s3 | ||
kaiyan-sheng marked this conversation as resolved.
Show resolved
Hide resolved
|
||
title: Collect logs from the DynamoDB service | ||
mtojek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
description: Collecting DynamoDB logs using S3 input | ||
policy_group: dynamodb_logs | ||
- type: aws/metrics | ||
title: Collect metrics from DynamoDB service | ||
description: Collecting DynamoDB metrics using AWS CloudWatch | ||
policy_group: dynamodb_metrics | ||
icons: | ||
- src: /img/aws-dynamodb.svg | ||
title: AWS DynamoDB logo | ||
size: 32x32 | ||
type: image/svg+xml | ||
screenshots: | ||
- src: /img/aws-dynamodb-overview.png | ||
title: AWS DynamoDB Overview | ||
size: 1702x1063 | ||
type: image/png | ||
vars: | ||
- name: dynamodb_foobar_property | ||
type: bool | ||
title: DynamoDB Specific Property | ||
policy_groups: | ||
mtojek marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ignoring naming on my end for now ;-) I'm wondering if the groups should be defined as part of each policy_template or global. Having it local would allow to give more descriptive descriptions. At the same time, I don't think we use it today. Global requires much fewer configuration. An alternative option is to just not have it in the package at first. Only 2-3 groups are supported, required by the spec and hardcoded into Kibana. Like this everyone is forced to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually your both options are related. I agree that global definitions would require less configuration properties and might be easier to setup. The second option is an interesting solution - we can try to kick off the feature with predefined groups and expose only them to users. We need to remember that we won't escape from these tabs in the future :) Let's collect some other comments on this idea. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer to start with the most restrictive option we can get away with and then make things less restrictive / more flexible depending on feedback from actual usage. So I'm ++ for hardcoding the group names ( How far do we take this hardcoding? I assume not just the group There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sorantis Any thoughts about hardcoding group names (logs, metrics, later on - checks)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. responded here #137 (comment) |
||
- name: ec2_logs | ||
mtojek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
title: "Logs" | ||
description: "Collect logs from EC2 service" | ||
- name: ec2_metrics | ||
title: "Metrics" | ||
description: "Collect metrics from EC2 service" | ||
- name: dynamodb_logs | ||
title: "Logs" | ||
description: "Collect logs from DynamoDB service" | ||
- name: dynamodb_metrics | ||
title: "Metrics" | ||
description: "Collect metrics from DynamoDB service" | ||
owner: | ||
github: elastic/integrations-platforms |
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.
@sorantis Could have a group/set its own categories? Is it always a subset of the package categories?
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.
In some cases it's a bigger set, i.e. DynamoDB is an
aws
service, acloud
service and adatastore
service.datastore
here is specific to DynamoDB and will not be applicable to other, for example compute related services.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.
The question is what happens if someone clicks on a category, what will the filter return:
Based on the above we should know if we need categories inside the integration sets / policy templates.
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.
Yeah and extending to what @ruflin said, it's more natural to keep DynamoDB, EC2 and others as separate packages ;)
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.
If the user clicks on say "Datastore" then they should be able to see all integrations that cover databases, data stores, etc. which also includes cloud data store services. Since the tiles are (will be) generated from policy_templates then I think it's the option 3 in our list.
This creates another question though. What happens if the user searches for AWS only, do we show AWS as a tile? The answer yes if we create a policy template (integration set) that is called AWS.
This should work automatically for other integrations, for example NGINX. When the user searches for Nginx we show the Nginx tile because there's a policy template for it, we don't have to use package level information for it.
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.
Speaking of how to express categories in the manifest file, I suggest we keep the top level categories section required, and introduce an optional categories section to a policy template.
This way each policy template will inherit top level categories and also has the option to add more policy template specific categories if needed.
Thoughts? @mtojek @ycombinator @ruflin
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.
In other words, categories on the root level (in manifest) would be common buckets valid for all policy templates, right?
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.
yes, with the option to extend this list for each policy template. I.e. for AWS common buckets could be
cloud
,aws
and DynamoDB could optionally extend this list withdatastores
by defining it at the policy template level.