Groups
Groups
Sign in
Groups
Groups
Prometheus Users
Conversations
About
Send feedback
Help
label "aksv0a7h237av_58_98_enq_TX_row_lock_contention_" not accepted by Prom (or Pushgateway)
15 views
Skip to first unread message
Evelyn Pereira Souza
unread,
Sep 22, 2021, 8:28:24 AM
9/22/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
Hi
We use Telegate (is it now called Prometheus Pushgateway?) to send
output from cronjob.
This the relevant part of shell script:
cat <<EOF | curl --data-binary @-
https://telegate.example.com/metrics/job/table_lock/service_name/
"$2"/contents/"$q2"
# TYPE table_lock_zz gauge
# HELP table_lock_zz Displays whether there is a table lock on zz
table_lock_zz 0
EOF
This is the debug what he does:
curl --data-binary @-
https://telegate.example.com/metrics/job/table_lock/service_name/RWA4.V.DBS/contents/aksv0a7h237av_58_98_enq_TX_row_lock_contention_
He seems not accept this label
contents = aksv0a7h237av_58_98_enq_TX_row_lock_contention_
But it matches the Regex [a-zA-Z_][a-zA-Z0-9_]* (this regex from Prom docs)
I try to send a little output of the DB as label, I remove unwanted chars
q2="`echo $q | tr -s -c [:alnum:] _`"
Is there a problem with length?
kind regards
Evelyn
OpenPGP_0x61776FA8E38403FB.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages