ansible playbook to set up a laminar container Ci build. moved to: https://git.sindominio.net/sindominio/ansible_laminar
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible_laminar/after

14 lines
334 B

#!/bin/bash -xe
res=0
if [ $RESULT == "success" ]
then
res=1
fi
echo "
# TYPE laminar_run_count counter
laminar_run_count $RUN
# TYPE laminar_last_run_status gauge
laminar_last_run_status{image=\"$image\"} $res
" | curl --data-binary @- {{ prometheus_pushgateway }}/metrics/job/laminar/instance/{{ ansible_host }}/task/$JOB