Skip to content

Commit

Permalink
Merge pull request #178 from craigfurman/log-format-elsewhere
Browse files Browse the repository at this point in the history
compact, rule, tools: add log format flag
  • Loading branch information
kakkoyun committed Nov 26, 2020
2 parents cd6b00d + e063e9c commit 6a4a174
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel

- [#170](https://github.com/thanos-io/kube-thanos/pull/170) Add Store shard and Receive hashring helpers
- [#173](https://github.com/thanos-io/kube-thanos/pull/173) Store, query, frontend: add log.format flag
- [#178](https://github.com/thanos-io/kube-thanos/pull/178) compact, rule, tools: add log format flag

### Fixed

Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-bucket-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
- bucket
- web
- --log.level=info
- --log.format=logfmt
- --objstore.config=$(OBJSTORE_CONFIG)
- |-
--tracing.config="config":
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-compact-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
- compact
- --wait
- --log.level=info
- --log.format=logfmt
- --objstore.config=$(OBJSTORE_CONFIG)
- --data-dir=/var/thanos/compact
- --debug.accept-malformed-index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
- args:
- receive
- --log.level=info
- --log.format=logfmt
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
- --remote-write.address=0.0.0.0:19291
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
- args:
- receive
- --log.level=info
- --log.format=logfmt
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
- --remote-write.address=0.0.0.0:19291
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-receive-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ spec:
- args:
- receive
- --log.level=info
- --log.format=logfmt
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
- --remote-write.address=0.0.0.0:19291
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-rule-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
- args:
- rule
- --log.level=info
- --log.format=logfmt
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
- --objstore.config=$(OBJSTORE_CONFIG)
Expand Down
2 changes: 2 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-bucket.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local defaults = {
objectStorageConfig: error 'must provide objectStorageConfig',
resources: {},
logLevel: 'info',
logFormat: 'logfmt',
ports: {
http: 10902,
},
Expand Down Expand Up @@ -71,6 +72,7 @@ function(params) {
'bucket',
'web',
'--log.level=' + tb.config.logLevel,
'--log.format=' + tb.config.logFormat,
'--objstore.config=$(OBJSTORE_CONFIG)',
] + (
if std.length(tb.config.tracing) > 0 then [
Expand Down
2 changes: 2 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-compact.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local defaults = {
objectStorageConfig: error 'must provide objectStorageConfig',
resources: {},
logLevel: 'info',
logFormat: 'logfmt',
serviceMonitor: false,
volumeClaimTemplate: {},
retentionResolutionRaw: '0d',
Expand Down Expand Up @@ -81,6 +82,7 @@ function(params) {
'compact',
'--wait',
'--log.level=' + tc.config.logLevel,
'--log.format=' + tc.config.logFormat,
'--objstore.config=$(OBJSTORE_CONFIG)',
'--data-dir=/var/thanos/compact',
'--debug.accept-malformed-index',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
volumeClaimTemplate: {},
retention: '15d',
logLevel: 'info',
logFormat: 'logfmt',
resources: {},
serviceMonitor: false,
ports: {
Expand Down
1 change: 1 addition & 0 deletions jsonnet/kube-thanos/kube-thanos-receive.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function(params) {
args: [
'receive',
'--log.level=' + tr.config.logLevel,
'--log.format=' + tr.config.logFormat,
'--grpc-address=0.0.0.0:%d' % tr.config.ports.grpc,
'--http-address=0.0.0.0:%d' % tr.config.ports.http,
'--remote-write.address=0.0.0.0:%d' % tr.config.ports['remote-write'],
Expand Down
2 changes: 2 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-rule.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local defaults = {
alertmanagersURLs: [],
queriers: [],
logLevel: 'info',
logFormat: 'logfmt',
resources: {},
serviceMonitor: false,
ports: {
Expand Down Expand Up @@ -83,6 +84,7 @@ function(params) {
[
'rule',
'--log.level=' + tr.config.logLevel,
'--log.format=' + tr.config.logFormat,
'--grpc-address=0.0.0.0:%d' % tr.config.ports.grpc,
'--http-address=0.0.0.0:%d' % tr.config.ports.http,
'--objstore.config=$(OBJSTORE_CONFIG)',
Expand Down

0 comments on commit 6a4a174

Please sign in to comment.