| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
The checkmetrics target currently uses promtool v2.5.0 which doesn't
include many improvements done over the time. This change also
simplifies the promtool installation, avoiding a temporary directory by
extracting the file directly to the target destination.
Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
|
|
|
| |
Signed-off-by: Vitthal Bagal <vitthalb@us.ibm.com>
|
|
|
|
|
|
|
| |
* Add makefile target to update sysfs fixtures.
* Use similar style for fixtures from procfs.
* Re-pack fixtures ttar file.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
| |
Build and publish ARM32v7, ARM64v8 and ppc64le docker images.
Signed-off-by: Johannes Würbach <johannes.wuerbach@googlemail.com>
|
|
|
| |
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
|
|
|
| |
Signed-off-by: James Hartig <james@getadmiral.com>
|
|
|
|
|
|
| |
The recent updates to Makefile.common make some of the stuff in
Makefile unnecessary.
Signed-off-by: Paul Gier <pgier@redhat.com>
|
|
|
|
|
|
| |
Adding $(PROMTOOL) to .PHONY makes it impossible to provide an alternative path
to promtool.
Signed-off-by: Mateusz Piotrowski <0mp@FreeBSD.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Convert to Go modules
* Update promu config.
* Convert to Go modules.
* Update vendoring.
* Update Makefile.common.
* Update circleci config.
* Use Prometheus release tar for promtool.
* Fixup unpack
* Use temp dir for unpacking tools.
* Use BSD compatible tar command.
* OpenBSD mkdir doesn't support `-v`.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
| |
Signed-off-by: Kazumasa Kohtaka <kkohtaka@gmail.com>
|
|
|
|
|
|
| |
Rename promu no-cgo config to default promu name to avoid crossbuild
problems.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
* Update build
* Only use CGO when building non-Linux.
* Update build to Go 1.11
* Use tab indenting consistently.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
| |
Fix override of make docker target to include new `DOCKER_REPO`
variable pattern.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
| |
* Update from upstream `Makefile.common`.
* Update CircleCI with simplifed upstream templating.
* Cleanup `Makefile`.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add Makefile.common
Signed-off-by: bege13mot <bege13mot@gmail.com>
* Change Makefile.common to initial Prometheus common
Signed-off-by: bege13mot <bege13mot@gmail.com>
* fix checkmetrics
Signed-off-by: bege13mot <bege13mot@gmail.com>
* fix promu
Signed-off-by: bege13mot <bege13mot@gmail.com>
* Add test to common
Signed-off-by: bege13mot <bege13mot@gmail.com>
* Fix GOPATH
Signed-off-by: bege13mot <bege13mot@gmail.com>
* Initial Makefile.common
Signed-off-by: bege13mot <bege13mot@gmail.com>
* original Makefile.common
Signed-off-by: bege13mot <bege13mot@gmail.com>
* delete promu
Signed-off-by: bege13mot <bege13mot@gmail.com>
* delete redundant .PRONY params
Signed-off-by: bege13mot <bege13mot@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
* Do not rely on AArch64 CPUs to support 32-bit ARM for cross-testing.
Signed-off-by: Alexey Kopytov <akopytov@gmail.com>
* aarch64 like ppc64le reports 64k node_sockstat_TCP_mem_bytes due to 64k pages.
Signed-off-by: Alexey Kopytov <akopytov@gmail.com>
|
|\
| |
| | |
Cleanup sys fixtures before unpacking
|
| |
| |
| |
| |
| |
| |
| | |
Make sure we cleanup the sys fixtures before unpacking to avoid obsolete
files and conflicts from sticking around.
Signed-off-by: Ben Kochie <superq@gmail.com>
|
|/
|
|
|
|
|
|
| |
The all target should abort on incorrectly formatted code, instead of
formatting it. The CI pipeline should fail and not silently accept
wrong code.
Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
|
|
|
|
|
|
| |
Without this change, running 'gmake' as the documentation does not finish the
build process to produce the binary.
Signed-off-by: Zach Leslie <xaque208@gmail.com>
|
| |
|
| |
|
|
|
|
| |
Update Prometheus client golang use to use `promhttp.Handler()` instead
of `prometheus.InstrumentHandlerFunc()`.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add `collect[]` parameter
* Add TODo comment about staticcheck ignored
* Restore promhttp.HandlerOpts
* Log a warning and return HTTP error instead of failing
* Check collector existence and status, cleanups
* Fix warnings and error messages
* Don't panic, return error if collector registration failed
* Update README
|
|
|
|
|
|
|
|
| |
This enables native builds to still run the test and all targets without
problems on say 386.
Build failure on Buildkite build 85, prevents enabling native FreeBSD
386 builds.
|
|
|
|
| |
This doesn't work on at least FreeBSD and Darwin. It does work on Linux,
only try it there.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Try to determine the corresponding 32bit architecture from the current
GOARCH and run the tests under that architecture. This only works on a
GOOS/GOARCH that can execute binaries for the smaller architecture, such
as running linux/386 binaries under linux/amd64.
I tested that this works under linux/amd64 and darwin/amd64, the rest of
the architectures is guesswork.
While we still only run regular tests on Intel/Linux architectures, this
covers general integer overflow issues like #629.
|
|
|
|
|
|
|
|
| |
* Add dockerfile for ppc64le and related changes
* Pass the fill file as DOCKEFILE
* Add the dockerfile name to build msg
|
|
|
|
|
|
|
|
| |
detector (#616)
* [test] Call cmd.Start and cmd.Wait separately to avoid triggering race detector
* [test] Enable race detector for tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add bcache collector for Linux
This collector gathers metrics related to the Linux block cache
(bcache) from sysfs.
* Removed commented out code
* Use project comment style
* Add _sectors to metric name to indicate unit
* Really use project comment style
* Rename bcache.go to bcache_linux.go
* Keep collector namespace clean
Rename:
- metric -> bcacheMetric
- periodStatsToMetrics -> bcachePeriodStatsToMetric
* Shorten slice initialization
* Change label names to backing_device, cache_device
* Remove five minute metrics (keep only total)
* Include units in additional metric names
* Enable bcache collector by default
* Provide metrics in seconds, not nanoseconds
* remove metrics with label "all"
* Add fixtures, update end-to-end for bcache collector
* Move fixtures/sys into tar.gz
This changeset moves the collector/fixtures/sys directory into
collector/fixtures/sys.tar.gz and tweaks the Makefile to unpack the
tarball before tests are run.
The reason for this change is that Windows does not allow colons in a
path (colons are present in some of the bcache fixture files), nor can
it (out of the box) deal with pathnames longer than 260 characters
(which we would be increasingly likely to hit if we tried to replace
colons with longer codes that are guaranteed not the turn up in regular
file names).
* Add ttar: plain text archive, replacement for tar
This changeset adds ttar, a plain text replacement for tar, and uses it
for the sysfs fixture archive. The syntax is loosely based on tar(1).
Using a plain text archive makes it possible to review changes without
downloading and extracting the archive. Also, when working on the repo,
git diff and git log become useful again, allowing a committer to verify
and track changes over time.
The code is written in bash, because bash is available out of the box on
all major flavors of Linux and on macOS. The feature set used is
restricted to bash version 3.2 because that is what Apple is still
shipping.
The programm also works on Windows if bash is installed. Obviously, it
does not solve the Windows limitations (path length limited to 260
characters, no symbolic links) that prompted the move to an archive
format in the first place.
|
| |
|
|\
| |
| | |
Download promu and staticcheck every time by default
|
| |
| |
| |
| |
| |
| |
| |
| | |
If this is not desired, copy/symlink these binaries to a different path and
set the respective environment variables. For example:
ln -s "$(GOPATH)/bin/{promu,staticcheck}" /usr/local/bin/
PROMU=/usr/local/bin/promu STATICCHECK=/usr/local/bin/staticcheck make
|
|/
|
| |
Go 1.8 do not require env GOPATH to be set and make will fail if it isn't set.
|
|
|
|
|
| |
This will execute these targets every single time, even if they already
exist on disk.
|
| |
|
|
|
|
|
| |
The End-to-end tests as they are now, are very dependent on running on Linux.
This makes the Makefile more OS agnostic regarding end to end tests.
|
|
|
|
|
| |
If GOPATH includes multiple paths, running `make promu` would fail.
This fixes it by always using the first path.
|
|
|
|
| |
This allows the user to override how/where promu and/or go is invoked.
|
| |
|
|
|
|
| |
building tool
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This release adds the IPVS collector and removes the deprecated
attributes collector.
|