version

Docker: 20.10.7grafana: 7.4.3 -> 7.5.10 influxdb: 1.8.6

The installation

Docker run-d -p 3000-3000 –name=grafana grafana/grafana:7.5.10 Docker run-d -p 8083:8083-p 8086:8086 –name influxdb Influxdb :1.8 CREATE USER “admin” WITH PASSWORD “admin” WITH ALL PRIVILEGES influx -username admin -password admin

Configuration (vim/etc/influxdb/influxdb conf)

[meta]
  dir = "/var/lib/influxdb/meta"

[data]
  dir = "/var/lib/influxdb/data"
  engine = "tsm1"
  wal-dir = "/var/lib/influxdb/wal"

[http]
  enabled = true
  bind-address = ":8086"
  auth-enabled = true
  log-enabled = true
  write-tracing = false
  pprof-enabled = false
  https-enabled = false
  output = [
    { name="localhost", location = "http://localhost:8086/write", buffer-size = 1000, max-delay-interval = "1m", username="admin", password="admin" }
]
Copy the code

Configuring the database

Data write failure

responseCode: 401, responseBody: {“error”:”unable to parse authentication credentials”}

The results of the document

Dashboard template website

Grafana.com/grafana/das… www.cnblogs.com/xuliuzai/p/…

reference

Blog.csdn.net/ron03129596… Testerhome.com/topics/2749… Bbs.huaweicloud.com/blogs/25906… www.tqwba.com/x_d/jishu/2… Cloud.tencent.com/developer/a… Cloud.tencent.com/developer/a…

Version 2.0

Testerhome.com/topics/2950…

The default value is influx Config create -n default -u http://localhost:8086 -o OrganizationDemo -t fAtkQcEC3ZcHp4iG48GYZbmf1Sa1v5cT6QN4FwWHgSa-bI3eFQjNJMvOMiCx3XpWWZqaYfBIAjgj-50uS7juBQ== -a influx config -h influx Config rm default Write data https://docs.influxdata.com/influxdb/v2.0/write-data/developer-tools/influx-cli/ influx write - b JMeter - o OrganizationDemo -p s 'myMeasurement,host=myHost testField="testData" 1556896326' telegraf Monitor export INFLUX_TOKEN=9-qSc1IZu-u_kdRhaT7mO19Yni6QmA7_phsTK3nN_kfnZdy9o17M5TXIN4AgVEs85Zf8QhqLV7DZ7qh1j14H-A== telegraf --config http://localhost:8087/api/v2/telegrafs/07e739f871d79000 through template file, Add dashboard influx apply -t admin_token-f https://raw.githubusercontent.com/influxdata/community-templates/master/apache_jmeter/apache_jmeter.ymlCopy the code