Project

General

Profile

Actions

Bug #30903

closed

Cleanup prometheus temporary files on shutdown

Added by Lukas Zapletal about 4 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Normal
Category:
Monitoring
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When Prometheus is enabled, it accumulates many temporary files for each worker process and once they get recycled, processes leaves many data file behind making the `/metrics` endpoint slower and slower to the point where it is unusable. This patch introduces `at_exit` block that performs cleanup during shutdown. This will keep Prometheus client library at healthy state.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #30029: /metrics endpoint takes over a minute to loadClosedLukas ZapletalActions
Actions #1

Updated by Lukas Zapletal about 4 years ago

  • Related to Bug #30029: /metrics endpoint takes over a minute to load added
Actions #2

Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8011 added
Actions #3

Updated by Lukas Zapletal about 4 years ago

  • Status changed from Ready For Testing to Rejected
Actions

Also available in: Atom PDF