networktocode / ntc-netbox-plugin-onboarding

A plugin for NetBox to easily onboard new devices.
Other
246 stars 46 forks source link

Enable metrics for workers #86

Closed mzbroch closed 3 years ago

mzbroch commented 4 years ago

This pull request aims to add two metrics for the Onboarding Task process at the worker level:

Both metrics are exposed at the worker level - they are worker-specific instead of model/database bounded. By implementing these metrics, it is possible to get brief information related to worker's performance and potential connectivity issues

# HELP onboargingtask_results_total Multiprocess metric
# TYPE onboargingtask_results_total counter
onboargingtask_results_total{status="failed"} 4.0
# HELP onboardingtask_processing_seconds Multiprocess metric
# TYPE onboardingtask_processing_seconds summary
onboardingtask_processing_seconds_count 1.0
onboardingtask_processing_seconds_sum 30.05478549201507