Skip to content

Commit

Permalink
Update as per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhrubajyoti Sadhu committed Feb 6, 2024
1 parent d008d1d commit 81c530e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions files/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if [[ -n $RANGER_AUDIT_DB_URL ]]; then
fi
fi


# Enables metrics for Hive Metastore and configures Prometheus JMX exporter for monitoring in ECS and Kubernetes environments.
if [ -n "$ENABLE_METRICS" ]; then
update_property.py hive.metastore.metrics.enabled true /etc/hive/conf/hive-site.xml
if [ -n "$ECS_CONTAINER_METADATA_URI" ]; then
Expand All @@ -93,11 +93,6 @@ if [ -n "$ENABLE_METRICS" ]; then

# This line configures the JMX Prometheus exporter, enabling the collection of JMX metrics from the JVM and their exposure in Prometheus format for integration with monitoring systems.
export EXPORTER_OPTS="-javaagent:/usr/lib/apiary/jmx_prometheus_javaagent-${EXPORTER_VERSION}.jar=8080:/etc/hive/conf/jmx-exporter.yaml"

# Uncomment the below lines to send metrics to Cloudwatch
#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
fi
#enable prometheus jmx agent when running on kubernetes
if [ -n "$KUBERNETES_SERVICE_HOST" ]; then
Expand Down

0 comments on commit 81c530e

Please sign in to comment.