Skip to content

Conversation

@raptorsun
Copy link

Align the master branch to upstream tag v0.8.0

Julien Pivotto and others added 30 commits October 14, 2020 11:24
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
PR prometheus#318 forgot to wire parseCPUInfo to parseCPUInfoRISCV on
GOARCH=riscv{,64}, leading to a build/test failure:

./cpuinfo.go:71:9: undefined: parseCPUInfo
./cpuinfo_test.go:222:2: undefined: parseCPUInfo

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
…theus#339)

* Fix for mountstats error due to multiline "impl_id" on FreeNAS
This commit fixes an error happening when trying to parse data from FreeNAS NFS
mount point. "impl_id" is printed in multiple lines, which triggers "not enough
information for NFS stats" error.

Signed-off-by: Jakub Wesolowski <jakubwesolowski@posteo.net>
Linux limits are uint64, not int64[0]. "unlimited" is also defined as
max uint64.

[0]: https://github.com/torvalds/linux/blob/7c53f6b671f4aba70ff15e1b05148b10d58c2837/include/uapi/linux/resource.h#L48-L53

Signed-off-by: Brandon Bell <bbell@invoca.com>
This patch adds support for extracting system socket metrics found only in /proc/net/protocols. The most interesting metrics found here are per-protocol socket counts along with the total memory in pages used by each. For TCP connections this data can be used to tune/monitor a system against the thresholds set in net.ipv4.tcp_mem. This file also exposes a pressure metric which indicates whether or not a protocol like TCP has entered memory pressure, which again is useful in troubleshooting things like memory pressure induced packet drops on loopback.

Some additional albeit less interesting metrics that come out of this file include the size of each protocol's struct, and the maximum header size the kernel is willing to allocate.

The additional columns enumerate capabilities per-protocol and are encoded as bools.

Signed-off-by: Juan Bran <juan.bran@verizondigitalmedia.com>
Signed-off-by: Wisniewski, Krzysztof2 <Krzysztof2.Wisniewski@intel.com>
This commit includes:
1. MDStat struct extention to hold raid component devices.
2. A util funciton that extracts raid component devices from
   /proc/mdstat info.
3. UTs adjustments.
4. codespell exceptions adjsutments - add to ignored list the
   word "hda" which appears in UTs as a compoent device.

Signed-off-by: Shimon Turjeman <shimon@lightbitslabs.com>
According to the table in https://xfs.org/index.php/Runtime_Stats, the first number of `rw` stats is write and the second is read. I noticed Prometheus seemed to be reporting the opposite of what I expected.

