gorelka icon indicating copy to clipboard operation
gorelka copied to clipboard

Feature Request: Support external dictionaries for renaming\rewriting nodes

Open RudW0lf opened this issue 7 years ago • 1 comments

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.

RudW0lf avatar Feb 03 '18 18:02 RudW0lf

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?

Civil avatar Feb 03 '18 18:02 Civil