Skip to content

Commit

Permalink
Fix getmetrics script (function names
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Sep 2, 2024
1 parent 1ac2f3a commit 7558c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/grest-helper-scripts/getmetrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exec 2>/dev/null
[[ -z ${DBSYNC_PROM_PORT} ]] && DBSYNC_PROM_PORT=8080
[[ -z ${PGDATABASE} ]] && PGDATABASE=cexplorer

function get-metrics() {
function get_metrics() {
shopt -s expand_aliases
if [ -n "$SERVED" ]; then
echo "Content-type: text/plain" # Tells the browser what kind of content to expect
Expand Down Expand Up @@ -99,4 +99,4 @@ function get-metrics() {
done
}

get-metrics
get_metrics

0 comments on commit 7558c74

Please sign in to comment.