2016-09-12 6 views
1

私はPrometheusを初めて使っていて、私のRHEL 6サーバにPrometheusをインストールしようとしています。 私は以下のように設定ファイルで詳細を埋めてきたポスト、RHEL用のRPMをインストールしている:私はプロメテウスを起動しようとするとPrometheusスタートアップクエリ

global: 
    scrape_interval:  5s 
    evaluation_interval: 5s 
scrape_configs: 
- job_name: linux 
target_groups: 
     -targets: ['192.17.36.189:3306'] 
      labels: 
      alias: db1 

、私は次のエラーを取得する:

INFO[0000] Starting prometheus (version=1.1.2, branch=master, revision=36fbdcc30fd13ad796381dc934742c559feeb1b5) source=main.go:73 
    INFO[0000] Build context (go=go1.6.3, [email protected], date=20160908-13:12:43) source=main.go:74 
    INFO[0000] Loading configuration file prometheus.yml  source=main.go:221 
    ERRO[0000] Error loading config: couldn't load configuration (-config.file=prometheus.yml): yaml: line 6: found character that cannot start any token source=main.go:126 

何ここでの問題ですか?

答えて

0

target_groupsは、static_configsに変更されました。最新のプロメテウス画像は、以下のものを使用してください。

static_configs: 
    - targets: ['192.17.36.189:3306'] 

上記は私のために働いた。

また、プロメテウスポート9090はコンテナ/ポッド/サービスで公開されていますか? https://github.com/prometheus/prometheus/wiki/Default-port-allocations

関連する問題