add fibrechannel to default list in read me; host -> fc_host to avoid name collision

Signed-off-by: mhiles <hiles@hpe.com>
This commit is contained in:
mhiles 2021-02-02 18:05:24 -05:00
parent 3fcccd5b14
commit 56eba80306
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ diskstats | Exposes disk I/O statistics. | Darwin, Linux, OpenBSD
edac | Exposes error detection and correction statistics. | Linux edac | Exposes error detection and correction statistics. | Linux
entropy | Exposes available entropy. | Linux entropy | Exposes available entropy. | Linux
exec | Exposes execution statistics. | Dragonfly, FreeBSD 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 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 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 hwmon | Expose hardware monitoring and sensor data from `/sys/class/hwmon/`. | Linux

View File

@ -87,7 +87,7 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) {
i.metricDescs[metricName] = prometheus.NewDesc( i.metricDescs[metricName] = prometheus.NewDesc(
prometheus.BuildFQName(namespace, i.subsystem, metricName), prometheus.BuildFQName(namespace, i.subsystem, metricName),
description, description,
[]string{"host"}, []string{"fc_host"},
nil, nil,
) )
} }