Skip to content

Commit

Permalink
Removed cloudwatch completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhrubajyoti Sadhu committed Feb 6, 2024
1 parent 1aea508 commit d008d1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ 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"

# Enable it 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 }')
# 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
Expand Down

0 comments on commit d008d1d

Please sign in to comment.