Skip to content

Feature: Allow overide of "instance" label #424

Answered by beorn7
nhatfield asked this question in Q&A
Discussion options

You must be logged in to vote

The honor_labels: true is not a command line flag, but part of your scrape config. And it's the recommended way of scraping a Pushgateway anyway.

The scrape config should look similar to this:

scrape_configs:
- job_name: 'pushgateway'  
  honor_labels: true  
  static_configs:  
  - targets: ['pushgateway.example.org:9091']

Replies: 8 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@nhatfield
Comment options

@nhatfield
Comment options

@nhatfield
Comment options

Answer selected by nhatfield
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #420 on September 27, 2021 14:18.