Signed-off-by: William Starling <william@bugsnag.com>
…nfo (prometheus#331)

Signed-off-by: binjip978 <binjip978@gmail.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Signed-off-by: Vitaliy Filippov <vitalif@yourcmc.ru>

Co-authored-by: Vitaliy Filippov <vitalif@yourcmc.ru>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Signed-off-by: Evan Lezar <evanlezar@gmail.com>
* Add GIDs to ProcStatus struct

Signed-off-by: Andrei Volnin <wolandr@gmail.com>

* support to read from /proc/net/tcp{,6}

Signed-off-by: Hubert Chen <hubert@branchmetrics.io>
Co-authored-by: Andrei Volnin <wolandr@gmail.com>
* fix crash seen in node_exporter

Signed-off-by: Hubert Chen <hubert@branchmetrics.io>
This patch adds support for reading slab info from /proc/slabinfo.
For more info see man 5 slabinfo.

Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
Include `err` in some error returns to allow `error.Is()` to work.

Signed-off-by: Ben Kochie <superq@gmail.com>
Use Go 1.13 `%w` error formatting
* Update minimum Go version to 1.13.
* Bump vendoring.
* Update all error format strings to use %w.
* Cleanup consistency of use.
* Cleanup use of `errors.New("string" + var)` to use `fmt.Errorf()`.

prometheus#310

Signed-off-by: Ben Kochie <superq@gmail.com>
Fix parsing of infiniband rate for unconnected/unpopulated ports.

Fixes: prometheus#361

Signed-off-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Robert Fratto <robertfratto@gmail.com>
Signed-off-by: Robert Fratto <robertfratto@gmail.com>
The sysfs contains some useful information about NVMe devices that
should be exporter by the Prometheus node exporter. Add a `NVMeClass`
function to collect the information for the node exporter.

See: prometheus/node_exporter#1891
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Signed-off-by: MashaSamoylova <mashanedyak@gmail.com>
Counters added:
* excessive_buffer_overrun_errors
* local_link_integrity_errors

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
joshniec and others added 13 commits April 25, 2022 22:20
Ignore missing files in bcache metrics.
* cache_readahead was removed in Kernel Version 5.13: https://lkml.org/lkml/2021/5/31/1602

Fixes: prometheus#445

Signed-off-by: Josh Niec <ironick09@gmail.com>
This change fixes a potential source of panic when the status line in
mdstat is empty and the code is trying to reference first item in a
zero-sized slice.

Signed-off-by: Artur Makutunowicz <arma@linkedin.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
This prevents the test fixtures from being shipped around in the module
cache. ie. Prior if project A has a dependency on this project then running
`go mod vendor` will pull the fixtures.ttar into the vendor folder

Signed-off-by: dprotaso <dprotaso@gmail.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
* Update minimum supported version to 1.17.
* Update Go modules.
* Enable dependabot.

Signed-off-by: SuperQ <superq@gmail.com>
Go 1.16 deprecated several `io/ioutil` functions.
* `ioutil.ReadFile` -> `os.ReadFile`
* `ioutil.ReadAll` -> `io.ReadAll`
* `ioutil.ReadDir` -> `os.ReadDir`

Signed-off-by: SuperQ <superq@gmail.com>
Signed-off-by: anguswilliams <anguswilliams@gmail.com>
Signed-off-by: Johannes Ziemke <github@5pi.de>
Signed-off-by: Johannes Ziemke <github@5pi.de>
@openshift-ci openshift-ci bot requested review from jan--f and slashpai October 24, 2022 16:20
@openshift-ci
Copy link

openshift-ci bot commented Oct 24, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: raptorsun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 24, 2022
@openshift-ci
Copy link

openshift-ci bot commented Oct 24, 2022

@raptorsun: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/unit 7ae0283 link true /test unit

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@simonpasquier
Copy link

/hold

we would need a downstream version of prometheus/procfs only if openshift/node_exporter depended on it but it isn't the case apparently

https://github.com/openshift/node_exporter/blob/af2f49cac92d4ec56fd495c0ecfc0e0a4149eea5/go.mod#L25

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 25, 2022
@raptorsun
Copy link
Author

raptorsun commented Oct 25, 2022

/hold

we would need a downstream version of prometheus/procfs only if openshift/node_exporter depended on it but it isn't the case apparently

https://github.com/openshift/node_exporter/blob/af2f49cac92d4ec56fd495c0ecfc0e0a4149eea5/go.mod#L25

ok, we leave this aside. Node Exporter uses github.com/prometheus/procfs directly.

@jan--f
Copy link

jan--f commented Oct 26, 2022

it also looks like we never used it? Should we get rid of this fork then?

@simonpasquier
Copy link

We used it a while ago (> 2 years probably) because we had to carry a downstream patch and didn't want to have a go.mod replace directive in github.com/openshift/node_exporter pointing to github.com/(individual_contributor)/procfs.
Now that we "own" github.com/rhobs, we could use it for dependencies that need to carry downstream patches and archive this fork (another example would be github.com/prometheus/common). Since dependencies are always vendored, the final bits are what lives under vendor/ in github.com/openshift/node_exporter/ anyway.

@simonpasquier
Copy link

I'm experimenting with another option which is to carry the dependency patch directly in the downstream repository that needs it:
openshift/prometheus#145
One advantage is that everything's self-contained (no need to update 2 repositories).

@raptorsun
Copy link
Author

/close

This PR is closed because it is unnecessary now.

@openshift-ci openshift-ci bot closed this Oct 31, 2022
@openshift-ci
Copy link

openshift-ci bot commented Oct 31, 2022

@raptorsun: Closed this PR.

In response to this:

/close

This PR is closed because it is unnecessary now.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@raptorsun raptorsun deleted the update_0.8.0 branch November 15, 2022 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.