From 56eba80306be0ccd171979cd56d96e822e4fe0c8 Mon Sep 17 00:00:00 2001 From: mhiles Date: Tue, 2 Feb 2021 18:05:24 -0500 Subject: [PATCH] add fibrechannel to default list in read me; host -> fc_host to avoid name collision Signed-off-by: mhiles --- README.md | 1 + collector/fibrechannel_linux.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index effca34c..983a250d 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ diskstats | Exposes disk I/O statistics. | Darwin, Linux, OpenBSD edac | Exposes error detection and correction statistics. | Linux entropy | Exposes available entropy. | Linux exec | Exposes execution statistics. | Dragonfly, FreeBSD +fibrechannel | Exposes fibre channel information and statistics from `/sys/class/fc_host/`. | Linux filefd | Exposes file descriptor statistics from `/proc/sys/fs/file-nr`. | Linux filesystem | Exposes filesystem statistics, such as disk space used. | Darwin, Dragonfly, FreeBSD, Linux, OpenBSD hwmon | Expose hardware monitoring and sensor data from `/sys/class/hwmon/`. | Linux diff --git a/collector/fibrechannel_linux.go b/collector/fibrechannel_linux.go index 1db0f1e6..9c7edf68 100644 --- a/collector/fibrechannel_linux.go +++ b/collector/fibrechannel_linux.go @@ -87,7 +87,7 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) { i.metricDescs[metricName] = prometheus.NewDesc( prometheus.BuildFQName(namespace, i.subsystem, metricName), description, - []string{"host"}, + []string{"fc_host"}, nil, ) }