問題文
The logistics team wants to scrape only those discovered targets whose environment attribute says production, and separately to stop storing one very expensive series that all targets expose. Which option correctly matches each need to the right configuration section?
選択肢
- Target selection belongs in relabel_configs, which runs before the scrape, and dropping series belongs in metric_relabel_configs, just before ingestion.
- Both belong in metric_relabel_configs, because the target selection is expressed as a label matcher and a value test on the automatically generated series.
- Target selection belongs in metric_relabel_configs and dropping the series belongs in relabel_configs, because the metrics are discovered before targets.
- Both belong in relabel_configs, because that single section applies to the scrape targets and to their samples in the same pass.