Skip to content

Commit 023acb0

Browse files
authored
sourcegraph: add json_gcp log format in gcp example overrides (#330)
1 parent 5146427 commit 023acb0

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

charts/sourcegraph/examples/gcp/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Deploy Sourcegraph on GKE and use [Container-native load balancing through Ingress] to make Sourcegraph publicly accessible.
44

5+
Additionally, it will configure output logs format that works better with GCP Logging by setting `SRC_LOG_FORMAT=json_gcp` in all services.
6+
57
## Get started
68

79
Deploy or upgrade Sourcegraph Helm chart with the provided [override.yaml](./override.yaml). This will create a public-facing load balancer that supports HTTP traffic. You can then access your deployment via the IP of the load balancer.

charts/sourcegraph/examples/gcp/override.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ frontend:
1111
cloud.google.com/neg: '{"ingress": true}'
1212
# Reference the `BackendConfig` CR created below
1313
beta.cloud.google.com/backend-config: '{"default": "sourcegraph-frontend"}'
14+
env:
15+
SRC_LOG_FORMAT:
16+
value: json_gcp
1417

1518
storageClass:
1619
create: true
@@ -30,3 +33,68 @@ extraResources:
3033
timeoutSec: 5
3134
requestPath: /ready
3235
port: 6060 # we use a custom port to perform healthcheck
36+
37+
migrator:
38+
env:
39+
SRC_LOG_FORMAT:
40+
value: json_gcp
41+
42+
githubProxy:
43+
env:
44+
SRC_LOG_FORMAT:
45+
value: json_gcp
46+
47+
gitserver:
48+
env:
49+
SRC_LOG_FORMAT:
50+
value: json_gcp
51+
52+
grafana:
53+
env:
54+
SRC_LOG_FORMAT:
55+
value: json_gcp
56+
57+
indexedSearch:
58+
env:
59+
SRC_LOG_FORMAT:
60+
value: json_gcp
61+
62+
indexedSearchIndexer:
63+
env:
64+
SRC_LOG_FORMAT:
65+
value: json_gcp
66+
67+
blobstore:
68+
env:
69+
SRC_LOG_FORMAT:
70+
value: json_gcp
71+
72+
preciseCodeIntel:
73+
env:
74+
SRC_LOG_FORMAT:
75+
value: json_gcp
76+
77+
repoUpdater:
78+
env:
79+
SRC_LOG_FORMAT:
80+
value: json_gcp
81+
82+
searcher:
83+
env:
84+
SRC_LOG_FORMAT:
85+
value: json_gcp
86+
87+
symbols:
88+
env:
89+
SRC_LOG_FORMAT:
90+
value: json_gcp
91+
92+
syntectServer:
93+
env:
94+
SRC_LOG_FORMAT:
95+
value: json_gcp
96+
97+
worker:
98+
env:
99+
SRC_LOG_FORMAT:
100+
value: json_gcp

0 commit comments

Comments
 (0)