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

More labels #2

Open
bahamat opened this issue Aug 26, 2018 · 2 comments
Open

More labels #2

bahamat opened this issue Aug 26, 2018 · 2 comments

Comments

@bahamat
Copy link
Member

bahamat commented Aug 26, 2018

As an operator, some other labels I always want are account and datacenter_name. I have these additional relabel_configs

    - source_labels: [__param_datacenter_name]                                  
      target_label: datacenter_name                                             
      replacement: ${dc}                                                        
    - source_labels: [__param_account]                                          
      target_label: account_name                                                
      replacement: ${user}                                                      
@cburroughs
Copy link
Contributor

I'm not sure I'm following how the __param_* relabels are used. Are you adding datacenter_name=foo to the url when you query Prometheus (which otherwise has no notion of DCs), to inject it into the results?

@bahamat
Copy link
Member Author

bahamat commented Sep 20, 2018

No, I'm using this as a way to arbitrarily add labels. The __param_* labels don't need to exist and in this context have no meaning. They may as well be random strings, if you wanted to ensure that there was no collision.

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