mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-01-20 23:39:02 +01:00
Merge pull request #481 from prometheus/grobie/goreportcard
Add goreportcard
This commit is contained in:
commit
1a76b5e861
@ -3,6 +3,7 @@
|
|||||||
[![CircleCI](https://circleci.com/gh/prometheus/node_exporter/tree/master.svg?style=shield)][circleci]
|
[![CircleCI](https://circleci.com/gh/prometheus/node_exporter/tree/master.svg?style=shield)][circleci]
|
||||||
[![Docker Repository on Quay](https://quay.io/repository/prometheus/node-exporter/status)][quay]
|
[![Docker Repository on Quay](https://quay.io/repository/prometheus/node-exporter/status)][quay]
|
||||||
[![Docker Pulls](https://img.shields.io/docker/pulls/prom/node-exporter.svg?maxAge=604800)][hub]
|
[![Docker Pulls](https://img.shields.io/docker/pulls/prom/node-exporter.svg?maxAge=604800)][hub]
|
||||||
|
[![Go Report Card](https://goreportcard.com/badge/github.com/prometheus/node_exporter)][goreportcard]
|
||||||
|
|
||||||
Prometheus exporter for hardware and OS metrics exposed by \*NIX kernels, written
|
Prometheus exporter for hardware and OS metrics exposed by \*NIX kernels, written
|
||||||
in Go with pluggable metric collectors.
|
in Go with pluggable metric collectors.
|
||||||
@ -135,3 +136,4 @@ Be aware though that the mountpoint label in various metrics will now have
|
|||||||
[hub]: https://hub.docker.com/r/prom/node-exporter/
|
[hub]: https://hub.docker.com/r/prom/node-exporter/
|
||||||
[circleci]: https://circleci.com/gh/prometheus/node_exporter
|
[circleci]: https://circleci.com/gh/prometheus/node_exporter
|
||||||
[quay]: https://quay.io/repository/prometheus/node-exporter
|
[quay]: https://quay.io/repository/prometheus/node-exporter
|
||||||
|
[goreportcard]: https://goreportcard.com/report/github.com/prometheus/node_exporter
|
||||||
|
@ -419,7 +419,7 @@ func NewMountStatsCollector() (Collector, error) {
|
|||||||
|
|
||||||
NFSEventVFSLockTotal: prometheus.NewDesc(
|
NFSEventVFSLockTotal: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, subsystem, "event_vfs_lock_total"),
|
prometheus.BuildFQName(Namespace, subsystem, "event_vfs_lock_total"),
|
||||||
"Number of times locking has been attemped on a file.",
|
"Number of times locking has been attempted on a file.",
|
||||||
labels,
|
labels,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
|
@ -31,20 +31,20 @@ var (
|
|||||||
procLineRE = regexp.MustCompile(`^proc(\d+) \d+ (\d+( \d+)*)$`)
|
procLineRE = regexp.MustCompile(`^proc(\d+) \d+ (\d+( \d+)*)$`)
|
||||||
|
|
||||||
nfsProcedures = map[string][]string{
|
nfsProcedures = map[string][]string{
|
||||||
"2": []string{
|
"2": {
|
||||||
"null", "getattr", "setattr", "root", "lookup",
|
"null", "getattr", "setattr", "root", "lookup",
|
||||||
"readlink", "read", "writecache", "write", "create",
|
"readlink", "read", "writecache", "write", "create",
|
||||||
"remove", "rename", "link", "symlink", "mkdir",
|
"remove", "rename", "link", "symlink", "mkdir",
|
||||||
"rmdir", "readdir", "statfs",
|
"rmdir", "readdir", "statfs",
|
||||||
},
|
},
|
||||||
"3": []string{
|
"3": {
|
||||||
"null", "getattr", "setattr", "lookup", "access",
|
"null", "getattr", "setattr", "lookup", "access",
|
||||||
"readlink", "read", "write", "create", "mkdir",
|
"readlink", "read", "write", "create", "mkdir",
|
||||||
"symlink", "mknod", "remove", "rmdir", "rename",
|
"symlink", "mknod", "remove", "rmdir", "rename",
|
||||||
"link", "readdir", "readdirplus", "fsstat", "fsinfo",
|
"link", "readdir", "readdirplus", "fsstat", "fsinfo",
|
||||||
"pathconf", "commit",
|
"pathconf", "commit",
|
||||||
},
|
},
|
||||||
"4": []string{
|
"4": {
|
||||||
"null", "read", "write", "commit", "open",
|
"null", "read", "write", "commit", "open",
|
||||||
"open_confirm", "open_noattr", "open_downgrade",
|
"open_confirm", "open_noattr", "open_downgrade",
|
||||||
"close", "setattr", "fsinfo", "renew", "setclientid",
|
"close", "setattr", "fsinfo", "renew", "setclientid",
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
// Creates mock UnitLists
|
// Creates mock UnitLists
|
||||||
func getUnitListFixtures() [][]dbus.UnitStatus {
|
func getUnitListFixtures() [][]dbus.UnitStatus {
|
||||||
fixture1 := []dbus.UnitStatus{
|
fixture1 := []dbus.UnitStatus{
|
||||||
dbus.UnitStatus{
|
{
|
||||||
Name: "foo",
|
Name: "foo",
|
||||||
Description: "foo desc",
|
Description: "foo desc",
|
||||||
LoadState: "loaded",
|
LoadState: "loaded",
|
||||||
@ -36,7 +36,7 @@ func getUnitListFixtures() [][]dbus.UnitStatus {
|
|||||||
JobType: "",
|
JobType: "",
|
||||||
JobPath: "/",
|
JobPath: "/",
|
||||||
},
|
},
|
||||||
dbus.UnitStatus{
|
{
|
||||||
Name: "bar",
|
Name: "bar",
|
||||||
Description: "bar desc",
|
Description: "bar desc",
|
||||||
LoadState: "not-found",
|
LoadState: "not-found",
|
||||||
@ -48,7 +48,7 @@ func getUnitListFixtures() [][]dbus.UnitStatus {
|
|||||||
JobType: "",
|
JobType: "",
|
||||||
JobPath: "/",
|
JobPath: "/",
|
||||||
},
|
},
|
||||||
dbus.UnitStatus{
|
{
|
||||||
Name: "foobar",
|
Name: "foobar",
|
||||||
Description: "bar desc",
|
Description: "bar desc",
|
||||||
LoadState: "not-found",
|
LoadState: "not-found",
|
||||||
@ -60,7 +60,7 @@ func getUnitListFixtures() [][]dbus.UnitStatus {
|
|||||||
JobType: "",
|
JobType: "",
|
||||||
JobPath: "/",
|
JobPath: "/",
|
||||||
},
|
},
|
||||||
dbus.UnitStatus{
|
{
|
||||||
Name: "baz",
|
Name: "baz",
|
||||||
Description: "bar desc",
|
Description: "bar desc",
|
||||||
LoadState: "not-found",
|
LoadState: "not-found",
|
||||||
|
Loading…
Reference in New Issue
Block a user