Welcome to the Linux Foundation Forum!

LAB15-3

Hello,

How to push metrics from a batch job?

cat <<EOF | curl --data-binary @-
http://localhost:9091/metrics/job/demo_batch_job
demo_batch_job_last_successful_run_timestamp_seconds $(date +%s)
demo_batch_job_last_run_timestamp_seconds $(date +%s)
demo_batch_job_users_deleted $RANDOM
EOF

curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information

???

Categories

Upcoming Training