Skip to content

prometheusName

prometheusName(metric, prefix?): string

Defined in: packages/exporter-prometheus/src/index.ts:61

Prometheus metric name for a Shardlens instrument, following Prometheus naming conventions.

"interactions" | "guilds" | "interaction_response" | "interaction_handler" | "interaction_errors" | "rest_requests" | "rest_invalid_requests" | "ratelimits" | "shard_events" | "guild_events" | "custom_events" | "entitlements" | "shard_ping" | "eventloop_delay_p99" | "memory" | "cache_size" | "identify_remaining"

string = DEFAULT_PREFIX

string