Commit graph

403 commits

Author SHA1 Message Date
Solly Ross
ab6ada9081
Merge pull request #158 from linux-on-ibm-z/cross-compile
Edited Makefile to add cross build support for s390x.
2019-01-31 13:23:24 -08:00
root
a02ca0fbad Edited Makefile to add cross build support for s390x. As golang:1.10 has multi-arch support added for s390x. 2019-01-08 16:02:17 +05:30
Frederic Branczyk
dce283def1
Merge pull request #148 from brancz/empty-err
Fix empty pod or node list resulting in an error
2018-12-13 16:03:49 -08:00
Frederic Branczyk
7624952870
resourceprovider: Add comments on possible nil results 2018-12-13 15:50:02 -08:00
Frederic Branczyk
e9ef0bb4d0
Fix empty pod or node list resulting in an error 2018-12-11 10:21:21 -08:00
Frederic Branczyk
1e5a868378
Merge pull request #143 from s-urbaniak/token
cmd/adapter: add prometheus bearer token configuration
2018-12-05 17:13:47 +01:00
Sergiusz Urbaniak
326bf3c276 cmd/adapter: add prometheus bearer token configuration
Often prometheus is gated by some proxy requiring an auth bearer
token. Currently there is no possibility to configure one except for
providing a full-fledged kubeconfig.

This fixes it by adding a new flag pointing to an optional file
containing the auth bearer for prometheus communication.
2018-12-05 11:45:48 +01:00
Solly Ross
99104cba2a
Merge pull request #136 from nilebox/start-flag
Add a separate flag for 'start' parameter
2018-12-04 12:23:26 -08:00
Solly Ross
b3dfbe1b29
Merge pull request #128 from tmatias/typos
fix typos
2018-12-04 11:31:59 -08:00
Frederic Branczyk
d3bbe8247a
Merge pull request #141 from metalmatze/prom-ca-file
Support custom ca certificate to talk to Prometheus
2018-12-03 20:50:35 +01:00
Matthias Loibl
9fb46c3c55
Create a NewCertPool for custom CA certificate 2018-12-03 19:47:37 +01:00
Matthias Loibl
4a16ae6d9a
Log info when successfully loading certificates 2018-12-03 17:57:19 +01:00
Matthias Loibl
bef034e699
Improve error handling in adapter.go 2018-12-03 17:18:53 +01:00
Nail Islamov
88c0ad0b6a
Add validation 2018-11-28 12:20:09 +11:00
Nail Islamov
3f1b120eda
Add a flag metrics-start-duration 2018-11-28 12:13:07 +11:00
Matthias Loibl
5d837a29dd
Add --prometheus-ca-file flag for specific ca 2018-11-23 17:25:22 +01:00
Tiago Matias
2e82759ca9 fix typos
revert from less ideal wording

more typos
2018-11-20 10:09:02 -02:00
Solly Ross
3bd75f5c3a
Merge pull request #127 from tmatias/typo
fix typo
2018-11-12 14:42:15 -08:00
Tiago Matias
405a55521f fix typo 2018-11-12 15:50:11 -02:00
Frederic Branczyk
5a461c3fcd
Merge pull request #124 from metalmatze/readme-updates
Update README to container resource metrics API
2018-11-07 15:59:56 +01:00
Matthias Loibl
d12e5f0684
Improve sentence mentioning metrics server in README.md 2018-11-07 15:18:08 +01:00
Matthias Loibl
7360c51c0e
Update README to container resource metrics API 2018-11-06 15:57:33 +01:00
Frederic Branczyk
919c8bcbe9
Merge pull request #120 from tmatias/patch-1
fix typo
2018-10-26 16:13:16 +02:00
Tiago Matias
94b0063c52
fix typo 2018-10-19 16:31:07 -03:00
Solly Ross
7a421bb91e
Merge pull request #106 from DirectXMan12/feature/resource-metrics
Resource Metrics API Support
2018-10-04 07:34:08 -07:00
Solly Ross
083300bf32
Merge pull request #115 from richardbrks/fix-docs
Fix docs
2018-10-03 08:38:13 -07:00
Solly Ross
5f52b29d47 Disable the custom metrics API with no rules
This disables the custom metrics API when no custom metrics rules are
given (the resource metrics API acts equivalently).  This allows a given
adapter to serve only one of the APIs, if desired.
2018-10-03 11:05:43 -04:00
Solly Ross
6c8f44623e Add tests for the resource metrics provider
This adds basic tests for the resource metrics provider, and fixes up
the default config slightly.
2018-10-03 11:05:43 -04:00
Solly Ross
49287fecc9 Extract fake Prometheus client impl
This extracts the fake prometheus client for use across different tests.
2018-10-03 11:05:43 -04:00
Solly Ross
cc08a1fb41 Switch to ginkgo/gomega for tests
This switches over to ginkgo/gomega for tests, which makes writing
certain tests easier/more fluent in the future.
2018-10-03 11:05:43 -04:00
Solly Ross
c5801455ec Introduce support for the resource metrics API
This introduces support for the resource metrics in the adapter.
The individual queries and window sizes are fully customizable via a new
config section.  This uses just the generic machinery from
metrics-server to serve the API.
2018-10-03 11:05:43 -04:00
Solly Ross
74c0c53e4f Refactor metrics query building to interface
This moves the metrics query building to a separate interface in the
naming package so that it can be used across providers.
2018-10-03 11:05:43 -04:00
Solly Ross
7dd9e94aea Extract label-resource logic to separate package
This extracts the label-to-resource conversion to a separte "naming" package for
use across different providers.

