mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
Fixup codespell (#2455)
* Fix some mistakes * Switch to an ignore file. Signed-off-by: Ben Kochie <superq@gmail.com> Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
46748fd229
commit
49db7c81e1
|
@ -34,7 +34,7 @@ jobs:
|
|||
steps:
|
||||
- checkout
|
||||
- run: sudo pip install codespell
|
||||
- run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem,./collector/fixtures" -L uint,packages\',uptodate
|
||||
- run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem,./collector/fixtures" -I scripts/codespell_ignore.txt
|
||||
test_mixins:
|
||||
executor: golang
|
||||
steps:
|
||||
|
|
|
@ -354,7 +354,7 @@ Other breaking changes:
|
|||
* [CHANGE] Greatly reduce the metrics vmstat returns by default. #874
|
||||
* [CHANGE] Greatly trim what netstat collector exposes by default #876
|
||||
* [CHANGE] Drop `exec_` prefix and move `node_boot_time_seconds` from `exec` to new `boottime` collector and enable for Darwin/Dragonfly/FreeBSD/NetBSD/OpenBSD. #839, #901
|
||||
* [CHANGE] Remove depreated gmond collector #852
|
||||
* [CHANGE] Remove deprecated gmond collector #852
|
||||
* [CHANGE] align Darwin disk stat names with Linux #930
|
||||
* [FEATURE] Add `collect[]` parameter #699
|
||||
* [FEATURE] Add text collector conversion for ipmitool output. #746
|
||||
|
@ -422,7 +422,7 @@ Windows support is now removed, the [wmi_exporter](https://github.com/martinlind
|
|||
* [FEATURE] Add bcache collector for Linux #597
|
||||
* [FEATURE] Add parsing /proc/net/snmp6 file for Linux #615
|
||||
* [FEATURE] Add timex collector for Linux #664
|
||||
* [ENHANCEMENT] Include overal health status in smartmon.sh example script #546
|
||||
* [ENHANCEMENT] Include overall health status in smartmon.sh example script #546
|
||||
* [ENHANCEMENT] Include `guest_nice` in CPU collector #554
|
||||
* [ENHANCEMENT] Add exec_boot_time for freebsd, dragonfly #550
|
||||
* [ENHANCEMENT] Get full resolution for node_time #555
|
||||
|
|
|
@ -70,7 +70,7 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) {
|
|||
"speed": "Current operating speed",
|
||||
"port_state": "Current port state",
|
||||
"port_type": "Port type, what the port is connected to",
|
||||
"symbolic_name": "Symoblic Name",
|
||||
"symbolic_name": "Symbolic Name",
|
||||
"node_name": "Node Name as hexadecimal string",
|
||||
"port_id": "Port ID as string",
|
||||
"port_name": "Port Name as hexadecimal string",
|
||||
|
|
|
@ -182,7 +182,7 @@ func main() {
|
|||
level.Info(logger).Log("msg", "Starting node_exporter", "version", version.Info())
|
||||
level.Info(logger).Log("msg", "Build context", "build_context", version.BuildContext())
|
||||
if user, err := user.Current(); err == nil && user.Uid == "0" {
|
||||
level.Warn(logger).Log("msg", "Node Exporter is running as root user. This exporter is designed to run as unpriviledged user, root is not required.")
|
||||
level.Warn(logger).Log("msg", "Node Exporter is running as root user. This exporter is designed to run as unprivileged user, root is not required.")
|
||||
}
|
||||
|
||||
http.Handle(*metricsPath, newHandler(!*disableExporterMetrics, *maxRequests, logger))
|
||||
|
|
6
scripts/codespell_ignore.txt
Normal file
6
scripts/codespell_ignore.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
inflight
|
||||
packages\'
|
||||
ro
|
||||
siz
|
||||
uint
|
||||
uptodate
|
Loading…
Reference in a new issue