Skip to content

Commit

Permalink
Sending it via JMX
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhrubajyoti Sadhu committed Feb 1, 2024
1 parent 0a7ad4e commit 0cc7b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if [ -n "$ENABLE_METRICS" ]; then
export EXPORTER_OPTS="-javaagent:/usr/lib/apiary/jmx_prometheus_javaagent-${EXPORTER_VERSION}.jar=8080:/etc/hive/conf/jmx-exporter.yaml"
export CLOUDWATCH_NAMESPACE="${INSTANCE_NAME}-metastore"
export ECS_TASK_ID=$(wget -q -O - ${ECS_CONTAINER_METADATA_URI}/task|jq -r .TaskARN|awk -F/ '{ print $NF }')
#update_property.py hive.service.metrics.class com.expediagroup.apiary.extensions.metastore.metrics.CodahaleMetrics /etc/hive/conf/hive-site.xml
update_property.py hive.service.metrics.class com.expediagroup.apiary.extensions.metastore.metrics.CodahaleMetrics /etc/hive/conf/hive-site.xml

fi
#enable prometheus jmx agent when running on kubernetes
Expand Down

0 comments on commit 0cc7b30

Please sign in to comment.