mymetric [value] [timestamp]i=0
while sleep 3
do
VALUE=$i
((i+=1))
TS=`date +%s`000
echo "mymetric $VALUE $TS"
cat <<EOF | curl --data-binary @- http://192.168.99.100:9091/metrics/job/mytestjob/mylabel/myvalue
# TYPE mymetric counter
# HELP mymetric Just an example
mymetric $VALUE $TS
EOF
doneWhy is Prometheus only reading the last pushed value from the Pushgateway?
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.