1. 程式人生 > >Jmeter & TICK

Jmeter & TICK

phi roo x server .com .cn height ron ont nsis

背景: 本來只是想在將Jmeter的測試結果寫入InfluxDB, 但發現從InfluxDB V1.3後開始, 已經不支持Web Admin interface, 才發現InfluxData 搞了一個整體產品棧,名字叫做TICK
  • Telegraf
  • InfluxDB
  • Chronograf
  • Kapacitor
前提: 有一臺Linux Server (Redhat 6), IP為:172.20.184.157, 可以通過sudo 安裝軟件包 安裝 1. 先下載 https://dl.influxdata.com/influxdb/releases/influxdb-1.3.5.x86_64.rpm
https://dl.influxdata.com/telegraf/releases/telegraf-1.4.0-1.x86_64.rpm https://dl.influxdata.com/chronograf/releases/chronograf-1.3.8.1.x86_64.rpm https://dl.influxdata.com/kapacitor/releases/kapacitor-1.3.1.x86_64.rpm 2. 將這些安裝包通過winSCP 復制到Linux 文件夾下(例如:/home/MSDomain1/bzhou/) 3. 切換身份到root賬號, 命令行為:“sudo su -”
4. 依次安裝,命令行如下: yum localinstall /home/MSDOMAIN1/bzhou/influxdb-1.3.5.x86_64.rpm yum localinstall /home/MSDOMAIN1/bzhou/kapacitor-1.3.1.x86_64.rpm yum localinstall /home/MSDOMAIN1/bzhou/telegraf-1.4.0-1.x86_64.rpm yum localinstall /home/MSDOMAIN1/bzhou/chronograf-1.3.8.1.x86_64.rpm 5. 編輯influxdb.conf, 命令行為:“vi /etc/influxdb/influxdb.conf” [http] # Determines whether HTTP endpoint is enabled. enabled = true # The bind address used by the HTTP service. bind-address = ":8086" [[graphite]] # Determines whether the graphite endpoint is enabled. enabled = true database = "jmeter" # retention-policy = "" bind-address = ":2003" protocol = "tcp" consistency-level = "one" 保存後,退出,重新啟動服務,命令依次為: service influxdb restart service kapacitor restart service telegraf restart service chronograf restart 6. 打開chronograf 控制臺, http://172.20.184.157:8888/
, 查看TICK 安裝情況,並設定數據源 7. 創建Jmeter數據庫 技術分享 8. 在Jmeter 項目中加入Backend Listen, 並指向TICK 技術分享 關於BackendListen 相關知識,請參見 https://docs.influxdata.com/influxdb/v1.1/query_language/database_management/ http://jmeter.apache.org/usermanual/component_reference.html#Backend_Listener

Jmeter & TICK