-
Couldn't load subscription status.
- Fork 128
Update new package README template #2707
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits Select commit Hold shift + click to select a range
9c51732 Update new package README template
mjwolf c2323d2 Only create new files in integration packages
mjwolf 65c93b4 Fix whitespace
mjwolf 70e4bfd Use new template for the test apache package readme
mjwolf ecf9bed Merge remote-tracking branch 'upstream/main' into docs-template
mjwolf 89b34ec Merge remote-tracking branch 'upstream/main' into docs-template
mjwolf bd327d0 Merge remote-tracking branch 'upstream/main' into docs-template
mjwolf d901942 Updates for new doc template format
mjwolf fcef419 automatically prepend generated info to generated files; generate for…
kgeller d7fd5df fixing tests
kgeller 031eeaf formatting
kgeller 962358e only generate to the _dev folder if not a content type, as they have …
kgeller e03d736 generated notice to test integrations
kgeller 402120c missed some generated notices
kgeller 80d6c24 last one hopefully
kgeller 9ebe678 Merge branch 'main' of github.com:elastic/elastic-package into docs-t…
kgeller 4688fad remove header function from template; fixing test and tweaking the te…
kgeller 3977bc8 updating docs
kgeller 10a490f Merge branch 'main' of github.com:elastic/elastic-package into docs-t…
kgeller 0e6cc14 updating templated based on impl feedback from ti_abusech
kgeller 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 hidden or 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 hidden or 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 hidden or 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
134 changes: 84 additions & 50 deletions 134 internal/packages/archetype/_static/package-docs-readme.md.tmpl
This file contains hidden or 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,84 +1,118 @@ | ||
| <!-- Use this template language as a starting point, replacing {placeholder text} with details about the integration. --> | ||
| <!-- Find more detailed documentation guidelines in https://github.com/elastic/integrations/blob/main/docs/documentation_guidelines.md --> | ||
| <!-- This template can be used as a starting point for writing documentation for your new integration. For each section, fill in the details | ||
| described in the comments. | ||
| | ||
| # {{.Manifest.Title}} | ||
| Find more detailed documentation guidelines in https://www.elastic.co/docs/extend/integrations/documentation-guidelines | ||
| --> | ||
| | ||
| <!-- The {{.Manifest.Title}} integration allows you to monitor {name of service}. {name of service} is {describe service}. | ||
| # {{.Manifest.Title}} Integration for Elastic | ||
| | ||
| Use the {{.Manifest.Title}} integration to {purpose}. Then visualize that data in Kibana, create alerts to notify you if something goes wrong, and reference {data stream type} when troubleshooting an issue. | ||
| ## Overview | ||
| | ||
| For example, if you wanted to {sample use case} you could {action}. Then you can {visualize|alert|troubleshoot} by {action}. --> | ||
| <!-- Complete this section with a short summary of what data this integration collects and what use cases it enables --> | ||
| The {{.Manifest.Title}} integration for Elastic enables collection of ... | ||
| This integration facilitates ... | ||
| | ||
| ## Data streams | ||
| ### Compatibility | ||
| | ||
| <!-- The {{.Manifest.Title}} integration collects {one|two} type{s} of data streams: {logs and/or metrics}. --> | ||
| <!-- Complete this section with information on what 3rd party software or hardware versions this integration is compatible with --> | ||
| This integration is compatible with ... | ||
| | ||
| <!-- If applicable --> | ||
| <!-- **Logs** help you keep a record of events happening in {service}. | ||
| Log data streams collected by the {name} integration include {sample data stream(s)} and more. See more details in the [Logs](#logs-reference). --> | ||
| ### How it works | ||
| | ||
| <!-- If applicable --> | ||
| <!-- **Metrics** give you insight into the state of {service}. | ||
| Metric data streams collected by the {name} integration include {sample data stream(s)} and more. See more details in the [Metrics](#metrics-reference). --> | ||
| <!-- Add a high level overview on how this integration works. For example, does it collect data from API calls or recieving data from a network or file.--> | ||
| | ||
| <!-- Optional: Any additional notes on data streams --> | ||
| ## What data does this integration collect? | ||
| | ||
| ## Requirements | ||
| <!-- Complete this section with information on what types of data the integration collects, and link to reference documentation if available --> | ||
| The {{.Manifest.Title}} integration collects log messages of the following types: | ||
| * ... | ||
| | ||
| You need Elasticsearch for storing and searching your data and Kibana for visualizing and managing it. | ||
| You can use our hosted Elasticsearch Service on Elastic Cloud, which is recommended, or self-manage the Elastic Stack on your own hardware. | ||
| ### Supported use cases | ||
| | ||
| <!-- | ||
| Optional: Other requirements including: | ||
| * System compatibility | ||
| * Supported versions of third-party products | ||
| * Permissions needed | ||
| * Anything else that could block a user from successfully using the integration | ||
| --> | ||
| <!-- Add details on the use cases that can be enabled by using this integration. Explain why a user would want to install and use this integration. --> | ||
| | ||
| ## Setup | ||
| ## What do I need to use this integration? | ||
| | ||
| <!-- Any prerequisite instructions --> | ||
| <!-- List any vendor-specific prerequisites needed before starting to install the integration. --> | ||
| | ||
| For step-by-step instructions on how to set up an integration, see the | ||
| [Getting started](https://www.elastic.co/guide/en/welcome-to-elastic/current/getting-started-observability.html) guide. | ||
| ## How do I deploy this integration? | ||
| | ||
| <!-- Additional set up instructions --> | ||
| ### Agent-based deployment | ||
| | ||
| <!-- If applicable --> | ||
| <!-- ## Logs reference --> | ||
| Elastic Agent must be installed. For more details, check the Elastic Agent [installation instructions](docs-content://reference/fleet/install-elastic-agents.md). You can install only one Elastic Agent per host. | ||
| | ||
| <!-- Repeat for each data stream of the current type --> | ||
| <!-- ### {Data stream name} | ||
| Elastic Agent is required to stream data from the syslog or log file receiver and ship the data to Elastic, where the events will then be processed via the integration's ingest pipelines. | ||
| | ||
| <!-- If agentless is available for this integration, we'll want to include that here as well. --> | ||
| <!-- ### Agentless deployment | ||
| | ||
| Agentless deployments are only supported in Elastic Serverless and Elastic Cloud environments. Agentless deployments provide a means to ingest data while avoiding the orchestration, management, and maintenance needs associated with standard ingest infrastructure. Using an agentless deployment makes manual agent deployment unnecessary, allowing you to focus on your data instead of the agent that collects it. | ||
| | ||
| For more information, refer to [Agentless integrations](https://www.elastic.co/guide/en/serverless/current/security-agentless-integrations.html) and [Agentless integrations FAQ](https://www.elastic.co/guide/en/serverless/current/agentless-integration-troubleshooting.html) | ||
| --> | ||
| | ||
| ### Onboard / configure | ||
| | ||
| <!-- List the steps that will need to be followed in order to completely set up a working inte completely set up a working integration. | ||
| For integrations that support multiple input types, be sure to add steps for all inputs. | ||
| --> | ||
| | ||
| ### Validation | ||
| | ||
| The `{data stream name}` data stream provides events from {source} of the following types: {list types}. --> | ||
| <!-- How can the user test whether the integration is working? Including example commands or test files if applicable --> | ||
| | ||
| <!-- Optional --> | ||
| <!-- #### Example | ||
| ## Troubleshooting | ||
| | ||
| An example event for `{data stream name}` looks as following: | ||
| For help with Elastic ingest tools, check [Common problems](https://www.elastic.co/docs/troubleshoot/ingest/fleet/common-problems). | ||
| | ||
| {code block with example} --> | ||
| <!-- Add any vendor specific troubleshooting here. | ||
| | ||
| <!-- #### Exported fields | ||
| Are there common issues or “gotchas” for deploying this integration? If so, how can they be resolved? | ||
| If applicable, links to the third-party software’s troubleshooting documentation. | ||
| --> | ||
| | ||
| ## Scaling | ||
| | ||
| {insert table} --> | ||
| For more information on architectures that can be used for scaling this integration, check the [Ingest Architectures](https://www.elastic.co/docs/manage-data/ingest/ingest-reference-architectures) documentation. | ||
| | ||
| <!-- If applicable --> | ||
| <!-- ## Metrics reference --> | ||
| <!-- Add any vendor specific scaling information here --> | ||
| | ||
| ## Reference | ||
| | ||
| <!-- Repeat for each data stream of the current type --> | ||
| <!-- ### {Data stream name} | ||
| | ||
| The `{data stream name}` data stream provides events from {source} of the following types: {list types}. --> | ||
| The `{data stream name}` data stream provides events from {source} of the following types: {list types}. | ||
| | ||
| For each data_stream_name, include an optional summary of the datastream, the exported fields reference table and the sample event. --> | ||
| | ||
| <!-- The fields template function will be replaced by a generated list of all fields from the `fields/` directory of the data stream when building the integration. --> | ||
| <!-- | ||
| #### {data stream name} fields | ||
| | ||
| To include a generated list of fields from the `fields/` directory, uncomment and use: | ||
| (Remove the spaces between curly braces when using) | ||
| { { fields "data_stream_name" } } | ||
jsoriano marked this conversation as resolved. Show resolved Hide resolved | ||
| | ||
| <!-- Optional --> | ||
| <!-- #### Example | ||
| --> | ||
| | ||
| <!-- The event template function will be replace by a sample event, taken from `sample_event.json`, when building this integration. --> | ||
| <!-- | ||
| | ||
| To include a sample event from `sample_event.json`, uncomment and use: | ||
| (Remove the spaces between curly braces when using) | ||
| { { event "data_stream_name" } } | ||
jsoriano marked this conversation as resolved. Show resolved Hide resolved | ||
| | ||
| --> | ||
| | ||
| An example event for `{data stream name}` looks as following: | ||
| ### Inputs used | ||
| | ||
| {code block with example} --> | ||
| <!-- List inputs used in this integration, and link to the documentation --> | ||
| These inputs can be used with this integration: | ||
| * ... | ||
| | ||
| <!-- #### Exported fields | ||
| ### API usage | ||
| | ||
| {insert table} --> | ||
| <!-- For integrations that use APIs to collect data, document all the APIs that are used, and link to relevent information --> | ||
| These APIs are used with this integration: | ||
| * ... | ||
3 changes: 3 additions & 0 deletions 3 internal/packages/archetype/_static/package-sample-event.json.tmpl
This file contains hidden or 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,3 @@ | ||
| { | ||
| "description": "This is an example sample-event for {{.Manifest.Title}}. Replace it with a real sample event. Hint: If system tests exist, running `elastic-package test system --generate` will generate this file." | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
2 changes: 2 additions & 0 deletions 2 test/packages/false_positives/docker_failing_test_service/docs/README.md
This file contains hidden or 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 +1,3 @@ | ||
| <!-- NOTICE: Do not edit this file manually.--> | ||
| <!-- This file is automatically generated by Elastic Package --> | ||
| # Test integration |
2 changes: 2 additions & 0 deletions 2 test/packages/false_positives/httpjson_false_positive_asserts/docs/README.md
This file contains hidden or 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
2 changes: 2 additions & 0 deletions 2 test/packages/false_positives/long_integers_as_json_numbers/docs/README.md
This file contains hidden or 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
2 changes: 2 additions & 0 deletions 2 test/packages/false_positives/nginx_missing_deployer/docs/README.md
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.