-
Notifications
You must be signed in to change notification settings - Fork 98
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
GH 1451 #1454
GH 1451 #1454
Conversation
@yaniveliash Thank you so much for your contribution. I see the DCO is failing on the pull request. Can you please provide sign-offs to your commits? You can checkout more details here: https://github.com/opensearch-project/observability/pull/1454/checks?check_run_id=11814492848 |
Signed-off-by: Yaniv Eliash <[email protected]>
Signed-off-by: Yaniv Eliash <[email protected]>
Signed-off-by: Yaniv Eliash <[email protected]>
Signed-off-by: Yaniv Eliash <[email protected]>
Done |
Hi @yaniveliash
|
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.
Thanks for the contribution! I left some comments for minor tweaks regarding cross-platform stability, but otherwise this is a good start.
@@ -0,0 +1,2 @@ | |||
[DEFAULT] | |||
LICENSE = MIT |
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.
should this be apache 2.0?
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.
Maybe?
I'm less familiar with opensource licenses and regulations,
I've placed it just for default value concept and will change it to whatever needed :)
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.
Apache-2.0
for compatibility with SPDX, but I agree.
}} | ||
|
||
with open(directory + '/config.json', 'w', encoding='utf-8') as f: | ||
json.dump(data, f, ensure_ascii=False, indent=4) |
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.
This would only be for local data dump - should we think about how can we add this globally, not just on this cluster? Automated way to create a PR, etc.?
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.
@derek-ho
Is that a design question for the team or something for me to rethink about?
ain't sure :)
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.
see design RFC
the script's path * Changed file and directories path concatanation to os.path.join * Linter kicked in and formatted the file. Signed-off-by: Yaniv Eliash <[email protected]>
Can you plz add a README.md describing the flow of this CLI ? |
schema: str = typer.Option( | ||
"", "--schema", "-s", help="Which schema, and at which version, to use. The data will be ingested with this schema."), | ||
catalog: str = typer.Option( | ||
"", "--catalog", "-c", help="The specific catalog to target, such as `observability` or `security`."), |
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.
can we have an functionality that will scan the /schema folder and present the results for the customer to select from ?
see https://github.com/opensearch-project/observability/tree/2.6/schema
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.
Which part to scan in particular?
folder names? (e.g. metrics and traces) or something else?
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.
Do you need the option to provide a checkout tag?
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 next PR has additional clarification on the catalog folder structure and information
see catalog.json
sys.exit(1) | ||
|
||
|
||
def main( |
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 general flow for this CLI would be as follows:
- General: select the schema from a closed list
For each collections:
"collection":[
{
"logs": [{
"info": "access logs",
"input_type":"logfile",
"dataset":"nginx.access",
"labels" :["nginx","access"],
"schema": "./schema/logs/access.json"
},
...
- Collections: select number of collections
- For Each :
- Select schema category for collection (sub folder in the schema )
- input
info
,dataset
,labels
,schema
- select
input_type
from a list given from file names (without suffixes ) under the schema folder
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.
From where can I source the list of collections and their respective schemas?
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.
see above comment ...
IMO u can mark this PR as draft for now ... |
Hi, The requirements for the tool have been considerably fleshed out. The updated spec is available on issue #1451. Are you available to keep working on this? For an initial PR, it would be sufficient to stub out the 3 described commands, |
}} | ||
|
||
with open(directory + '/config.json', 'w', encoding='utf-8') as f: | ||
json.dump(data, f, ensure_ascii=False, indent=4) |
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.
see design RFC
Closed for inactivity. The design of the CLI has changed considerably since the integrations project has taken off, so the modern form of it fills a different purpose. The current version of the CLI is available at the OpenSearch Catalog. |
Description
A CLI Tool to generate a stub for new observability integrations
Issues Resolved
#1451
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.