mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-10 08:21:21 +00:00
feat(docker): Enable and expose Jetty statistics (#10448)
This commit is contained in:
parent
f6627efe71
commit
2dbb968e07
@ -57,6 +57,7 @@ COPY war.war /datahub/datahub-gms/bin/war.war
|
|||||||
COPY metadata-models/src/main/resources/entity-registry.yml /datahub/datahub-gms/resources/entity-registry.yml
|
COPY metadata-models/src/main/resources/entity-registry.yml /datahub/datahub-gms/resources/entity-registry.yml
|
||||||
COPY docker/datahub-gms/start.sh /datahub/datahub-gms/scripts/start.sh
|
COPY docker/datahub-gms/start.sh /datahub/datahub-gms/scripts/start.sh
|
||||||
COPY docker/datahub-gms/jetty.xml /datahub/datahub-gms/scripts/jetty.xml
|
COPY docker/datahub-gms/jetty.xml /datahub/datahub-gms/scripts/jetty.xml
|
||||||
|
COPY docker/datahub-gms/jetty-jmx.xml /datahub/datahub-gms/scripts/jetty-jmx.xml
|
||||||
COPY docker/monitoring/client-prometheus-config.yaml /datahub/datahub-gms/scripts/prometheus-config.yaml
|
COPY docker/monitoring/client-prometheus-config.yaml /datahub/datahub-gms/scripts/prometheus-config.yaml
|
||||||
RUN chmod +x /datahub/datahub-gms/scripts/start.sh
|
RUN chmod +x /datahub/datahub-gms/scripts/start.sh
|
||||||
|
|
||||||
|
|||||||
31
docker/datahub-gms/jetty-jmx.xml
Normal file
31
docker/datahub-gms/jetty-jmx.xml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
|
||||||
|
|
||||||
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
||||||
|
|
||||||
|
<!-- =========================================================== -->
|
||||||
|
<!-- Get the platform MBeanServer -->
|
||||||
|
<!-- =========================================================== -->
|
||||||
|
<Call id="MBeanServer" class="java.lang.management.ManagementFactory"
|
||||||
|
name="getPlatformMBeanServer" />
|
||||||
|
|
||||||
|
<!-- =========================================================== -->
|
||||||
|
<!-- Initialize the Jetty MBeanContainer -->
|
||||||
|
<!-- =========================================================== -->
|
||||||
|
<Call name="addBean">
|
||||||
|
<Arg>
|
||||||
|
<New id="MBeanContainer" class="org.eclipse.jetty.jmx.MBeanContainer">
|
||||||
|
<Arg>
|
||||||
|
<Ref refid="MBeanServer" />
|
||||||
|
</Arg>
|
||||||
|
<Call name="beanAdded">
|
||||||
|
<Arg/>
|
||||||
|
<Arg>
|
||||||
|
<Get name="ILoggerFactory" class="org.slf4j.LoggerFactory"/>
|
||||||
|
</Arg>
|
||||||
|
</Call>
|
||||||
|
</New>
|
||||||
|
</Arg>
|
||||||
|
</Call>
|
||||||
|
</Configure>
|
||||||
|
|
||||||
@ -63,9 +63,11 @@ COMMON="
|
|||||||
$OTEL_AGENT \
|
$OTEL_AGENT \
|
||||||
$PROMETHEUS_AGENT \
|
$PROMETHEUS_AGENT \
|
||||||
-jar /jetty-runner.jar \
|
-jar /jetty-runner.jar \
|
||||||
|
--stats unsecure \
|
||||||
--jar jetty-util.jar \
|
--jar jetty-util.jar \
|
||||||
--jar jetty-jmx.jar \
|
--jar jetty-jmx.jar \
|
||||||
--config /datahub/datahub-gms/scripts/jetty.xml \
|
--config /datahub/datahub-gms/scripts/jetty.xml \
|
||||||
|
--config /datahub/datahub-gms/scripts/jetty-jmx.xml \
|
||||||
/datahub/datahub-gms/bin/war.war"
|
/datahub/datahub-gms/bin/war.war"
|
||||||
|
|
||||||
if [[ $SKIP_ELASTICSEARCH_CHECK != true ]]; then
|
if [[ $SKIP_ELASTICSEARCH_CHECK != true ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user