안되면되게하자
안되면되게하자
안되면되게하자
전체 방문자
오늘
어제
  • 분류 전체보기 (36)
    • Linux (1)
    • Troubleshooting (13)
    • TIP (9)
    • etc(미분류) (6)
    • 용어.약어들 (2)
    • 티스토리시작전셋팅 (4)

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

공지사항

인기 글

태그

  • 20TB
  • ST20000NE000
  • centos
  • iDRAC8
  • 티스토리 다시 시작
  • +1 647 477 8345
  • xsos
  • R730
  • webapp2
  • devtoolset
  • 그림 붙이기 문제 해결 되었나
  • jinja2
  • iDRAC9
  • VxRail
  • Ansible
  • grafana
  • Received message too long
  • pip3
  • PIP
  • Dell

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
안되면되게하자

안되면되게하자

Troubleshooting

parsing YAML file /etc/prometheus/prometheus.yml: yaml: line 8: did not find expected key"

2022. 1. 28. 14:34

# 출처 : https://groups.google.com/g/prometheus-users/c/hVwDPmjcXtg?pli=1

Unable to load configuration file to run prometheus

Hi all,
 
I am trying to run prometheus, and I am having the following error:
 
"Error loading config couldn't load configuration (--config.file=/etc/prometheus/prometheus.yml): parsing YAML file /etc/prometheus/prometheus.yml: yaml: line 8: did not find expected key"
 
My confiuration file:
 
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets: ['192.168.99.100:9132']  (Line 8)
    scheme: http
    timeout: 10s
scrape_configs:
- job_name: prometheus
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
   - targets: ['localhost:9132']
 
Any idea what does the error actually mean?
 
Thanks!
 
 
 
 
받는사람 Parth Bhagat, Prometheus Users
You need to insert 2 spaces at line 8.

- targets: ['192.168.99.100:9132']  (Line 8)  (x)
  - targets: ['192.168.99.100:9132']  (Line 8) (o)

 

 

 

저작자표시 비영리 (새창열림)

'Troubleshooting' 카테고리의 다른 글

WSL 설치시 "Error: 0x80370102 필요한 기능이 설치되어 있지 않아 가상 머신을 시작할 수 없습니다."  (0) 2022.02.15
go make 실행시 cc1: error: unrecognized command line option "-fno-lto"  (0) 2022.02.11
go build 실행시 go: go.mod file not found in current directory or any parent directory; see 'go help modules'  (0) 2022.02.11
pip 설치시 - E: Unable to locate package python3-pip  (0) 2022.01.05
Wsl 사용시 WslRegisterDistribution failed with error: 0x80370102  (0) 2022.01.04
    'Troubleshooting' 카테고리의 다른 글
    • go make 실행시 cc1: error: unrecognized command line option "-fno-lto"
    • go build 실행시 go: go.mod file not found in current directory or any parent directory; see 'go help modules'
    • pip 설치시 - E: Unable to locate package python3-pip
    • Wsl 사용시 WslRegisterDistribution failed with error: 0x80370102
    안되면되게하자
    안되면되게하자
    '하라'가 아닌, '하자'.... 스스로.... 방법이 없어서 안되는게 아니다... 방법을 몰라서 안되는것 이리라... 다방면으로 검색하고 알아보자...

    티스토리툴바