added LOKI_FLUSH_INTERVAL_MS
This commit is contained in:
parent
4ab83d1dc2
commit
62baac7640
5 changed files with 6 additions and 87 deletions
|
|
@ -35,6 +35,8 @@ export const lokiConfig = cleanEnv(process.env, {
|
|||
LOKI_DEFAULT_LABELS: str({ default: '', desc: 'Default labels for all log entries (JSON format)' }),
|
||||
LOKI_SERVICE_LABEL: str({ default: 'stock-bot', desc: 'Service label for log entries' }),
|
||||
LOKI_ENVIRONMENT_LABEL: str({ default: 'development', desc: 'Environment label for log entries' }),
|
||||
|
||||
LOKI_FLUSH_INTERVAL_MS: num({ default: 5000, desc: 'Flush interval ms' }),
|
||||
});
|
||||
|
||||
// Export typed configuration object
|
||||
|
|
@ -58,4 +60,5 @@ export const {
|
|||
LOKI_DEFAULT_LABELS,
|
||||
LOKI_SERVICE_LABEL,
|
||||
LOKI_ENVIRONMENT_LABEL,
|
||||
LOKI_FLUSH_INTERVAL_MS,
|
||||
} = lokiConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue