Skip to content

Commit

Permalink
Set label value to timestamp over 0, to keep track of recent history …
Browse files Browse the repository at this point in the history
…of adapter queue and active adapters
  • Loading branch information
coolkp committed Oct 28, 2024
1 parent 76ed534 commit 525daa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/engine/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def _log_histogram(self, histogram, data: Union[List[int],
histogram.labels(**self.labels).observe(datum)

def _log_gauge_string(self, gauge, data: Dict[str, str]) -> None:
gauge.labels(**data).set(1)
gauge.labels(**data).set_to_current_time()

def _log_prometheus(self, stats: Stats) -> None:
# System state data
Expand Down

0 comments on commit 525daa7

Please sign in to comment.