def get_metrics_for(pkg_name):

    # Convert a "package.name" to "package_name" because Prometheus doesn't
    # let us use . in metric names
    return Metrics(pkg_name.replace(".", "_"))
Returns a Metrics instance for conveniently creating metrics
dataset/ETHPy150Open matrix-org/synapse/synapse/metrics/__init__.py/get_metrics_for