Skip to content

Commit

Permalink
Merge pull request #173 from craigfurman/log-format
Browse files Browse the repository at this point in the history
store, query, frontend: add log.format flag
  • Loading branch information
metalmatze authored Nov 25, 2020
2 parents 39435d2 + 82e824b commit bc95ea6
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
### Added

- [#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

### Fixed

Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/store-shard0-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
- args:
- store
- --log.level=info
- --log.format=logfmt
- --data-dir=/var/thanos/store
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/store-shard1-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
- args:
- store
- --log.level=info
- --log.format=logfmt
- --data-dir=/var/thanos/store
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/store-shard2-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
- args:
- store
- --log.level=info
- --log.format=logfmt
- --data-dir=/var/thanos/store
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-query-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ spec:
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:9090
- --log.level=debug
- --log.format=logfmt
- --query.replica-label=prometheus_replica
- --query.replica-label=rule_replica
- --store=dnssrv+_grpc._tcp.thanos-receive.thanos.svc.cluster.local
Expand Down
2 changes: 2 additions & 0 deletions examples/all/manifests/thanos-query-frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
containers:
- args:
- query-frontend
- --log.level=info
- --log.format=logfmt
- --query-frontend.compress-responses
- --http-address=0.0.0.0:9090
- --query-frontend.downstream-url=http://thanos-query.thanos.svc.cluster.local.:9090
Expand Down
1 change: 1 addition & 0 deletions examples/all/manifests/thanos-store-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
- args:
- store
- --log.level=info
- --log.format=logfmt
- --data-dir=/var/thanos/store
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
Expand Down
3 changes: 3 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-query-frontend.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ local defaults = {
queryRangeCache: {},
labelsCache: {},
logLevel: 'info',
logFormat: 'logfmt',
resources: {},
serviceMonitor: false,
ports: {
Expand Down Expand Up @@ -124,6 +125,8 @@ function(params) {
image: tqf.config.image,
args: [
'query-frontend',
'--log.level=' + tqf.config.logLevel,
'--log.format=' + tqf.config.logFormat,
'--query-frontend.compress-responses',
'--http-address=0.0.0.0:%d' % tqf.config.ports.http,
'--query-frontend.downstream-url=%s' % tqf.config.downstreamURL,
Expand Down
2 changes: 2 additions & 0 deletions jsonnet/kube-thanos/kube-thanos-query.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ local defaults = {
},
serviceMonitor: false,
logLevel: 'info',
logFormat: 'logfmt',
tracing: {},

commonLabels:: {
Expand Down Expand Up @@ -83,6 +84,7 @@ function(params) {
'--grpc-address=0.0.0.0:%d' % tq.config.ports.grpc,
'--http-address=0.0.0.0:%d' % tq.config.ports.http,
'--log.level=' + tq.config.logLevel,
'--log.format=' + tq.config.logFormat,
] + [
'--query.replica-label=%s' % labelName
for labelName in tq.config.replicaLabels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
objectStorageConfig: error 'must provide objectStorageConfig',
ignoreDeletionMarksDelay: '24h',
logLevel: 'info',
logFormat: 'logfmt',
resources: {},
volumeClaimTemplate: {},
serviceMonitor: false,
Expand Down
1 change: 1 addition & 0 deletions jsonnet/kube-thanos/kube-thanos-store.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function(params) {
args: [
'store',
'--log.level=' + ts.config.logLevel,
'--log.format=' + ts.config.logFormat,
'--data-dir=/var/thanos/store',
'--grpc-address=0.0.0.0:%d' % ts.config.ports.grpc,
'--http-address=0.0.0.0:%d' % ts.config.ports.http,
Expand Down
1 change: 1 addition & 0 deletions manifests/thanos-query-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ spec:
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:9090
- --log.level=info
- --log.format=logfmt
- --query.replica-label=prometheus_replica
- --query.replica-label=rule_replica
- --store=dnssrv+_grpc._tcp.thanos-store.thanos.svc.cluster.local
Expand Down
1 change: 1 addition & 0 deletions manifests/thanos-store-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
- args:
- store
- --log.level=info
- --log.format=logfmt
- --data-dir=/var/thanos/store
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
Expand Down

0 comments on commit bc95ea6

Please sign in to comment.