Lack of Configuration for Metrics Prefix with Distributed Tables in Grafana ClickHouse Plugin #786
Description
Description
We've encountered a limitation with the Grafana ClickHouse plugin where there's no option to configure a metrics prefix for use with ClickHouse's distributed tables. This limitation is leading to a significant issue where some shards are running out of space due to uneven distribution of metrics data.
Expected Behavior
Ideally, the plugin should provide a configuration option to specify a metrics prefix. This would allow users to efficiently distribute their data across multiple shards in a ClickHouse cluster, preventing individual shards from running out of space and ensuring balanced data distribution.
Actual Behavior
Currently, there is no option to set a metrics prefix for distributed tables within the Grafana ClickHouse plugin. As a result, data is not evenly distributed across the shards, causing some shards to quickly run out of space while others remain underutilized.
Steps to Reproduce
- Set up Grafana with the ClickHouse plugin and configure it to connect to a ClickHouse cluster.
- Insert metrics data without the ability to specify a prefix for distributed tables.
- Observe the uneven data distribution across the shards, leading to space issues in certain shards.
Possible Solution
Implementing a feature within the plugin's configuration settings to specify a metrics prefix for distributed tables would likely resolve this issue. This addition would provide greater control over data distribution in a ClickHouse cluster and help prevent uneven shard usage.
Environment
- Grafana version: 10.3.3
- ClickHouse plugin version: 24.x
Metadata
Assignees
Labels
Type
Projects
Status
Done