Мне нужна помощь с использованием prometheus remote_write и remote_read в/из influxdb. Я получил ошибку ниже:
# promtool check config /etc/prometheus/prometheus.yml
Checking /etc/prometheus/prometheus.yml
FAILED: parsing YAML file /etc/prometheus/prometheus.yml: yaml: unmarshal errors:
line 5: field remote_write not found in type config.plain
line 7: field remote_read not found in type config.plain
Вот мой prometheus.yml
# head /etc/prometheus/prometheus.yml
---
global:
scrape_interval: 60s
evaluation_interval: 60s
remote_write:
- url: "http://192.168.0.10:8086/api/v1/prom/write?db=promtestdb&u=myuser&p=mypassword"
remote_read:
- url: "http://192.168.0.10:8086/api/v1/prom/read?db=promtestdb&u=myuser&p=mypassword"
scrape_configs:
- job_name: ldr
Прометей
1 ответ
мой плохой, редактирование prometheus.yml, как показано ниже, решило проблему!
# head /etc/prometheus/prometheus.yml
---
global:
scrape_interval: 60s
evaluation_interval: 60s
remote_write:
- url: "http://192.168.0.10:8086/api/v1/prom/write?db=promtestdb&u=myuser&p=mypassword"
remote_read:
- url: "http://192.168.0.10:8086/api/v1/prom/read?db=promtestdb&u=myuser&p=mypassword"
scrape_configs:
- job_name: ldr
саджр