The provided script name is now available via script
label for the script_success
and script_duration_seconds
metric:
# HELP script_success Script exit status (0 = error, 1 = success).
# TYPE script_success gauge
script_success{script="test"} 1
# HELP script_duration_seconds Script execution time, in seconds.
# TYPE script_duration_seconds gauge
script_duration_seconds{script="test"} 0.003628
Therefor the script name must be a valid value for a Prometheus label.