Request for Cache Metrics in Apache Superset #29793
Replies: 1 comment 2 replies
-
I'm here to help you with your Apache Superset issue. Let's find a solution together! Yes, there is a way to access detailed cache metrics within Apache Superset, such as cache hits, misses, and utilization. The To enable and access these metrics, you need to configure the stats_logger: BaseStatsLogger = config["STATS_LOGGER"] In the stats_logger.incr("set_cache_key") To enable and access these metrics, you need to:
Here is an example of how you might configure the from superset.stats_logger import BaseStatsLogger
class CustomStatsLogger(BaseStatsLogger):
def incr(self, stat_name: str, count: int = 1) -> None:
# Implement your logging logic here
print(f"Incrementing stat {stat_name} by {count}")
def decr(self, stat_name: str, count: int = 1) -> None:
# Implement your logging logic here
print(f"Decrementing stat {stat_name} by {count}")
def timing(self, stat_name: str, value: float) -> None:
# Implement your logging logic here
print(f"Timing stat {stat_name} with value {value}")
STATS_LOGGER = CustomStatsLogger() By configuring the |
Beta Was this translation helpful? Give feedback.
-
Hi @everyone,
I have encountered a challenge regarding the visibility of cache performance and usage metrics.
I need metrics related to cache to monitor effectiveness of caching, trouleshoot performance issue and to optimize the cache configuration.
But It appears that detailed metrics related to cache performance (such as cache hits, misses, and utilization) are not readily available through the existing metrics endpoints.
Is there currently any way to access detailed cache metrics within Superset that I may have overlooked? If such functionality exists, could you please provide guidance or documentation on how to enable and access these metrics?
Beta Was this translation helpful? Give feedback.
All reactions