Я хочу настроить оповещение в prometheus, игнорируя теги beanstalk ec2, но получая синтаксические ошибки. Каким будет правильный способ?
Я использую конфигурацию ниже:
- job_name: Node_exporter_service
scrape_interval: 30s
scrape_timeout: 15s
metrics_path: /metrics
scheme: http
ec2_sd_configs:
- region: ap-southeast-1
port: 9100
filters:
- name: tag:elasticbeanstalk:environment-name
values:
- abc-prod
action: drop
# relabel_configs:
# Only monitor instances with a Name starting with "SD Demo"
# - source_labels: ['elasticbeanstalk:environment-name']
# regex: '(.*),ignore-at-prometheus,(.*)'
# action: drop