From 23eda3f4bde079b06bfad68a51675d819a7f103e Mon Sep 17 00:00:00 2001 From: Rafael Matias Date: Tue, 3 Dec 2024 11:15:02 +0100 Subject: [PATCH] chore: rename metric --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 51b7beb..8fd0d86 100755 --- a/run.sh +++ b/run.sh @@ -115,7 +115,7 @@ git_push_crawler_output() { publish_influx_metrics() { local status=$1 - echo "devp2p_discv4.dns_node_crawl_status value=${status}i" > metrics.txt + echo "devp2p_discv4.crawl_status value=${status}i" > metrics.txt for D in *."${CRAWL_DNS_DOMAIN}"; do if [ -d "${D}" ]; then LEN=$(jq length < "${D}/nodes.json") @@ -139,7 +139,7 @@ init_prometheus_metrics() { publish_prometheus_metrics() { local status=$1 prometheus_metrics_file="${prometheus_metrics_dir}/metrics" - echo "devp2p_discv4_dns_nodes_crawl_status ${status}" > "${prometheus_metrics_file}" + echo "devp2p_discv4_crawl_status ${status}" > "${prometheus_metrics_file}" for D in *."${CRAWL_DNS_DOMAIN}"; do if [ -d "${D}" ]; then LEN=$(jq length < "${D}/nodes.json")