You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "ChengJie1053 (via GitHub)" <gi...@apache.org> on 2023/10/06 14:33:16 UTC
[PR] [Feature] yarn application mode support prometheus [incubator-streampark]
ChengJie1053 opened a new pull request, #3215:
URL: https://github.com/apache/incubator-streampark/pull/3215
yarn application mode support prometheus
1.install prometheus and prometheus
2.Modify the streampark configuration
streampark.prometheus.enable: true
streampark.promgateway.hostUrl: http://ip:9091




--
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@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [WIP][Feature] yarn application mode support prometheus [incubator-streampark]
Posted by "Trgree (via GitHub)" <gi...@apache.org>.
Trgree commented on PR #3215:
URL: https://github.com/apache/incubator-streampark/pull/3215#issuecomment-1955824029
<img width="1276" alt="image" src="https://github.com/apache/incubator-streampark/assets/1509500/38c3dfc7-9afb-4927-a4af-36defb7d8d44">
It already supports Prometheus.
--
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@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [WIP][Feature] yarn application mode support prometheus [incubator-streampark]
Posted by "ChengJie1053 (via GitHub)" <gi...@apache.org>.
ChengJie1053 commented on code in PR #3215:
URL: https://github.com/apache/incubator-streampark/pull/3215#discussion_r1412961427
##########
streampark-flink/streampark-flink-client/streampark-flink-client-core/src/main/scala/org/apache/streampark/flink/client/trait/FlinkClientTrait.scala:
##########
@@ -156,6 +156,27 @@ trait FlinkClientTrait extends Logger {
})
}
+ // set prometheus
+ val enablePrometheus: Boolean =
+ InternalConfigHolder.get(CommonConfig.STREAMPARK_PROMETHEUS_ENABLE)
+ val promgatewayHostUrl: String =
+ InternalConfigHolder.get(CommonConfig.STREAMPARK_PROMGATEWAY_HOST_URL)
+
+ if (
+ submitRequest.executionMode == FlinkExecutionMode.YARN_APPLICATION && enablePrometheus && StringUtils
Review Comment:
At that time, only yarn application mode was tested
--
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@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [WIP][Feature] yarn application mode support prometheus [incubator-streampark]
Posted by "ChengJie1053 (via GitHub)" <gi...@apache.org>.
ChengJie1053 closed pull request #3215: [WIP][Feature] yarn application mode support prometheus
URL: https://github.com/apache/incubator-streampark/pull/3215
--
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@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [WIP][Feature] yarn application mode support prometheus [incubator-streampark]
Posted by "ChengJie1053 (via GitHub)" <gi...@apache.org>.
ChengJie1053 commented on PR #3215:
URL: https://github.com/apache/incubator-streampark/pull/3215#issuecomment-1955837330
> <img alt="image" width="1276" src="https://private-user-images.githubusercontent.com/1509500/306485612-38c3dfc7-9afb-4927-a4af-36defb7d8d44.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg0ODc2MDQsIm5iZiI6MTcwODQ4NzMwNCwicGF0aCI6Ii8xNTA5NTAwLzMwNjQ4NTYxMi0zOGMzZGZjNy05YWZiLTQ5MjctYTRhZi0zNmRlZmI3ZDhkNDQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDIyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAyMjFUMDM0ODI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDI4ZTFmODQ3YjZjNzNhMTY1MDM5MTU5YmFkNjJhMzdiMjA4NmE3ZDczMzUzOTFhMjZjNjA2ZjM0NzZjZjEyMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.3FKoe5HmNLjp2ugjN-zJ3JsztOno-gB4qaXlU4PjQBo"> It already supports Prometheus. Like this, you can write metrics to Prometheus.
Ok, thank you
--
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@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [WIP][Feature] yarn application mode support prometheus [incubator-streampark]
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on code in PR #3215:
URL: https://github.com/apache/incubator-streampark/pull/3215#discussion_r1412683945
##########
streampark-flink/streampark-flink-client/streampark-flink-client-core/src/main/scala/org/apache/streampark/flink/client/trait/FlinkClientTrait.scala:
##########
@@ -156,6 +156,27 @@ trait FlinkClientTrait extends Logger {
})
}
+ // set prometheus
+ val enablePrometheus: Boolean =
+ InternalConfigHolder.get(CommonConfig.STREAMPARK_PROMETHEUS_ENABLE)
+ val promgatewayHostUrl: String =
+ InternalConfigHolder.get(CommonConfig.STREAMPARK_PROMGATEWAY_HOST_URL)
+
+ if (
+ submitRequest.executionMode == FlinkExecutionMode.YARN_APPLICATION && enablePrometheus && StringUtils
Review Comment:
Why is it only enabled in yarn application mode? Doesn't it work in other modes?
--
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@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org