Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support external dictionaries for renaming\rewriting nodes #4

Open
RudW0lf opened this issue Feb 3, 2018 · 1 comment

Comments

@RudW0lf
Copy link

RudW0lf commented Feb 3, 2018

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.

@Civil
Copy link
Member

Civil commented Feb 3, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants