我在我的機器上運行kapacitor 1.3.1和influxdb 1.2.4。雖然我已經啓用kapacitor發送它的統計信息,但我沒有在influxdb中看到_kapacitor數據庫。 我在這裏失蹤了什麼? kapacitor.config:influxdb中缺少kapacitor指標數據庫
hostname = "localhost"
[stats]
# Emit internal statistics about Kapacitor.
# To consume these stats create a stream task
# that selects data from the configured database
# and retention policy.
#
# Example:
# stream|from().database('_kapacitor').retentionPolicy('autogen')...
#
enabled = true
stats-interval = "10s"
database = "_kapacitor"
retention-policy= "autogen"
[[influxdb]]
# Connect to an InfluxDB cluster
# Kapacitor can subscribe, query and write to this cluster.
# Using InfluxDB is not required and can be disabled.
enabled = true
default = true
name = "localhost"
urls = ["http://localhost:8086"]
username = ""
password = ""
timeout = 0
非常感謝。有效!!我不得不在influxdb中創建數據庫_kapacitor,並保持一切順利。這是在我的Mac上。 我在一個centos盒上試了一樣,它沒有工作。無論如何,我會檢查它 –
如果你無法使用與Mac相同的步驟在Centos上工作,那麼我會建議你用'kapacitor'提高它。適用於Ubuntu。如果您可以將其標記爲可行,則表示感謝。 –