Early versions of the commit were done by antoinne85 in #79.
2018-10-02 16:57:55 -04:00
Solly Ross
d02384477a Upgrade boilerplate to latest
The latest boilerplate comes with a lot of simplifications and helpers
that let us reduce the amount of code written.
2018-10-02 16:57:55 -04:00
richardbrks
94379a1780 delete repeated phrase 2018-09-28 12:53:39 -04:00
richardbrks
8d12f4f5fd correct capitalization 2018-09-28 12:40:07 -04:00
richardbrks
b381aef37b correct file path 2018-09-28 07:54:52 -04:00
richardbrks
93974115ad remove repeated word 2018-09-28 07:52:48 -04:00
Solly Ross
6b2c04dd61
Merge pull request #110 from DirectXMan12/deps/1.11-EKS-fix
Update deps to Kube 1.11.3
2018-09-27 15:53:58 -04:00
Solly Ross
c916572aca Update deps to Kube 1.11.3
This updates the dependencies to Kube 1.11.3 to pull in a fix allowing
requestheader auth to be used without normal client auth (which makes
things work on clusters that don't enable client auth normally, like
EKS).
2018-09-24 14:47:22 -04:00
Solly Ross
7f1b40728b
Merge pull request #98 from tomkerkhove/helm-install-docs
Add docs on helm installation
2018-09-17 05:21:14 -04:00
Tom Kerkhove
87fad2ab0a
Merge branch 'master' into helm-install-docs 2018-09-15 09:47:25 +02:00
Solly Ross
262493780f Clarify multi-metric queries
The example on the multi-metric query was a bit misleading, so this
clarifies it a bit so it looks closer to a real-world example.
2018-08-28 13:45:55 -04:00
Solly Ross
b755cf7f93
Merge pull request #95 from DirectXMan12/docs/common-issues
[docs] Config Walkthroughs and FAQs
2018-08-24 11:21:11 -04:00
Solly Ross
a1f4aab6d4 Restructure walkthrough
This restructures the walkthrough to focus on the goal of scaling an
application from the start.  We start out with an application and an
autoscaler, and then walk through how we can make the autoscaler
actually able to function.
2018-08-24 11:16:49 -04:00
Solly Ross
5118c9ee1e Add some FAQs to the README
This adds some FAQs to the README containing information about certs,
labelling, configuration, quantities, and multiple metrics.
2018-08-24 11:16:49 -04:00
Solly Ross
77614d151a Add a note on resource quanities to walkthrough
Quantities continue to confuse people, so adding concrete examples
should help.
2018-08-24 11:16:49 -04:00
Solly Ross
9f08038f07 Add a config walkthrough and update the readme
A helful community member rightly pointed out that configuring the
adapter was a bit confusing, and a step-by-step example would be useful.
This adds such an example, and links to it from relevant places.
2018-08-24 11:16:49 -04:00
Solly Ross
1f6df8eadf
Merge pull request #103 from DirectXMan12/deploy/extraneous-arg
Remove extraneous `/adapter` from deployment args
2018-08-20 18:59:51 -04:00
Solly Ross
f909290ab0
Merge pull request #102 from DirectXMan12/refactor/reduce-logspam
Reduce metric namer label-GVR logspam
2018-08-20 17:13:49 -04:00