def metric_name(*args: str | int) -> str:
    """
    Concatenates the given parts into a legal Prometheus metric name. For example,
    a valid tag name may includes invalid characters, so we need to escape them
    ref: https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels
    """
    return "_".join([str(arg).replace("-", ":").replace(".", "::") for arg in args])
Concatenates the given parts into a legal Prometheus metric name. For example,
a valid tag name may includes invalid characters, so we need to escape them
ref: https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels
src/bentoml/_internal/utils/metrics.py