Skip to content

Commit

Permalink
Add namespace suffix in ebpf profiler job
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 committed Jan 23, 2024
1 parent bd44ad8 commit 1aa56b2
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,22 @@ spec:
- -c
- >
/swctl --base-url={{ template "skywalking.oap.address.http" . }}/graphql profiling ebpf create fixed \
--service-name mesh-svr::recommendation --labels mesh-envoy --duration=9m --target-type ON_CPU;
--service-name mesh-svr::recommendation.{{ .Values.sampleServices.namespace }} --labels mesh-envoy --duration=9m --target-type ON_CPU;
/swctl --base-url={{ template "skywalking.oap.address.http" . }}/graphql profiling ebpf create fixed \
--service-name mesh-svr::app --labels mesh-envoy --duration=9m --target-type ON_CPU;
--service-name mesh-svr::app.{{ .Values.sampleServices.namespace }} --labels mesh-envoy --duration=9m --target-type ON_CPU;
/swctl --base-url={{ template "skywalking.oap.address.http" . }}/graphql profiling ebpf create fixed \
--service-name mesh-svr::songs --labels mesh-envoy --duration=9m --target-type ON_CPU;
--service-name mesh-svr::songs.{{ .Values.sampleServices.namespace }} --labels mesh-envoy --duration=9m --target-type ON_CPU;
/swctl --base-url={{ template "skywalking.oap.address.http" . }}/graphql profiling ebpf create fixed \
--service-name mesh-svr::gateway --labels mesh-envoy --duration=9m --target-type ON_CPU;
--service-name mesh-svr::gateway.{{ .Values.sampleServices.namespace }} --labels mesh-envoy --duration=9m --target-type ON_CPU;
/swctl --base-url={{ template "skywalking.oap.address.http" . }}/graphql profiling ebpf create fixed \
--service-name mesh-svr::songs --labels mesh-envoy --duration=9m --target-type OFF_CPU;
--service-name mesh-svr::songs.{{ .Values.sampleServices.namespace }} --labels mesh-envoy --duration=9m --target-type OFF_CPU;
apk update && apk add yq;
/swctl --base-url={{ template "skywalking.oap.address.http" . }}/graphql profiling ebpf create network \
--sampling-config=/profiling/network-profiling-sampling.yaml \
--service-name=mesh-svr::recommendation \
--instance-name=$(/swctl --base-url={{ template "skywalking.oap.address.http" . }}/graphql instance ls --service-name mesh-svr::recommendation|yq e '.[0].name' -);
--service-name=mesh-svr::recommendation.{{ .Values.sampleServices.namespace }} \
--instance-name=$(/swctl --base-url={{ template "skywalking.oap.address.http" . }}/graphql instance ls --service-name mesh-svr::recommendation.{{ .Values.sampleServices.namespace }}|yq e '.[0].name' -);
volumeMounts:
- name: profiling-config
mountPath: /profiling
Expand Down

0 comments on commit 1aa56b2

Please sign in to comment.