-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bill O'Neil
authored and
Bill O'Neil
committed
Nov 20, 2021
1 parent
b078f73
commit 1a7c4db
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,49 @@ | ||
promtail: | ||
config: | ||
# -- The log level of the Promtail server | ||
# Must be reference in `config.file` to configure `server.log_level` | ||
# See default config in `values.yaml` | ||
logLevel: info | ||
# -- The port of the Promtail server | ||
# Must be reference in `config.file` to configure `server.http_listen_port` | ||
# See default config in `values.yaml` | ||
serverPort: 3101 | ||
# -- The Loki address to post logs to. | ||
# Must be reference in `config.file` to configure `client.url`. | ||
# See default config in `values.yaml` | ||
lokiAddress: https://{masked}@logs-prod-us-central1.grafana.net/api/prom/push | ||
# -- A section of reusable snippets that can be reference in `config.file`. | ||
# Custom snippets may be added in order to reduce redundancy. | ||
# This is especially helpful when multiple `kubernetes_sd_configs` are use which usually have large parts in common. | ||
# @default -- See `values.yaml` | ||
snippets: | ||
|
||
# If set to true, adds an additional label for the scrape job. | ||
# This helps debug the Promtail config. | ||
addScrapeJobLabel: false | ||
|
||
# -- You can put here any keys that will be directly added to the config file's 'client' block. | ||
# @default -- empty | ||
extraClientConfigs: "" | ||
|
||
# Explicitly turn off the defaults for now. | ||
# scrapeConfigs: "" | ||
|
||
# -- You can put here any additional scrape configs you want to add to the config file. | ||
# @default -- empty | ||
extraScrapeConfigs: | | ||
- job_name: sj-web | ||
pipeline_stages: | ||
- match: | ||
selector: '{app="sj-web"}' | ||
stages: | ||
- json: | ||
expressions: | ||
level: level | ||
message: message | ||
timestamp: timestamp | ||
logger_name: logger_name | ||
stack_trace: stack_trace | ||
thread_name: thread_name | ||
extraRelabelConfigs: [] |