1. static_configs: # 静态配置 static_configs: # 指定要抓取的目标地址 -targets: ['localhost:9090','localhost:9191'] # 给抓取出来的所有指标添加指定的标签 labels: my: label your: label 1. 2. 3. 4. 5. 6. 7. 8. 2. file_sd_configs: 基于文件的自动发现,prometheus会定期读取文件中的配置...
that looks weird, but Fedora's golang-github-prometheus-2.20.0-2.fc33.x86_64 is my build. Prometheus configuration file: insert configuration here - job_name: 'debuginfod-https' scheme: https static_configs: - targets: ['debuginfod.opensuse.org'] Logs: insert Prometheus and Alertmanag...
# Configures the server of the Agent used to enable self-scraping.[server:<server_config>]# Configures metric collection.# In previous versions of the agent, this field was called "prometheus".[metrics:<metrics_config>]# Configures log collection.# In previous versions of the agent, this fiel...
GET /agent/api/v1/configs List configs returns a list of the named configurations currently known by the underlying KV store. Status code: 200 on success. Response: { "status": "success", "data": { "configs": [ // list of config names: "a", "b", "c", // ... ] } } ...
server:log_level:debuglogs:# Choose a directory to save the last read position of log files at.# This directory will be created if it doesn't already exist.positions_directory:"C:\\path\\to\\directory"configs:-name:windows# Loki endpoint to push logs toclients:-url:https://example.comsc...