Skip to content

Commit

Permalink
Added rules * and printing output of curl
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhrubajyoti Sadhu committed Feb 5, 2024
1 parent 0cc7b30 commit fd8b906
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/jmx-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ ssl: false
lowercaseOutputName: true
lowercaseOutputLabelNames: true
attrNameSnakeCase: true
rules:
- pattern: ".*"
7 changes: 7 additions & 0 deletions files/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ 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 }')

#this is populating something in 8080
update_property.py hive.service.metrics.class com.expediagroup.apiary.extensions.metastore.metrics.CodahaleMetrics /etc/hive/conf/hive-site.xml

fi
Expand Down Expand Up @@ -215,3 +217,8 @@ fi

export HADOOP_OPTS="-XshowSettings:vm -Xms${HADOOP_HEAPSIZE}m $EXPORTER_OPTS"
su hive -s/bin/bash -c "/usr/lib/hive/bin/hive --service metastore --hiveconf javax.jdo.option.ConnectionURL=jdbc:mysql://${MYSQL_DB_HOST}:3306/${MYSQL_DB_NAME} --hiveconf javax.jdo.option.ConnectionUserName='${MYSQL_DB_USERNAME}' --hiveconf javax.jdo.option.ConnectionPassword='${MYSQL_DB_PASSWORD}'"


curl -v localhost:8080/metrics


0 comments on commit fd8b906

Please sign in to comment.