Alpine icon indicating copy to clipboard operation
Alpine copied to clipboard

Add metrics and related endpoints

Open stevespringett opened this issue 7 years ago • 3 comments

Add metrics and related endpoints similar to what DropWizard or SpringBoot provides.

  • /auditevents - should return the contents of dependency-track-audit.log
  • /env - should return all environment variables and Java system properties
  • /health - should return various high-level health info
  • /logfile - should return the contents of dependency-track.log
  • /metrics - should return details metrics to measure system performance

Alpine should contain an AbstractMetricsResource with implementations of the above endpoints. Each application that is built on Alpine would simply extend AbstractMetricsResource so that the app can specify what permissions are necessary for each.

NOTE: It may be possible to simply include Dropwizard Metrics for /health and /metrics capabilities as the module seems to be standalone with minimal dependencies.

stevespringett avatar Mar 20 '19 04:03 stevespringett

Do we have any timelines on when this feature would be available in Alpine and eventually in dependency track?

sandeep-chekuri avatar Mar 30 '21 16:03 sandeep-chekuri

No timeline. It's not currently being worked on or planned. Too much other things in DT being worked on at the moment.

stevespringett avatar Mar 30 '21 16:03 stevespringett

I can highly recommend micrometer for metrics. It's very nice and versatile. And use prometheus dataformat as standard, as it is the de-facto standard.

davidkarlsen avatar Apr 06 '21 14:04 davidkarlsen