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:
Ben Kochie 2022-09-02 10:49:47 +02:00 committed by GitHub
parent 46748fd229
commit 49db7c81e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 5 deletions

View File

@ -34,7 +34,7 @@ jobs:
steps: steps:
- checkout - checkout
- run: sudo pip install codespell - 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: test_mixins:
executor: golang executor: golang
steps: steps:

View File

@ -354,7 +354,7 @@ Other breaking changes:
* [CHANGE] Greatly reduce the metrics vmstat returns by default. #874 * [CHANGE] Greatly reduce the metrics vmstat returns by default. #874
* [CHANGE] Greatly trim what netstat collector exposes by default #876 * [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] 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 * [CHANGE] align Darwin disk stat names with Linux #930
* [FEATURE] Add `collect[]` parameter #699 * [FEATURE] Add `collect[]` parameter #699
* [FEATURE] Add text collector conversion for ipmitool output. #746 * [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 bcache collector for Linux #597
* [FEATURE] Add parsing /proc/net/snmp6 file for Linux #615 * [FEATURE] Add parsing /proc/net/snmp6 file for Linux #615
* [FEATURE] Add timex collector for Linux #664 * [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] Include `guest_nice` in CPU collector #554
* [ENHANCEMENT] Add exec_boot_time for freebsd, dragonfly #550 * [ENHANCEMENT] Add exec_boot_time for freebsd, dragonfly #550
* [ENHANCEMENT] Get full resolution for node_time #555 * [ENHANCEMENT] Get full resolution for node_time #555

View File

@ -70,7 +70,7 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) {
"speed": "Current operating speed", "speed": "Current operating speed",
"port_state": "Current port state", "port_state": "Current port state",
"port_type": "Port type, what the port is connected to", "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", "node_name": "Node Name as hexadecimal string",
"port_id": "Port ID as string", "port_id": "Port ID as string",
"port_name": "Port Name as hexadecimal string", "port_name": "Port Name as hexadecimal string",

View File

@ -182,7 +182,7 @@ func main() {
level.Info(logger).Log("msg", "Starting node_exporter", "version", version.Info()) level.Info(logger).Log("msg", "Starting node_exporter", "version", version.Info())
level.Info(logger).Log("msg", "Build context", "build_context", version.BuildContext()) level.Info(logger).Log("msg", "Build context", "build_context", version.BuildContext())
if user, err := user.Current(); err == nil && user.Uid == "0" { 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)) http.Handle(*metricsPath, newHandler(!*disableExporterMetrics, *maxRequests, logger))

View File

@ -0,0 +1,6 @@
inflight
packages\'
ro
siz
uint
uptodate