Skip to main content
Released

expose job queue time in the fme metrics api

  • May 28, 2020
  • 1 reply
  • 3 views

adriano

It would be nice if the metrics api in fme server had the fme server job queue time in seconds. e.g:

fme_queue_time_total 300

The queue time could also be broken down further by server queue:

fme_queue_time {queue="LargeBatchJobs"} 300 fme_queue_time {queue="boundaryqa"} 0 fme_queue_time {queue="default"} 0


After there are no jobs in the queue, this value would be set back to 0.

What problem would this solve?


This would allow users to take actions if the queue time on fme server gets too large. For example, if the queue time exceeds, 500 seconds, I could use that as a trigger to add additional dynamic engines or even turn on another server which has an fme engine installed on it to help process these jobs faster.

Location of current fme metric endpoint I am referring to:

https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html#!/metrics/metrics_get_0

This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

rylanatsafe
Safer
Forum|alt.badge.img+13

This has been implemented for FME Server 2021.0 and newer. An example of the REST API response is below.

 

# HELP fme_queued_jobs_time The time in seconds of the queued job that has been waiting the longest

# TYPE fme_queued_jobs_time gauge

fme_queued_jobs_time {queue="myQueue"} 30

fme_queued_jobs_time {queue="Remote Engine Queue"} 75

fme_queued_jobs_time {queue="Default"} 0


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings