Score:0

prometheus field remote_write not found in type config.plain

cn flag

I need help using prometheus remote_write and remote_read to/from influxdb. I got error below:

# 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

Here is my 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
Score:0
cn flag

my bad, editing prometheus.yml as below resolved the issue!

# 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
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.