-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for zipkin UI #127
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think just configuring the ui.env
in the values.yaml
chart/skywalking/values.yaml
Outdated
@@ -41,6 +41,7 @@ oap: | |||
# zabbix: 10051 | |||
grpc: 11800 | |||
rest: 12800 | |||
zipkinUI: 9412 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should not be enabled by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Maybe I should if
to create a conditional block in ui-deployment.yaml
.
I think using these variables in Chart template is easier especially for those who are not familiar with Helm. But at least adding some guide about how to deploy the zipkin UI on k8s cluster is needed. It took me a lot of time to find out the variable |
Use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Yangfisher1 the configurations look verbose to me, here is what I think:
- Always add the
SW_ZIPKIN_ADDRESS
, there is no side effect for this env var to be set no matter Zipkin plugin is enabled or disabled. - Conditionally add the exposed port
9412
in the OAP service: when theSW_QUERY_ZIPKIN
is set todefault
, add the port9412
to service OAP, otherwise, don't add the port. - Remove
oap.ports.zipkinui
andzipkin.enabled
, because that's not the way to enable/disable zipking plugin, it'sSW_QUERY_ZIPKIN
that does this.
@Yangfisher1 let me know what you think
I think this idea is better.
However, there's one side effect for this env var to be set without setting the port. The UI pod will throw an error complaining about the missing port when initializing. I think we should use the env var |
Right I missed that, that's better! |
It works well now. But I think directly hardcoding the port number(like |
|
||
{{- if eq .Values.oap.env.SW_QUERY_ZIPKIN "default" }} | ||
- containerPort: 9412 | ||
name: "zipkin-ui" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @jcchavezs Another new Zipkin is being added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but it was not exposed I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for the sake of convenience, nothing new is added, nothing old was blocked without this changes
I agree, but I don't thin we have a more graceful way to do this, do you have any better idea, I'm open to discuss? |
values.yaml
oap-deployment.yaml
ui-deployment.yaml
I think it might be more convenient. What do you think? @kezhenxu94 @Yangfisher1 |
This works for me too, another good point is that we can also set |
@innerpeacez @kezhenxu94 It works for me, making it more convenient and graceful. Users only need to configure these two ports to enable zipkin trace and they can choose any port they want. I'd like to make these changes and add these ports into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@innerpeacez @kezhenxu94 |
Camel-Case is supported, let's keep it. ref to https://helm.sh/zh/docs/chart_best_practices/values/ |
@innerpeacez My bad. It's the restriction of Kubernetes as |
Oooops! For more convenience. Named |
@innerpeacez |
I vote for not to use |
We can use zipkinreceiver or zipkinquery? |
I'm ok with this. |
It's better. I think. |
@kezhenxu94 @innerpeacez |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience @Yangfisher1 🙇
Congrats @Yangfisher1 to be 800th GitHub contributor of SkyWalking. |
@kezhenxu94 @innerpeacez @wu-sheng Thank you for your help! This is a wonderful community and everyone is kind🤩 |
Marking the variable
SW_ZIPKIN_ADDRESS
explicitly for deploying the zipkin UI more easily on k8s cluster.