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
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
Solly Ross
cfba614544
Remove extraneous /adapter from deployment args
...
There was an extraneous `/adapter` in the deployment args that was
causing people issues. This removes it.
2018-08-20 17:12:27 -04:00
Solly Ross
9d7157f7cc
Reduce metric namer label-GVR logspam
...
It's fairly common to have a label pattern that matches lots of
irrelevant labels, so this makes the "error" about being unable to
normalize/resolve a label to a GVR a V(9) info log, instead of an error
log.
2018-08-20 16:53:51 -04:00
Tom Kerkhove
e9a3e436c2
Optimize based on feedback
2018-08-15 19:55:49 +02:00
Tom Kerkhove
6c510c8f1b
Add docs on helm installation
2018-08-15 17:21:37 +02:00
Solly Ross
58857cfd37
Merge pull request #97 from tanner-bruce/strictly-unmarshal
...
use strict unmarshalling to ensure correct configuration
2018-08-13 08:53:16 -07:00
Tanner Bruce
1ec7809eaf
use strict unmarshalling to ensure correct configuration
2018-08-09 16:30:06 -05:00
Solly Ross
c912ebed77
Fix naming typo in the config docs
...
The config docs had a find/replace error in the naming section, leading
to an erroneus `as` clause. This fixes that.
2018-08-07 13:45:16 -04:00
Solly Ross
1667f1082b
Don't rebuild vendor in Travis
...
Since we check vendor in, there's no need to rebuild the vendor
directory.
2018-08-01 11:17:13 -04:00
Solly Ross
df3d247308
Merge pull request #94 from zioproto/tls-secrets-docs
...
Use type kubernetes.io/tls for adapter TLS certificates
2018-07-24 14:49:05 -04:00
Saverio Proto
b5ee64bf38
Improve docs about TLS secret
2018-07-24 13:15:24 +02:00
Solly Ross
981e73562d
Merge pull request #93 from aabed/patch-1
...
sets the right path for config file
2018-07-23 13:56:05 -04:00
Aabed
beb6bb9663
sets the right path for config file
...
The configmap is mounted under /etc/adapter/config.yaml instead of /default/adapter-config.yaml
2018-07-22 10:39:34 +02:00
Solly Ross
3fc2dbdf71
Explicitly build on tags in Travis
...
Setting `branch: master` causes tag builds to be skipped, so we have to
explicitly also build on tags.
2018-07-13 20:07:23 -04:00
Solly Ross
a293b2bf94
Check in the vendor directory
...
Travis seems to be having issues pulling deps, so we'll have to check in
the vendor directory and prevent the makefile from trying to regenerate
it normally.
2018-07-13 17:32:49 -04:00
Solly Ross
98e16bc315
Merge pull request #87 from natefox/natefox-docs-update
...
Fixing broken links in walkthrough
2018-07-13 17:28:34 -04:00
Solly Ross
ec335c0777
Fix cross-compile typo in Makefile
...
The makefile target for the output directory was hardcoded to $(ARCH),
independent of the actual target input in the makefile. This fixes
that.
2018-07-12 15:05:43 -04:00
Solly Ross
0d220eafef
Clarify wording a bit on the relist interval
...
The wording on the relist interval confused a couple of people, so this
should clarify it a bit.
2018-07-03 16:49:55 -04:00
Solly Ross
8e91086e1e
dep ensure verbosely
...
This makes the Makefile run `dep ensure` verbosely for easier debugging on
Travis.
2018-07-03 11:36:35 -04:00
Nate Fox
16b031e22f
Missed a link
...
Updating 1 more link
2018-07-02 14:20:33 -07:00
Nate Fox
75e690b430
Fixing broken links
...
Updating links to root so they work whilst reading on Github
2018-07-02 14:18:43 -07:00
Solly Ross
7e49e0733f
Merge pull request #84 from DirectXMan12/docs/fix-walkthrough
...
Fix up the walkthrough
2018-06-30 22:34:10 -04:00
Solly Ross
fb8a0c50b3
Fix up the walkthrough
...
This fixes up a couple of typos in the walkthrough and updates it to
mention config and the Prometheus Operator.
It probably eventually needs to be further modified with more specific
instructions about the Prometheus Operator.
2018-06-30 22:22:05 -04:00
Solly Ross
0fa468ac87
Merge pull request #82 from DirectXMan12/deploy/tmp-emptydir
...
Explicitly mount /tmp as an emptyDir
2018-06-30 21:33:38 -04:00
Solly Ross
414af01f58
Merge pull request #83 from DirectXMan12/docs/relist-interval-advice
...
[docs] Advice on relist interval
2018-06-30 21:32:36 -04:00
Solly Ross
9951568183
[docs] Advice on relist interval
...
This documents that the relist interval must be at least the Prometheus
scrape interval, lest metrics fade in and out.
2018-06-30 21:28:55 -04:00
Solly Ross
eb6949c2a4
Explicitly mount /tmp as an emptyDir
...
If using an image build with `FROM scratch` (as built by the
build-local-images make target), you need to explictly mount
/tmp as an emptyDir.
2018-06-30 21:21:44 -04:00
Solly Ross
7b606a79fc
Merge pull request #46 from DirectXMan12/feature/advanced-config
...
[WIP] Advanced Configuration
2018-06-27 17:04:27 -04:00
Solly Ross
be018f76e3
Update dependencies to Kubernetes 1.11
...
This updates our dependencies to the Kubernetes 1.11 versions.
In the future, this will also allow us to support the external
metrics API.
2018-06-27 16:57:50 -04:00
Solly Ross
1e5cd68533
Makefile with actual deps
...
This makes the makefile's build target have actual dependencies, so that
it only rebuilds any given adapter if that adapter's actual go files
have changed (yes, this is mostly redundant with Go 1.10, but it makes
working on read-only filesystems a bit nicer).
2018-06-27 16:56:20 -04:00
Joel Speed
6089fa8528
Use channel for series aggregation
...
This fixes asynchronous read/write issues to when performing series
discovery by pushing series results onto a channel, instead of trying to
write them directly to a map.
2018-06-27 16:56:20 -04:00
Solly Ross
32e4c5b1c7
Advanced Config Docs Updates
...
This updates the documentation and README to have information on the
configuration file format.
2018-06-27 16:56:20 -04:00
Solly Ross
40a9ee2474
Add a helper to generate legacy configuration
...
This moves the DefaultConfig method out into a helper to generate legacy
configuration. Passing in a config file is now required.
2018-06-27 16:56:20 -04:00
Solly Ross
ad1837e9b5
Switch to dep for dependency management
...
I find it to be a bit faster in some cases, and easier to work with.
2018-06-22 16:06:12 -04:00
Solly Ross
2984604be8
Advanced Configuration
...
This commit introduces advanced configuration. The rate-interval and
label-prefix flags are removed, and replaced by a configuration file
that allows you to specify series queries and the rules for transforming
those into metrics queries and API resources.
2018-06-22 15:37:12 -04:00
Solly Ross
c22681a91d
Merge pull request #67 from zioproto/patch-1
...
Fix creating the resource-lister clusterrole
2018-05-25 14:23:16 -04:00