The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/man/man8/zpool_influxdb.8

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 .\"
    2 .\" CDDL HEADER START
    3 .\"
    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.
    7 .\"
    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.
   12 .\"
   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]
   18 .\"
   19 .\" CDDL HEADER END
   20 .\"
   21 .\" Copyright 2020 Richard Elling
   22 .\"
   23 .Dd May 26, 2021
   24 .Dt ZPOOL_INFLUXDB 8
   25 .Os
   26 .
   27 .Sh NAME
   28 .Nm zpool_influxdb
   29 .Nd collect ZFS pool statistics in InfluxDB line protocol format
   30 .Sh SYNOPSIS
   31 .Nm
   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 …
   36 .Op Ar pool
   37 .
   38 .Sh DESCRIPTION
   39 .Nm
   40 produces InfluxDB-line-protocol-compatible metrics from zpools.
   41 Like the
   42 .Nm zpool
   43 command,
   44 .Nm
   45 reads the current pool status and statistics.
   46 Unlike the
   47 .Nm zpool
   48 command which is intended for humans,
   49 .Nm
   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.
   53 .Pp
   54 By default,
   55 .Nm
   56 prints pool metrics and status in the InfluxDB line protocol format.
   57 All pools are printed, similar to the
   58 .Nm zpool Cm status
   59 command.
   60 Providing a pool name restricts the output to the named pool.
   61 .
   62 .Sh OPTIONS
   63 .Bl -tag -width "-e, --execd"
   64 .It Fl e , -execd
   65 Run in daemon mode compatible with Telegraf's
   66 .Nm execd
   67 plugin.
   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.
   75 The resulting values
   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
   80 .Nm zpool Cm iostat .
   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.
   88 .It Fl h , -help
   89 Print a usage summary.
   90 .El
   91 .
   92 .Sh SEE ALSO
   93 .Xr zpool-iostat 8 ,
   94 .Xr zpool-status 8 ,
   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"

Cache object: 0afaec951cfa00b922c873a295368ef4


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.