This repository was archived by the owner on Feb 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
[Merged by Bors] - Logging #187
Closed
Closed
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
055491a
Add logging stack with OpenSearch and OpenSearch Dashboards
siegfriedweber 1283176
Add Vector aggregator to logging stack
siegfriedweber 92b5173
Redact OpenSearch password if desired
siegfriedweber 76cdb6f
Add discovery config map for the Vector aggregator
siegfriedweber f96516d
Use Stackable release 22.11 in the logging stack
siegfriedweber 3601687
Add logging demo and release
siegfriedweber 742a1f3
Add logging demo to the documentation
siegfriedweber a61ac0d
Set up OpenSearch Dashboard with a search view
siegfriedweber 8f75c60
Show logs endpoint for OpenSearch Dashboards
siegfriedweber 57261d1
Add columns pod and container to the log view in OpenSearch Dashboards
siegfriedweber 484f535
Add logging configuration to the logging demo
siegfriedweber a5a859c
Adapt log levels in the logging demo
siegfriedweber 42063cd
Update ZooKeeper image version in the logging demo
siegfriedweber 74e8521
Extend the documentation for the logging demo
siegfriedweber dcbd087
Set external URLs to the images in the documentation for the logging …
siegfriedweber 12da6c4
Set console log level threshold for the vector container
siegfriedweber b594ec0
Adapt log levels in the logging demo
siegfriedweber 469aa77
Update logging demo to the new image selection structure
siegfriedweber 3846cf4
Configure OpenSearch users in the logging stack and show extra infos …
siegfriedweber ba5b266
Update credentials in the Vector aggregator
siegfriedweber a544afb
Rename the column "Extra infos" into "Info"
siegfriedweber d604307
Improve documentation of the logging demo
siegfriedweber 3af6fb1
Improve the documentation of the logging demo
siegfriedweber 0d077b5
Use relative file paths in the logging demo documentation
siegfriedweber f1a4ade
Increase the size of the overview picture of the logging demo
siegfriedweber 5178b92
Use SVG image for the ZooKeeper logo
siegfriedweber 6db3677
Add the logging demo to the navigation
siegfriedweber ae5688a
Fix arrows in overview image
siegfriedweber 0d9bff4
Fix navigation link
siegfriedweber b58f8d0
Fix typo
siegfriedweber 3a95fe7
Rename "levelThreshold" to "level"
siegfriedweber 2436885
Remove repo sandbox/logging from the logging demo
siegfriedweber ccf44b3
Define Elasticsearch API version introduced in Vector 0.26.0
siegfriedweber 1ba6b41
Remove unused product
siegfriedweber 543ef33
Replace obsolet parameter in the Helm values of Vector
siegfriedweber df57f27
Adapt OpenSearch prerequisites in the documentation of the logging demo
siegfriedweber ce9c156
Merge branch 'main' into logging
siegfriedweber a0e4c54
Upgrade Helm charts for OpenSearch and OpenSearch Dashboards in stack…
siegfriedweber 98c2934
Fix Clippy warning
siegfriedweber 9dfb193
Use the main branch instead of the logging branch
siegfriedweber 24948b1
Add support for OpenSearch Dashboards to the changelog
siegfriedweber 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| apiVersion: zookeeper.stackable.tech/v1alpha1 | ||
| kind: ZookeeperCluster | ||
| metadata: | ||
| name: simple-zk | ||
| spec: | ||
| image: | ||
| productVersion: 3.8.0 | ||
| stackableVersion: 0.9.0 | ||
| vectorAggregatorConfigMapName: vector-aggregator-discovery | ||
| servers: | ||
| roleGroups: | ||
| default: | ||
| replicas: 3 | ||
| config: | ||
| logging: | ||
| enableVectorAgent: true | ||
| containers: | ||
| vector: | ||
| file: | ||
| level: WARN | ||
| zookeeper: | ||
| console: | ||
| level: INFO | ||
| file: | ||
| level: INFO | ||
| loggers: | ||
| ROOT: | ||
| level: INFO | ||
| org.apache.zookeeper.server.NettyServerCnxn: | ||
| level: NONE |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| = logging | ||
|
|
||
| This demo will | ||
|
|
||
| * Install the required Stackable operators. | ||
| * Spin up the follow data products: | ||
| ** *Apache ZooKeeper*: A centralized service for maintaining configuration | ||
| information, naming, providing distributed synchronization, and providing group | ||
| services. This demo makes its log data observable in OpenSearch Dashboards. | ||
| ** *Vector*: A tool for building observability pipelines. This demo uses Vector | ||
| as a log agent to gather and transform the logs and as an aggregator to forward | ||
| the collected logs to OpenSearch. | ||
| ** *OpenSearch*: A data store and search engine. This demo uses it to store and | ||
| index the log data. | ||
| ** *OpenSearch Dashboards*: A visualization and user interface. This demo uses | ||
| it to make the log data easily accessible to the user. | ||
| * Create a view in OpenSearch Dashboards for convenient browsing the log data. | ||
|
|
||
| You can see the deployed products as well as their relationship in the | ||
| following diagram: | ||
|
|
||
| image::logging/overview.png[] | ||
|
|
||
| == OpenSearch prerequisites | ||
|
|
||
| === Mac and Windows | ||
|
|
||
| If you are running on Mac or Windows and use Docker to run Kubernetes then set | ||
| the RAM to at least 4 GB in _Preferences_ > _Resources_. | ||
|
|
||
| === Linux | ||
|
|
||
| OpenSearch uses a mmapfs directory by default to store its indices. The default | ||
| operating system limits on mmap counts is likely to be too low – usually 65530, | ||
| which may result in out of memory exceptions. So the Linux setting | ||
| `vm.max_map_count` on the host machine where kind is running, must be set to at | ||
| least 262144. | ||
|
|
||
| To check the current value, run this command: | ||
|
|
||
| [source,console] | ||
| ---- | ||
| sysctl vm.max_map_count | ||
| ---- | ||
|
|
||
| The limit can be temporarily increased with: | ||
|
|
||
| [source,console] | ||
| ---- | ||
| sudo sysctl --write vm.max_map_count=262144 | ||
| ---- | ||
|
|
||
| To permanently increase the value, add the following line to `/etc/sysctl.conf`: | ||
|
|
||
| [source,.properties] | ||
| ---- | ||
| vm.max_map_count=262144 | ||
| ---- | ||
|
|
||
| Then run `sudo sysctl --load` to reload. | ||
|
|
||
| == Run the demo | ||
|
|
||
| The following command creates a kind cluster and installs this demo: | ||
|
|
||
| [source,console] | ||
| ---- | ||
| $ stackablectl demo install logging --kind-cluster | ||
| ---- | ||
|
|
||
| == List deployed Stackable services | ||
|
|
||
| To list the installed Stackable services run the following command: | ||
|
|
||
| [source,console] | ||
| ---- | ||
| $ stackablectl services list | ||
| ┌───────────────────────┬───────────────────────┬───────────┬──────────────────────────────┬───────────────────────────────────────────────────────────────────────────────────┐ | ||
| │ Product ┆ Name ┆ Namespace ┆ Endpoints ┆ Info │ | ||
| ╞═══════════════════════╪═══════════════════════╪═══════════╪══════════════════════════════╪═══════════════════════════════════════════════════════════════════════════════════╡ | ||
| │ opensearch-dashboards ┆ opensearch-dashboards ┆ default ┆ http http://172.18.0.5:31319 ┆ Third party service │ | ||
| │ ┆ ┆ ┆ ┆ Logs view: http://172.18.0.5:31319/app/discover?security_tenant=global#/view/logs │ | ||
| │ ┆ ┆ ┆ ┆ Username: admin, password: adminadmin │ | ||
| ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤ | ||
| │ zookeeper ┆ simple-zk ┆ default ┆ zk 172.18.0.2:32417 ┆ │ | ||
| └───────────────────────┴───────────────────────┴───────────┴──────────────────────────────┴───────────────────────────────────────────────────────────────────────────────────┘ | ||
| ---- | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| When a product instance has not finished starting yet, the service will have no | ||
| endpoint. Starting all the product instances might take a considerable amount | ||
| of time depending on your internet connectivity. In case the product is not | ||
| ready yet, a warning might be shown. | ||
| ==== | ||
|
|
||
| == Inspect the log data | ||
|
|
||
| You can have a look at the log data within the OpenSearch Dashboards web | ||
| interface by running `stackablectl services list` and opening the URL shown in | ||
| the info column of the `opensearch-dashboards` entry. In this case it is | ||
| http://172.18.0.5:31319/app/discover?security_tenant=global#/view/logs. | ||
|
|
||
| image::logging/login.png[] | ||
|
|
||
| Log in with the username `admin` and password `adminadmin`. | ||
|
|
||
| image::logging/logs.png[] | ||
|
|
||
| Inspect the logs. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: vector-aggregator-discovery | ||
| data: | ||
| ADDRESS: vector-aggregator:6000 |
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.