Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Calling a Job

The model generates random number. The following request performs its functionality:

curl -X POST "http://localhost:7005/pub/job/python-metrics/latest/api/v1/perform" \
  -H "Content-Type: application/json" \
  -d '{}'
# Expect:
# 0.5

Metrics

Fetch /metrics endpoint to see Prometheus metrics values (generic metrics as well as the custom ones).

curl "http://localhost:7005/pub/job/python-metrics/latest/metrics"
# Expect:
# perform_requests_total 17.0
# ...
# # HELP job_wasted_seconds Seconds you have wasted here
# job_wasted_seconds 1.2
# # HELP job_positives Number of positive results
# job_positives{color="blue"} 5.0