gorelka
gorelka copied to clipboard
Feature Request: Support external dictionaries for renaming\rewriting nodes
In some cases we want to replace some node in metrics path to anoter node\nodes resolved from external dictionary. For example we have scope of metrics from virtual machine placed to following structure:
someprefix ------------vmhostname --------------------------hostname -------------------------------------hostname_metrics --------------------------instance-XXXXXXX ----------------------------------------------instance_metrics
It would be great to replace instance-XXXXXXX to another nodename resolved from dictionary (for example tenant.vmname). The values of dictionary can be taked from pgsql \ mysql \ Clikhouse table\ or request.
Do you have any ideas in mind how it should look like in database?
Table with: Prefix match, NodeID, ReplaceWith
That will replace following NodeID with value specified in ReplaceWith?