mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-13 17:14:23 -08:00
zfs: standardize case spelling of NewZFSCollector
Ensure identical factory function name across arch-specific files so that the common init() function in zfs.go works. Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
This commit is contained in:
parent
b2dfaeb146
commit
770bd551db
|
@ -30,7 +30,7 @@ const (
|
||||||
zfsCollectorSubsystem = "zfs"
|
zfsCollectorSubsystem = "zfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewZfsCollector(logger *slog.Logger) (Collector, error) {
|
func NewZFSCollector(logger *slog.Logger) (Collector, error) {
|
||||||
return &zfsCollector{
|
return &zfsCollector{
|
||||||
sysctls: []bsdSysctl{
|
sysctls: []bsdSysctl{
|
||||||
{
|
{
|
||||||
|
|
|
@ -61,7 +61,7 @@ const (
|
||||||
zfsCollectorSubsystem = "zfs"
|
zfsCollectorSubsystem = "zfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewZfsCollector(logger *slog.Logger) (Collector, error) {
|
func NewZFSCollector(logger *slog.Logger) (Collector, error) {
|
||||||
return &zfsCollector{
|
return &zfsCollector{
|
||||||
abdstatsLinearCount: prometheus.NewDesc(
|
abdstatsLinearCount: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(namespace, zfsCollectorSubsystem, "abdstats_linear_count_total"),
|
prometheus.BuildFQName(namespace, zfsCollectorSubsystem, "abdstats_linear_count_total"),
|
||||||
|
|
Loading…
Reference in a new issue