配置

    1. global:
    2. # How frequently to scrape targets by default.
    3. [ scrape_interval: <duration> | default = 1m ]
    4. # How long until a scrape request times out.
    5. [ scrape_timeout: <duration> | default = 10s ]
    6. # How frequently to evaluate rules.
    7. [ evaluation_interval: <duration> | default = 1m ]
    8. # The labels to add to any time series or alerts when communicating with
    9. [ <labelname>: <labelvalue> ... ]
    10. # Rule files specifies a list of globs. Rules and alerts are read from
    11. # all matching files.
    12. rule_files:
    13. [ - <filepath_glob> ... ]
    14. # A list of scrape configurations.
    15. scrape_configs:
    16. [ - <scrape_config> ... ]
    17. alert_relabel_configs:
    18. [ - <relabel_config> ... ]
    19. alertmanagers:
    20. [ - <alertmanager_config> ... ]
    21. # Settings related to the experimental remote write feature.
    22. remote_write:
    23. [ - <remote_write> ... ]
    24. # Settings related to the experimental remote read feature.
    25. remote_read: