4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at
9 .\" https://opensource.org/licenses/CDDL-1.0
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
21 .\" Copyright 2020 Richard Elling
29 .Nd collect ZFS pool statistics in InfluxDB line protocol format
32 .Op Fl e Ns | Ns Fl -execd
33 .Op Fl n Ns | Ns Fl -no-histogram
34 .Op Fl s Ns | Ns Fl -sum-histogram-buckets
35 .Op Fl t Ns | Ns Fl -tags Ar key Ns = Ns Ar value Ns Oo , Ns Ar key Ns = Ns Ar value Oc Ns …
40 produces InfluxDB-line-protocol-compatible metrics from zpools.
45 reads the current pool status and statistics.
48 command which is intended for humans,
50 formats the output in the InfluxDB line protocol.
51 The expected use is as a plugin to a
52 metrics collector or aggregator, such as Telegraf.
56 prints pool metrics and status in the InfluxDB line protocol format.
57 All pools are printed, similar to the
60 Providing a pool name restricts the output to the named pool.
63 .Bl -tag -width "-e, --execd"
65 Run in daemon mode compatible with Telegraf's
68 In this mode, the pools are sampled every time a
69 newline appears on the standard input.
70 .It Fl n , -no-histogram
71 Do not print latency and I/O size histograms.
72 This can reduce the total
73 amount of data, but one should consider the value brought by the insights
74 that latency and I/O size distributions provide.
76 are suitable for graphing with Grafana's heatmap plugin.
77 .It Fl s , -sum-histogram-buckets
78 Accumulates bucket values.
79 By default, the values are not accumulated and the raw data appears as shown by
81 This works well for Grafana's heatmap plugin.
82 Summing the buckets produces output similar to Prometheus histograms.
83 .It Fl t , Fl -tags Ar key Ns = Ns Ar value Ns Oo , Ns Ar key Ns = Ns Ar value Oc Ns …
84 Adds specified tags to the tag set.
85 No sanity checking is performed.
86 See the InfluxDB Line Protocol format documentation for details on escaping
87 special characters used in tags.
89 Print a usage summary.
95 .Lk https://github.com/influxdata/influxdb "InfluxDB" ,
96 .Lk https://github.com/influxdata/telegraf "Telegraf" ,
97 .Lk https://grafana.com "Grafana" ,
98 .Lk https://prometheus.io "Prometheus"