|
| 1 | +promtail: |
| 2 | + config: |
| 3 | + # -- The log level of the Promtail server |
| 4 | + # Must be reference in `config.file` to configure `server.log_level` |
| 5 | + # See default config in `values.yaml` |
| 6 | + logLevel: info |
| 7 | + # -- The port of the Promtail server |
| 8 | + # Must be reference in `config.file` to configure `server.http_listen_port` |
| 9 | + # See default config in `values.yaml` |
| 10 | + serverPort: 3101 |
| 11 | + # -- The Loki address to post logs to. |
| 12 | + # Must be reference in `config.file` to configure `client.url`. |
| 13 | + # See default config in `values.yaml` |
| 14 | + lokiAddress: https://{masked}@logs-prod-us-central1.grafana.net/api/prom/push |
| 15 | + # -- A section of reusable snippets that can be reference in `config.file`. |
| 16 | + # Custom snippets may be added in order to reduce redundancy. |
| 17 | + # This is especially helpful when multiple `kubernetes_sd_configs` are use which usually have large parts in common. |
| 18 | + # @default -- See `values.yaml` |
| 19 | + snippets: |
| 20 | + |
| 21 | + # If set to true, adds an additional label for the scrape job. |
| 22 | + # This helps debug the Promtail config. |
| 23 | + addScrapeJobLabel: false |
| 24 | + |
| 25 | + # -- You can put here any keys that will be directly added to the config file's 'client' block. |
| 26 | + # @default -- empty |
| 27 | + extraClientConfigs: "" |
| 28 | + |
| 29 | + # Explicitly turn off the defaults for now. |
| 30 | + # scrapeConfigs: "" |
| 31 | + |
| 32 | + # -- You can put here any additional scrape configs you want to add to the config file. |
| 33 | + # @default -- empty |
| 34 | + extraScrapeConfigs: | |
| 35 | + - job_name: sj-web |
| 36 | + pipeline_stages: |
| 37 | + - match: |
| 38 | + selector: '{app="sj-web"}' |
| 39 | + stages: |
| 40 | + - json: |
| 41 | + expressions: |
| 42 | + level: level |
| 43 | + message: message |
| 44 | + timestamp: timestamp |
| 45 | + logger_name: logger_name |
| 46 | + stack_trace: stack_trace |
| 47 | + thread_name: thread_name |
| 48 | +
|
| 49 | + extraRelabelConfigs: [] |
0 commit comments