2017-03-07 9 views
0

graphite-apiとinfluxdb(https://github.com/InfluxGraph/influxgraph) がインストールされています。指標はinfluxdb(collectdなど)に格納されています。graphite-apiとinfluxdbとの統合

ただし、graphite-apiでデータを取得することはできません。これはポート8888として設定されています。http://localhost:8888/metrics/index.jsonは["null"]を返します。

graphite-api..yaml config: 

finders: 
    - influxgraph.InfluxDBFinder 

influxdb: 
    db: graphite 
    host: localhost 
    port: 8086 
    user: graphite 
    pass: graphite 
    ssl: false 
    log_file: /var/log/influxgraph/influxgraph.log 
    log_level: info 
    templates: 
    memcache: 
     host: localhost 
    memcache: 
    host: localhost 
    aggregation_functions: 
    \.min$ : min 
    \.max$ : max 
    \.last$ : last 
    \.sum$ : sum 
    retention_policies: 
    1800: 30m 
    600: 10m 
    300: default 

答えて

0

はまず、metrics/index.jsonは、それがデータを返さないグラファイト-APIで無操作のAPI呼び出し、驚きです:)最初metrics/find?query=*を試してみてください。

InfluxGraphは、データが流入ネイティブプロトコルで書き込まれている場合、そのテンプレート構成を使用してinfluxdbデータをGraphite互換フォーマットに構造化する方法を伝える必要があります。

project's readmeWikiでこれを行う方法の例がいくつかあります。

データが流入する方法はここには表示されていないので、設定例は表示できません。

Inflaxdbのグラファイトサービスをテンプレートなしで使用する場合、スケーラビリティは低下しますが、InfluxGraphでもテンプレート設定は必要ありません。