import { LabelValues } from 'prom-client' ; export function filterLabels ( labels ) { return Object . fromEntries ( Object . entries ( labels ) . filter ( ( [ _label , value ] ) => value !== undefined && value !== null ) ) ; } export function convertMsToS ( ms ) { return ms / 1000 ; }