save work
This commit is contained in:
parent
8d063632f4
commit
95576bb02b
2 changed files with 4 additions and 6 deletions
|
@ -34,6 +34,10 @@ spec:
|
|||
env:
|
||||
- name: PORT
|
||||
value: "8080"
|
||||
- name: GCP_PROJECT_ID
|
||||
value: "thinmint"
|
||||
- name: ENABLE_PROFILER
|
||||
value: "0"
|
||||
readinessProbe:
|
||||
periodSeconds: 5
|
||||
exec:
|
||||
|
@ -42,9 +46,6 @@ spec:
|
|||
periodSeconds: 5
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
||||
env:
|
||||
- name: ENABLE_PROFILER
|
||||
value: "0"
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
|
|
|
@ -37,9 +37,6 @@ import googlecloudprofiler
|
|||
|
||||
try:
|
||||
sampler = always_on.AlwaysOnSampler()
|
||||
exporter = stackdriver_exporter.StackdriverExporter(
|
||||
project_id=os.environ.get('GCP_PROJECT_ID'),
|
||||
transport=AsyncTransport)
|
||||
exporter = stackdriver_exporter.StackdriverExporter()
|
||||
tracer_interceptor = server_interceptor.OpenCensusServerInterceptor(sampler, exporter)
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue