aboutsummaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAge
* Fix and simplify checkmetrics make target (#1731)Tobias Schmidt2020-06-02
| | | | | | | | 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>
* Added s390x support for docker image (#1539)vitt-bagal2020-01-27
| | | Signed-off-by: Vitthal Bagal <vitthalb@us.ibm.com>
* Add fixture update helper (#1551)Ben Kochie2019-11-23
| | | | | | | * 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>
* Docker images for ARM32v7, ARM64v8 and ppc64le (#1207)Johannes Würbach2019-04-15
| | | | | Build and publish ARM32v7, ARM64v8 and ppc64le docker images. Signed-off-by: Johannes Würbach <johannes.wuerbach@googlemail.com>
* Update Makefile.common (#1288)Simon Pasquier2019-03-25
| | | Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* Fixed capitalization of linux in Makefile (#1252)James Hartig2019-02-04
| | | Signed-off-by: James Hartig <james@getadmiral.com>
* cleanup makefile (#1232)Paul Gier2019-01-23
| | | | | | The recent updates to Makefile.common make some of the stuff in Makefile unnecessary. Signed-off-by: Paul Gier <pgier@redhat.com>
* Do not use .PHONY for $(PROMTOOL) (#1216)Mateusz Piotrowski2019-01-10
| | | | | | 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 (#1178)Ben Kochie2018-11-30
| | | | | | | | | | | | | | | | | | * 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>
* Makefile: add target for checking Prometheus rules (#1126)Kazumasa Kohtaka2018-10-30
| | | Signed-off-by: Kazumasa Kohtaka <kkohtaka@gmail.com>
* Fix promu config (#1119)v0.17.0-rc.0Ben Kochie2018-10-20
| | | | | | Rename promu no-cgo config to default promu name to avoid crossbuild problems. Signed-off-by: Ben Kochie <superq@gmail.com>
* Update build (#1081)Ben Kochie2018-09-25
| | | | | | | | | | * 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 docker build (#1016)Ben Kochie2018-07-23
| | | | | | Fix override of make docker target to include new `DOCKER_REPO` variable pattern. Signed-off-by: Ben Kochie <superq@gmail.com>
* Update build (#1010)Ben Kochie2018-07-23
| | | | | | | * Update from upstream `Makefile.common`. * Update CircleCI with simplifed upstream templating. * Cleanup `Makefile`. Signed-off-by: Ben Kochie <superq@gmail.com>
* Add Makefile.common (#940)Ivan Voronchihin2018-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* A couple of ARM64-related fixes (#934)Alexey Kopytov2018-05-14
| | | | | | | | | | * 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>
* Merge pull request #894 from prometheus/superq/ttar_cleanupBen Kochie2018-04-14
|\ | | | | Cleanup sys fixtures before unpacking
| * Cleanup sys fixtures before unpackingBen Kochie2018-04-11
| | | | | | | | | | | | | | 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>
* | Fix code style check in "all" make targetTobias Schmidt2018-04-10
|/ | | | | | | | 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>
* Remove -race test flag to build on OpenBSD (#883)Zach Leslie2018-04-06
| | | | | | 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>
* Convert circleci config to 2.0. (#844)Ben Kochie2018-03-08
|
* On SunOS/ solaris/ SmartOS the go test flag of -rance isn't supported. (#762)Dan Fredell2018-02-28
|
* Remove deprecated prometheus.InstrumentHandlerFunc (#831)Ben Kochie2018-02-19
| | | | Update Prometheus client golang use to use `promhttp.Handler()` instead of `prometheus.InstrumentHandlerFunc()`.
* Makefile: add checkmetrics target, use in CI (#797)Matt Layher2018-02-13
|
* Add `collect[]` parameter (#699)Siavash Safi2017-10-14
| | | | | | | | | | | | | | | | | | * 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
* Only enable race detector when GOHOSTARCH is amd64.Derek Marcotte2017-10-03
| | | | | | | | 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.
* Only cross-test 32bit on Linux (#658)Matthias Rampke2017-08-24
| | | | This doesn't work on at least FreeBSD and Darwin. It does work on Linux, only try it there.
* Automatically cross-test 32bit based on GOARCHMatthias Rampke2017-08-21
| | | | | | | | | | | | | 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 (#638)Hemant Kumar2017-08-17
| | | | | | | | * Add dockerfile for ppc64le and related changes * Pass the fill file as DOCKEFILE * Add the dockerfile name to build msg
* [test] Call cmd.Start and cmd.Wait separately to avoid triggering race ↵Jerome Froelich2017-07-08
| | | | | | | | detector (#616) * [test] Call cmd.Start and cmd.Wait separately to avoid triggering race detector * [test] Enable race detector for tests
* Add bcache collector (#597)ideaship2017-07-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* test docker image before pushingGiancarlo Rubio2017-04-12
|
* Merge pull request #531 from prometheus/grobie/update-promu-by-defaultJohannes 'fish' Ziemke2017-03-23
|\ | | | | Download promu and staticcheck every time by default
| * Download promu and staticcheck every time by defaultTobias Schmidt2017-03-22
| | | | | | | | | | | | | | | | 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
* | Use go env to fetch GOPATH to support Go 1.8Pontus Leitzler2017-03-22
|/ | | Go 1.8 do not require env GOPATH to be set and make will fail if it isn't set.
* Don't declare real dependencies as phony targetsTobias Schmidt2017-03-04
| | | | | This will execute these targets every single time, even if they already exist on disk.
* Run staticcheck from Makefile, remove duplicate end-to-end test call in CIMatt Layher2017-03-02
|
* disable end-to-end tests for non Linux OSes in MakefileBirger Schmidt2017-02-28
| | | | | 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.
* Fix Makefile by using first element of GOPATHJohannes 'fish' Ziemke2016-12-29
| | | | | If GOPATH includes multiple paths, running `make promu` would fail. This fixes it by always using the first path.
* Allow overrides for GO and PROMUChristian Svensson2016-12-22
| | | | This allows the user to override how/where promu and/or go is invoked.
* Add end-to-end tests as default Makefile targetJohannes 'fish' Ziemke2016-12-21
|
* New release process using docker, circleci and a centralizedSteve Durrheimer2016-04-28
| | | | building tool
* And one more, because I don't know how to version.0.12.0rc3Matthias Rampke2016-02-04
|
* Release 0.12.0rc2.Matthias Rampke2016-02-04
|
* Add build_info metric similar to the one of Prometheus itselfDaniel Bechler2016-01-06
|
* Release 0.12.0rc10.12.0rc1Tobias Schmidt2015-10-06
|
* Changed Go version to 1.5.1Eric Ripa2015-08-29
|
* Cut version 0.11.0Ian Hansen2015-07-27
|
* Cut version 0.10.0.Julius Volz2015-06-10
|
* Cut release 0.9.0Matthias Rampke2015-05-24
| | | | | This release adds the IPVS collector and removes the deprecated attributes collector.