Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6fb1251
Add structs and functions necessary for log aggregation
siegfriedweber Nov 28, 2022
72a1ac9
Add Vector container builder
siegfriedweber Nov 28, 2022
2e30ccd
Add Vector config file name as constant
siegfriedweber Nov 28, 2022
c9f8514
Add custom container log config
siegfriedweber Nov 30, 2022
817fd5e
Use resolved product image for the Vector container
siegfriedweber Dec 1, 2022
f163e71
Make some fields in the logging structure optional
siegfriedweber Dec 1, 2022
ac141d0
Set Vector log level according to the configured root log level
siegfriedweber Dec 5, 2022
bc77bc1
Make log config optional for the vector_container function
siegfriedweber Dec 5, 2022
0920ca2
Rename "levelThreshold" to "level"
siegfriedweber Dec 8, 2022
7a4e2e4
Document logging modules
siegfriedweber Dec 8, 2022
29f5113
Add modules for log aggregation to the changelog
siegfriedweber Dec 8, 2022
713e97a
Add examples to the documentation of the logging module
siegfriedweber Dec 9, 2022
88bbc78
Move modules framework and spec into the module product_logging; Expose
siegfriedweber Dec 12, 2022
56bc7b2
Map log level FATAL to ERROR in logback
siegfriedweber Dec 12, 2022
1ecb677
Fix Vector log levels
siegfriedweber Dec 12, 2022
bdb3930
Fix log file size if less than 2 MB are requested
siegfriedweber Dec 13, 2022
b22897a
Change log file size parameter from MB to MiB
siegfriedweber Dec 14, 2022
76ba35c
Extend logs with namespace, cluster, role, and role group
siegfriedweber Dec 15, 2022
a787252
Extend the documentation for max_size_in_mib
siegfriedweber Dec 15, 2022
6b1785e
Merge branch 'main' into logging
siegfriedweber Dec 15, 2022
0840dd9
Fix RustDoc warning
siegfriedweber Dec 16, 2022
203f45d
Rename parameters max_size_in_mb to max_size_in_mib
siegfriedweber Dec 16, 2022
a6e7d97
Append stack traces to the logging messages
siegfriedweber Dec 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Added

- Modules for log aggregation added ([#517]).

[#517]: https://github.com/stackabletech/operator-rs/pull/517

## [0.28.8] - 2022-12-08

### Added
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod memory;
pub mod namespace;
pub mod pod_utils;
pub mod product_config_utils;
pub mod product_logging;
pub mod role_utils;
pub mod utils;
pub mod validation;
Expand Down
3 changes: 0 additions & 3 deletions src/product_config_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,16 @@ impl<T: Configuration + ?Sized> Configuration for Box<T> {
}

/// Type to sort config properties via kind (files, env, cli), via groups and via roles.
/// HashMap<Role, HashMap<RoleGroup, HashMap<PropertyNameKind, BTreeMap<PropertyName, PropertyValue>>>>
pub type RoleConfigByPropertyKind =
HashMap<String, HashMap<String, HashMap<PropertyNameKind, BTreeMap<String, Option<String>>>>>;

/// Type to sort config properties via kind (files, env, cli) and via groups.
/// HashMap<RoleGroup, HashMap<PropertyNameKind, BTreeMap<PropertyName, PropertyValue>>>
pub type RoleGroupConfigByPropertyKind =
HashMap<String, HashMap<PropertyNameKind, BTreeMap<String, Option<String>>>>;

/// Type to sort config properties via kind (files, env, cli), via groups and via roles. This
/// is the validated output to be used in other operators. The difference to [`RoleConfigByPropertyKind`]
/// is that the properties BTreeMap does not contain any options.
/// /// HashMap<Role, HashMap<RoleGroup, HashMap<PropertyNameKind, BTreeMap<PropertyName, Option<PropertyValue>>>>>
pub type ValidatedRoleConfigByPropertyKind =
HashMap<String, HashMap<String, HashMap<PropertyNameKind, BTreeMap<String, String>>>>;

Expand Down
Loading