github.com/dominant-strategies/go-quai@v0.28.2/metrics/influxdb/README.md (about) 1 go-metrics-influxdb 2 =================== 3 4 This is a reporter for the [go-metrics](https://github.com/rcrowley/go-metrics) library which will post the metrics to [InfluxDB](https://influxdb.com/). 5 6 Note 7 ---- 8 9 This is only compatible with InfluxDB 0.9+. 10 11 Usage 12 ----- 13 14 ```go 15 import "github.com/vrischmann/go-metrics-influxdb" 16 17 go influxdb.InfluxDB( 18 metrics.DefaultRegistry, // metrics registry 19 time.Second * 10, // interval 20 "http://localhost:8086", // the InfluxDB url 21 "mydb", // your InfluxDB database 22 "myuser", // your InfluxDB user 23 "mypassword", // your InfluxDB password 24 ) 25 ``` 26 27 License 28 ------- 29 30 go-metrics-influxdb is licensed under the MIT license. See the LICENSE file for details.