You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "mxm (via GitHub)" <gi...@apache.org> on 2023/05/04 17:55:27 UTC
[GitHub] [flink-kubernetes-operator] mxm opened a new pull request, #585: [FLINK-32005] Add a per-deployment error metric to signal about potential issues
mxm opened a new pull request, #585:
URL: https://github.com/apache/flink-kubernetes-operator/pull/585
If any of the autoscaled deployment produce errors they are only visible in the logs or in the k8s events. Additionally, it would be good to have metrics to detect any potential issues.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-kubernetes-operator] tamirsagi commented on pull request #585: [FLINK-32005] Add a per-deployment error metric to signal about potential issues
Posted by "tamirsagi (via GitHub)" <gi...@apache.org>.
tamirsagi commented on PR #585:
URL: https://github.com/apache/flink-kubernetes-operator/pull/585#issuecomment-1542196243
> Do you think having a "scaling" counter would be useful as well?
Hey @mxm
I'd like to suggest an improvement here, let me know what you think.
The operator supports pluggable `FlinkResourceListener` which provides the events & deployment status. However, such interface does not expose MetricManager/any way to create custom meters.
Which means that if users would like to create custom metrics per deployments there is no way to attach it via operator metric manager.
I see there are some basic metrics created per namespace.
My suggestion is to expose either operator metric manager directly via FlinkResourceListener or another entity which provides a way to create meters and internally registers them via MetricManager.
WDYT?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-kubernetes-operator] mxm commented on pull request #585: [FLINK-32005] Add a per-deployment error metric to signal about potential issues
Posted by "mxm (via GitHub)" <gi...@apache.org>.
mxm commented on PR #585:
URL: https://github.com/apache/flink-kubernetes-operator/pull/585#issuecomment-1540684297
I'm going to follow up with the scaling counter which also includes a refactor.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-kubernetes-operator] mxm commented on pull request #585: [FLINK-32005] Add a per-deployment error metric to signal about potential issues
Posted by "mxm (via GitHub)" <gi...@apache.org>.
mxm commented on PR #585:
URL: https://github.com/apache/flink-kubernetes-operator/pull/585#issuecomment-1540761289
The latest commit contains a refactor and adds the successful scaling metric.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-kubernetes-operator] mxm commented on a diff in pull request #585: [FLINK-32005] Add a per-deployment error metric to signal about potential issues
Posted by "mxm (via GitHub)" <gi...@apache.org>.
mxm commented on code in PR #585:
URL: https://github.com/apache/flink-kubernetes-operator/pull/585#discussion_r1188996818
##########
flink-kubernetes-operator-autoscaler/src/main/java/org/apache/flink/kubernetes/operator/autoscaler/JobAutoScalerImpl.java:
##########
@@ -82,8 +85,11 @@ public boolean scale(FlinkResourceContext<? extends AbstractFlinkResource<?, ?>>
var conf = ctx.getObserveConfig();
var resource = ctx.getResource();
+ var resouceId = ResourceID.fromResource(resource);
+ var autoscalerMetricGroup = ctx.getResourceMetricGroup().addGroup("AutoScaler");
Review Comment:
Actually this one should probably just be added when the autoscaler is enabled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-kubernetes-operator] mxm commented on pull request #585: [FLINK-32005] Add a per-deployment error metric to signal about potential issues
Posted by "mxm (via GitHub)" <gi...@apache.org>.
mxm commented on PR #585:
URL: https://github.com/apache/flink-kubernetes-operator/pull/585#issuecomment-1538197115
Do you think having a "scaling" counter would be useful as well?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-kubernetes-operator] mxm merged pull request #585: [FLINK-32005] Add a per-deployment error metric to signal about potential issues
Posted by "mxm (via GitHub)" <gi...@apache.org>.
mxm merged PR #585:
URL: https://github.com/apache/flink-kubernetes-operator/pull/585
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-kubernetes-operator] mxm commented on pull request #585: [FLINK-32005] Add a per-deployment error metric to signal about potential issues
Posted by "mxm (via GitHub)" <gi...@apache.org>.
mxm commented on PR #585:
URL: https://github.com/apache/flink-kubernetes-operator/pull/585#issuecomment-1543783957
@tamirsagi I think that is a great suggestion! We do not have good interfaces to add custom metrics. There is only the resource MetricGroup which one can add metrics to, but it is not directly exposed. I think we should create a JIRA to keep track of this work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-kubernetes-operator] gyfora commented on pull request #585: [FLINK-32005] Add a per-deployment error metric to signal about potential issues
Posted by "gyfora (via GitHub)" <gi...@apache.org>.
gyfora commented on PR #585:
URL: https://github.com/apache/flink-kubernetes-operator/pull/585#issuecomment-1538225475
> Do you think having a "scaling" counter would be useful as well?
I think that could be useful also, because otherwise it's a bit tricky to see how many scalings actually happened. But not critical
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org