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

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/a09e4626-b63d-e74e-31ab-dff623270cdc%40disroot.org.

Attachment: OpenPGP_0x61776FA8E38403FB.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to