Skip to content

Add ability to override name of all metrics tables #34225

Closed
@Fiery-Fenix

Description

@Fiery-Fenix

Component(s)

exporter/clickhouse

Is your feature request related to a problem? Please describe.

Right now table names for metrics are semi-hardcoded, i.e. it's using configurable prefix from metrics_table_name parameter and hardcoded suffix for each metric type, like _gauge/_sum/_summary/etc.
There is no possibility to change this suffixes outside of the code, but this might be useful for such use-cases:

  • Using single table for all metrics types, i.e. otel_metrics, which bring better compression and usability - no need to search for required metric across 5 different tables
  • Ability to have more human-readable naming, for example rename otel_metrics_sum table to otel_metrics_counter which is more comfortable naming for those who is more familiar with Prometheus metrics types

Describe the solution you'd like

Add configuration parameters with metrics tables suffix override.
For example:

  • metrics_table_gauge_suffix: "_gauge"
  • metrics_table_sum_suffix: "_sum"
  • metrics_table_summary_suffix: "_summary"
  • metrics_table_histogram_suffix: "_histogram"
  • metrics_table_exponential_histogram_suffix: "_exponential_histogram"

Another option might be to deprecate current metrics_table_name configuration parameter and introduce 5 new instead:

  • metrics_table_gauge_name: "otel_metrics_gauge"
  • metrics_table_sum_name: "otel_metrics_sum"
  • metrics_table_summary_name: "otel_metrics_summary"
  • metrics_table_histogram_name: "otel_metrics_histogram"
  • metrics_table_exponential_histogram_name: "otel_metrics_exponential_histogram"

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions