mikkeloscar
f62281cdaa
Update index.yaml
...
Signed-off-by: mikkeloscar <mikkeloscar@users.noreply.github.com >
2024-06-13 07:36:25 +00:00
mikkeloscar
09df04b171
Update index.yaml
...
Signed-off-by: mikkeloscar <mikkeloscar@users.noreply.github.com >
2024-06-12 05:20:00 +00:00
mikkeloscar
1eebffcef1
Update index.yaml
...
Signed-off-by: mikkeloscar <mikkeloscar@users.noreply.github.com >
2023-05-12 21:24:00 +00:00
Prune Sebastien THOMAS
33bcea69f3
added chart release workflow ( #433 )
...
Signed-off-by: Sebastien THOMAS <sebastien.thomas@wunderkind.co >
2022-06-08 22:14:02 +02:00
Mikkel Oscar Lyderik Larsen
706c258e9a
Setup Charts branch
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2022-05-17 18:59:54 +02:00
owengo
4b5b96084b
adding nodeSelector + tolerations + affinity + priorityClassName + podAnnotations to helm chart ( #421 )
...
Signed-off-by: Olivier Schiavo <olivier.schiavo@wengo.com >
Co-authored-by: Olivier Schiavo <olivier.schiavo@wengo.com >
2022-05-02 16:02:24 +02:00
Mikkel Oscar Lyderik Larsen
18f4c82f07
Update dependencies and default to Go 1.18 ( #419 )
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2022-05-02 15:57:34 +02:00
Mikkel Oscar Lyderik Larsen
10dc42b9e9
Merge pull request #401 from zalando-incubator/update-deps-02-14
...
Update dependencies
2022-02-14 15:05:19 +01:00
Mikkel Oscar Lyderik Larsen
20db592a62
Use cdp-runtime for build ( #398 )
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2022-02-14 14:41:57 +01:00
Mikkel Oscar Lyderik Larsen
d0a3ea1934
Update dependencies
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2022-02-14 14:36:06 +01:00
Mikkel Oscar Lyderik Larsen
837e7b9c5d
Update deps 2022 02 ( #391 )
...
* Update example
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
* Update dependencies 2022-02
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2022-02-01 18:13:48 +01:00
Katyanna Moura
9d8359b580
Merge pull request #380 from zalando-incubator/fix-metrics-map
...
Fix panic when trying to add key to nil map
2022-01-12 11:36:53 +01:00
Katyanna Moura
71a8e99d1f
Fix panic when trying to add key to nil map
...
Bug was introduced trying to solved the following issue:
> When scenarios where two HPAs reference the same object but have
different metric calculation (e.g. ingresses with different weights),
kube-metrics-adapter calculates the two metrics but always overrides
one of the metrics when saving it to the store.
This commit fixes a issue where without the added `return` the system
was continuing in an invalid states where `labels2metric` wasn't
properly initialized, causing the system to panic.
Signed-off-by: Katyanna Moura <amelie.kn@gmail.com >
2022-01-12 11:29:38 +01:00
Katyanna Moura
4d4c70c553
Fix test filename to match related file
...
Having the test filename prefix exactly as the tested file name helps systems
to identify the correlation.
Signed-off-by: Katyanna Moura <amelie.kn@gmail.com >
2022-01-12 11:29:38 +01:00
Katyanna Moura
2ccd6903d9
Merge pull request #376 from zalando-incubator/custommetricsselector
...
Use labels hash in the custom metrics store and metrics store 💅
2021-11-25 10:24:44 +01:00
Jonathan Juares Beber
f58db31f98
Define stronger types for metrics store
...
The metrics store, both the custom and external one, make heavy usage of
maps of strings to strings. This leads to a presumable confusing or at
least hard to read codebase.
This commit tries to increase readability and maintainability of the
metric stores by using custom types. This commit has no effect in
performance or functionality, it's pure aesthetics.
Co-authored-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
Signed-off-by: Katyanna Moura <amelie.kn@gmail.com >
2021-11-24 17:41:03 +01:00
Jonathan Juares Beber
0bf8f5dd0f
Use labels hash in the custom metrics store
...
The current implementation of the metrics store for custom metrics uses
just the object name as key. When scenarios where two HPAs reference the
same object but have different metric calculation (e.g. ingresses with
different weights), kube-metrics-adapter calculates the two metrics but
always overrides one of the metrics when saving it to the store.
This commit implements the use of a labels hash in the custom metrics
store. This way, metrics are identified not just by the referenced
object, but also by its selectors.
Co-authored-by: Katyanna Moura <amelie.kn@gmail.com >
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-11-23 18:11:18 +01:00
Jonathan Juares Beber
e600557636
Merge pull request #375 from zalando-incubator/kube1.21
...
Upgrade Kubernetes and its friends to 1.21
2021-10-28 10:35:11 +02:00
Jonathan Juares Beber
0f06db7cdf
Upgrade Kubernetes and its friends to 1.21
...
This commit upgrades all the Kubernetes dependencies to 1.21.5. It
includes regenerated clients and specs.
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-10-27 20:58:18 +02:00
Jonathan Juares Beber
1c9038b2cc
Merge pull request #374 from zalando-incubator/configurable-buckets
...
Make the number of ramp steps configurable
2021-10-25 10:21:32 +02:00
Jonathan Juares Beber
fd4ead837e
Make the number of ramp steps configurable
...
In #371 we introduced steps to make the scaling up possible even when
the HPA forces a 10% change. The problem is that 10% might not be
sufficient for some specific scaling scenarios.
For example, a an application targeting 12 pods and using a
ScalingSchedule with the value of 10000 to achieve that, will require a
target of 833. With 10 ramp steps the 90% bucket will return a metric of
9000 and the HPA calculates (9000/833) 10.8 pods, rounding to 11 pods.
Once the metric reaches the time to return 100% it will won't be
effective, since the change of the current number of pods (11) and the
desired one (12) is less than 10%.
This commit does not try to tackle this problem completely, since the
10% rule is not fixed, might change among different clusters and is also
dependent on the value given to each ScalingSchedule. Therefore, this
commit makes the number of ramp steps configurable via the
`--scaling-schedule-ramp-steps` config flag, defaulting to 10.
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-10-22 15:35:11 +02:00
Mikkel Oscar Lyderik Larsen
f46f801811
Merge pull request #373 from zalando-incubator/json-path-array
...
Handle more complex array in json path
2021-10-19 10:04:04 +02:00
Mikkel Oscar Lyderik Larsen
4acdf72ef7
Handle more complex array in json path
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-10-14 09:34:15 +02:00
Jonathan Juares Beber
e04cd10bfc
Merge pull request #371 from zalando-incubator/scaling-chunks
...
Use 10 buckets on ScalingSchedule ramp-up/down
2021-10-01 10:39:57 +02:00
Jonathan Juares Beber
8fe330941a
Use 10 buckets on ScalingSchedule ramp-up/down
...
The HPA has a feature to do not scale up and down when the change in the
metric is less than 10%:
> We'll skip scaling if the ratio is sufficiently close to 1.0 (within a
> globally-configurable tolerance, from the
> `--horizontal-pod-autoscaler-tolerance` flag, which defaults to 0.1.
It could lead to pods scaling up to 10% less than the target for
ScalingSchedules and then not scaling to the actual value if the metric
calculated before was less than 10% of the target.
This commit uses 10 fixed buckets for scaling, this way we know the
metric returned during a scaling event is at least 10% more than a
previous one calculated during the period of ramp up. The same is valid
for the scaling down during a ramp-down
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-09-30 19:01:59 +02:00
aermakov-zalando
0730c6ef1e
Merge pull request #370 from zalando-incubator/schedule-scaling-window
...
Scheduled scaling: scale up/down slowly
2021-09-24 15:47:44 +02:00
Alexey Ermakov
c5411c74b7
Scheduled scaling: add an optional scaling window
...
Signed-off-by: Alexey Ermakov <alexey.ermakov@zalando.de >
2021-09-24 15:33:49 +02:00
aermakov-zalando
4ba6b66441
Merge pull request #369 from zalando-incubator/fix-list
...
Fix the type for ClusterScalingScheduleList
2021-09-17 11:37:47 +02:00
Alexey Ermakov
0dbe769e1b
Fix the type for ClusterScalingScheduleList
...
Signed-off-by: Alexey Ermakov <alexey.ermakov@zalando.de >
2021-09-17 11:29:52 +02:00
Mikkel Oscar Lyderik Larsen
582a78d4ec
Merge pull request #350 from zalando-incubator/backend-tag
...
Use labels for specifying Ingress/RouteGroup backend
2021-08-20 11:31:00 +02:00
Mikkel Oscar Lyderik Larsen
481df883e5
Merge pull request #349 from zalando-incubator/rg-support
...
Add support for scaling based on RouteGroup resource
2021-08-20 11:30:10 +02:00
Mikkel Oscar Lyderik Larsen
318d47e05e
Add deprecation comment
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-08-20 09:33:18 +02:00
Mikkel Oscar Lyderik Larsen
190f0db092
Use labels for specifying Ingress/RouteGroup backend
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-08-20 09:33:17 +02:00
Mikkel Oscar Lyderik Larsen
c618494177
return early if backendName is empty
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-08-20 09:32:48 +02:00
Mikkel Oscar Lyderik Larsen
a08860d06c
rename function
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-08-20 09:22:06 +02:00
Mikkel Oscar Lyderik Larsen
6b0afe5180
Add support for scaling based on RouteGroup resource
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-08-19 18:28:58 +02:00
Mikkel Oscar Lyderik Larsen
9722e38f62
Re-generate for go 1.17
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-08-19 18:28:57 +02:00
Mikkel Oscar Lyderik Larsen
35aa03c771
Merge pull request #368 from zalando-incubator/dependabot/go_modules/github.com/aws/aws-sdk-go-1.40.22
...
Bump github.com/aws/aws-sdk-go from 1.40.12 to 1.40.22
2021-08-16 11:51:34 +02:00
dependabot[bot]
34c833e04a
Bump github.com/aws/aws-sdk-go from 1.40.12 to 1.40.22
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.40.12 to 1.40.22.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.40.12...v1.40.22 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-16 09:14:16 +00:00
Jonathan Juares Beber
c93c1dd7bb
Merge pull request #343 from zalando-incubator/dependabot/go_modules/github.com/prometheus/client_golang-1.11.0
...
Bump github.com/prometheus/client_golang from 1.10.0 to 1.11.0
2021-08-16 11:04:47 +02:00
dependabot[bot]
59d39bc51c
Bump github.com/prometheus/client_golang from 1.10.0 to 1.11.0
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-11 08:28:17 +00:00
Jonathan Juares Beber
4066e450e5
Merge pull request #360 from zalando-incubator/k8s-update
...
Update k8s dependencies
2021-08-11 10:18:31 +02:00
Jonathan Juares Beber
8415373f3d
Update dependencies
...
this commit updates the k8s dependencies from v0.20.5 to v0.20.9. It
also bundles other dependencies updates.
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-08-11 08:26:00 +02:00
Jonathan Juares Beber
d1969a3020
Merge pull request #348 from zalando-incubator/pitr-zmon
...
fixes for ZMON client
2021-07-26 15:57:11 +02:00
Jonathan Juares Beber
582c94255f
Add test for ZMON Key
...
This commit add tests to the ZMON package when handling the key used on
the metrics query.
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-07-26 15:41:15 +02:00
☃ pitr
c626f414db
remove deprecated zmon aggregators in README
...
Signed-off-by: ☃ pitr <peter.vernigorov@zalando.de >
2021-07-26 11:14:27 +02:00
☃ pitr
1d4beab7a4
fixes for ZMON client
...
Changes:
- only add group_by "key" if key is provided
- remove deprecated aggregators "dev" and "first"
- add X-Attribution header for query attribution
Signed-off-by: ☃ pitr <peter.vernigorov@zalando.de >
2021-07-24 21:45:02 +02:00
Jonathan Juares Beber
eefd5ef512
Merge pull request #346 from zalando-incubator/dependabot/go_modules/github.com/aws/aws-sdk-go-1.39.2
...
Bump github.com/aws/aws-sdk-go from 1.38.70 to 1.39.2
2021-07-08 16:20:03 +02:00
dependabot[bot]
599b3bf805
Bump github.com/aws/aws-sdk-go from 1.38.70 to 1.39.2
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.70 to 1.39.2.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.70...v1.39.2 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-08 13:00:42 +00:00
Mikkel Oscar Lyderik Larsen
ecf21df9c0
Merge pull request #338 from zalando-incubator/dependabot/go_modules/github.com/aws/aws-sdk-go-1.38.70
...
Bump github.com/aws/aws-sdk-go from 1.38.47 to 1.38.70
2021-07-08 14:52:50 +02:00
dependabot[bot]
ecd296e644
Bump github.com/aws/aws-sdk-go from 1.38.47 to 1.38.70
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.47 to 1.38.70.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.47...v1.38.70 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-01 07:19:53 +00:00
Jonathan Juares Beber
446b7f01ea
Merge pull request #334 from zalando-incubator/nil-fields
...
Switch Schedule optional fields to pointers
2021-06-30 17:17:15 +02:00
Jonathan Juares Beber
0ad7296d56
Switch Schedule optional fields to pointers
...
The `Date` and `Period` fields inside the `Schedule` type of the
`[Cluster]ScalingSchedule` CRDs are optional, but in its current
configuration the generated clients can't update or create these
resources since the empty fields do not pass the validation.
This commit updates the `[Cluster]ScalingSchedule.Schedule[*]` `Date`
and `Period` field to pointers, this way a null value is not validated
and the clients are able to update and create resources. It also updates
the collector code and tests to reflect the change.
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-06-30 17:09:48 +02:00
Jonathan Juares Beber
9da155554b
Merge pull request #332 from zalando-incubator/drop-identifier
...
Remove HTTP collector check on identifier label
2021-06-01 13:53:21 +02:00
Jonathan Juares Beber
d7f9664d52
Remove HTTP collector check on identifier label
...
This commit removes the logic that checks for an identifier label in the
http collector config. It also removes the documentation on the README
that mentions that the metric has to be in an old format, removed in
the #219 .
Fixes #331
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-06-01 12:33:32 +02:00
Jonathan Juares Beber
85f6dda229
Merge pull request #328 from zalando-incubator/fix/typo
...
fix typo Saturday
2021-05-26 17:02:01 +02:00
Sandor Szücs
64a6b85c73
fix typo Saturday
...
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de >
2021-05-26 12:03:07 +02:00
Jonathan Juares Beber
f41af0d82b
Merge pull request #329 from zalando-incubator/dependabot/go_modules/github.com/aws/aws-sdk-go-1.38.47
...
Bump github.com/aws/aws-sdk-go from 1.38.46 to 1.38.47
2021-05-26 11:52:08 +02:00
dependabot[bot]
194bede7a3
Bump github.com/aws/aws-sdk-go from 1.38.46 to 1.38.47
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.46 to 1.38.47.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.46...v1.38.47 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-26 08:51:08 +00:00
dependabot[bot]
c4f5efb6a7
Bump github.com/prometheus/common from 0.23.0 to 0.25.0 ( #323 )
...
Bumps [github.com/prometheus/common](https://github.com/prometheus/common ) from 0.23.0 to 0.25.0.
- [Release notes](https://github.com/prometheus/common/releases )
- [Commits](https://github.com/prometheus/common/compare/v0.23.0...v0.25.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 10:44:06 +02:00
dependabot[bot]
51e9378ee6
Bump github.com/aws/aws-sdk-go from 1.38.44 to 1.38.46 ( #327 )
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.44 to 1.38.46.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.44...v1.38.46 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 10:43:43 +02:00
Jonathan Juares Beber
ce27ef1798
Merge pull request #324 from zalando-incubator/dependabot/go_modules/github.com/aws/aws-sdk-go-1.38.44
...
Bump github.com/aws/aws-sdk-go from 1.38.30 to 1.38.44
2021-05-25 19:18:14 +02:00
Jonathan Juares Beber
a73ef467cd
Merge pull request #325 from zalando-incubator/crd-scope-fix
...
Remove ClusterScalingSchedule clients namespace
2021-05-25 17:30:57 +02:00
Jonathan Juares Beber
e6a04531fb
Merge pull request #326 from zalando-incubator/ignore-container-resource-metrics
...
Ignore ContainerResource metrics
2021-05-25 17:03:27 +02:00
Mikkel Oscar Lyderik Larsen
7289e6f8e2
Ignore ContainerResource metrics
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-05-25 16:45:35 +02:00
Jonathan Juares Beber
60b1dc097a
Remove ClusterScalingSchedule clients namespace
...
During #284 we set the ClusterScalingSchedule scope as `Cluster` but
just for kubebuilder. This flag has no effect in the generated clients.
It means the generated clients expect a namespace argument when handling
ClusterScalingSchedule resources. It works fine to list all of the
resources but makes it impossible to request a specific resource
defining its name.
This commit sets the `+genclient:nonNamespaced` flag for the CRD and
adds the regenerated clients. It does not affect any of the usage of the
clients in this codebase so far.
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-05-21 17:16:57 +02:00
dependabot[bot]
6b46cc2599
Bump github.com/aws/aws-sdk-go from 1.38.30 to 1.38.44
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.30 to 1.38.44.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.30...v1.38.44 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-21 14:55:46 +00:00
Jonathan Juares Beber
6f9aba8db8
Merge pull request #315 from zalando-incubator/time-based-scaling
...
Create ScalingSchedule collector
2021-05-21 16:46:10 +02:00
Jonathan Juares Beber
a382dbfe7b
Create ScalingSchedule collector
...
This commit adds two new collectors to the adapter:
- ClusterScalingScheduleCollector; and
- ScalingScheduleCollector
Also, it introduces the required collectors plugins, initialization
logic in the server startup, documentation and deployment example
(including the helm chart). A new config flag is created,
`-scaling-schedule`, and allows to enable and to disable the collection
of such metrics. It's disabled by default.
This collectors are the required logic to utilise the CRDs introduced in
the #284 pull request. It makes use of the kubernetes go-client
implementations of a [Store][0] and [Reflector][1].
[0]: https://pkg.go.dev/k8s.io/client-go/tools/cache#Store
[1]: https://pkg.go.dev/k8s.io/client-go/tools/cache#Reflector
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-05-21 14:29:11 +02:00
Jonathan Juares Beber
7a68304389
Merge pull request #311 from Miniland1333/patch-2
...
Bump to v0.1.10 for helm
2021-05-12 18:36:34 +02:00
Jonathan Juares Beber
7044e79b08
Merge pull request #312 from adutchak-x/feature/stop-processing-non-runing-pods
...
Feature/stop processing non runing pods
2021-05-06 10:35:17 +02:00
Anatolii Dutchak
e16bacb24e
Changed message text and level
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-05-05 11:22:51 +03:00
Jonathan Juares Beber
726c1e691d
Merge pull request #313 from zalando-incubator/dependabot/go_modules/github.com/prometheus/common-0.23.0
...
Bump github.com/prometheus/common from 0.20.0 to 0.23.0
2021-05-03 11:49:11 +02:00
Jonathan Juares Beber
debc90ca72
Merge pull request #314 from zalando-incubator/dependabot/go_modules/github.com/aws/aws-sdk-go-1.38.30
...
Bump github.com/aws/aws-sdk-go from 1.38.18 to 1.38.30
2021-05-03 11:48:57 +02:00
dependabot[bot]
6343c8ea15
Bump github.com/aws/aws-sdk-go from 1.38.18 to 1.38.30
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.18 to 1.38.30.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.18...v1.38.30 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-01 07:05:41 +00:00
dependabot[bot]
eb0575f11e
Bump github.com/prometheus/common from 0.20.0 to 0.23.0
...
Bumps [github.com/prometheus/common](https://github.com/prometheus/common ) from 0.20.0 to 0.23.0.
- [Release notes](https://github.com/prometheus/common/releases )
- [Commits](https://github.com/prometheus/common/compare/v0.20.0...v0.23.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-01 07:05:08 +00:00
Anatolii Dutchak
52bfbbb1b0
Goimported pod_collector_test.go
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-30 18:08:30 +03:00
Anatolii Dutchak
cf5872ef08
Fixed formatting
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-30 18:00:23 +03:00
Anatolii Dutchak
b5432fb1f3
Fixed formatting
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-30 17:58:44 +03:00
Anatolii Dutchak
5466badd90
Added pod.DeletionTimestamp condition check
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-30 16:04:32 +03:00
Jonathan Juares Beber
aef1837e47
Merge pull request #310 from Miniland1333/patch-1
...
Updated apiservice to v1
2021-04-28 16:16:00 +02:00
Henry Agnew
4e86d6ae34
Reverted changes to metrics API. Retain API registration changes
...
Testing indicates that metrics API v1beta2 is not a suitable drop-in replacement for v1beta1, and v1 does not exist at this time.
Signed-off-by: Henry Agnew <henryd.agnew@gmail.com >
2021-04-27 10:31:48 -07:00
Miniland1333
2874c1a6a7
Update Chart.yaml
...
Signed-off-by: Henry Agnew <henryd.agnew@gmail.com >
2021-04-26 22:19:37 -07:00
Miniland1333
b5006746f0
Bump to v0.1.10
...
Signed-off-by: Henry Agnew <henryd.agnew@gmail.com >
2021-04-26 22:19:37 -07:00
Miniland1333
9496ab7fd3
Update external-metrics-apiservice.yaml
...
Signed-off-by: Henry Agnew <henryd.agnew@gmail.com >
2021-04-26 11:26:34 -07:00
Miniland1333
aa7f86291e
Update custom-metrics-apiservice.yaml
...
Signed-off-by: Henry Agnew <henryd.agnew@gmail.com >
2021-04-26 11:26:34 -07:00
Miniland1333
486a6c4262
Update external-metrics-apiservice.yaml
...
Signed-off-by: Henry Agnew <henryd.agnew@gmail.com >
2021-04-26 11:26:34 -07:00
Miniland1333
aaf66f31a0
Update custom-metrics-apiservice.yaml
...
Signed-off-by: Henry Agnew <henryd.agnew@gmail.com >
2021-04-26 11:26:34 -07:00
Jonathan Juares Beber
e5bee93bf6
Merge pull request #309 from iamgrewal7/master
...
add commandline flags to set GC interval and metrics TTL
2021-04-26 14:28:02 +02:00
Harman Singh
aae3772472
add commandline flags to set GC interval and metrics TTL
...
Signed-off-by: Harman Singh <iamgrewal7@gmail.com >
2021-04-26 00:01:04 -07:00
Jonathan Juares Beber
76d3726e5b
Merge pull request #308 from adutchak-x/feature/improve-pod-collector
...
Feature/improve pod collector
2021-04-21 19:39:49 +02:00
Anatolii Dutchak
ea4a651afe
Fixed tests
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-21 18:37:16 +03:00
Anatolii Dutchak
721c6553d8
Added conditions[i].Status == corev1.ConditionTrue check
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-21 18:25:49 +03:00
Anatolii Dutchak
5aa2272e37
Removed debug message, changed podReadyAge >= c.minPodReadyAge
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-20 12:33:47 +03:00
Anatolii Dutchak
b9300d1e46
Added namespace to logs, simplified GetPodReadyAge method
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-20 11:21:24 +03:00
Anatolii Dutchak
5747b6c9de
Renamed min-pod-age to min-pod-ready-age. Considering LastTransitionTime for pod ready age.
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-19 18:51:39 +03:00
Anatolii Dutchak
6d15a1635a
goimported pkg/collector/pod_collector_test.go
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-17 08:17:59 +03:00
Anatolii Dutchak
4090ab8b32
goimported pkg/annotations/parser_test.go
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-17 01:08:42 +03:00
Anatolii Dutchak
1f56abf931
Corrected formatting
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-17 00:52:00 +03:00
Anatolii Dutchak
f216070630
Introduced min-pod-age configuration key. Added Pod condition handling
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-17 00:52:00 +03:00
Jonathan Juares Beber
8725f02db7
Merge pull request #295 from adutchak-x/bugfix/fix-disregard-incompatible-hpas-error-handling
...
Bugfix/fix disregard incompatible hpas error handling
2021-04-16 12:10:17 +02:00
Anatolii Dutchak
240452ca27
Merge pull request #1 from zalando-incubator/bugfix/fix-disregard-incompatible-hpas-error-handling-check-events
...
Check for events to ensure invalid HPAs are ignored
2021-04-16 12:35:16 +03:00
Mikkel Oscar Lyderik Larsen
45d7863e73
Check for events to ensure invalid HPAs are ignored
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-04-16 10:05:27 +02:00
Anatolii Dutchak
87f249d36b
goimported hpa.go
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-14 22:25:23 +03:00
Anatolii Dutchak
9967a55df8
Updated errors handling for updateHPAs method
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-14 22:25:23 +03:00
adutchak-x
adf0792079
Update pkg/collector/collector.go
...
Co-authored-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-14 22:25:23 +03:00
Anatolii Dutchak
99fa5c42ed
Replaced spaces with tabs
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-14 22:25:23 +03:00
Anatolii Dutchak
188cc91574
Reverted error check to errors.Is(), implemented Is() method for PluginNotFoundError
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-14 22:25:23 +03:00
Anatolii Dutchak
a8ff0ed6f0
Corrected comment formatting
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-14 22:25:23 +03:00
Anatolii Dutchak
cc9279b283
Chnaged error type check from errors.Is() to errors.As() because errors.Is() always returns False
...
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com >
2021-04-14 22:25:23 +03:00
Jonathan Juares Beber
9bb7d976a0
Merge pull request #307 from zalando-incubator/update-deps-2021-04-13-2
...
Update dependencies
2021-04-13 16:08:57 +02:00
Mikkel Oscar Lyderik Larsen
816661f7fd
Don't deepcopy-gen on string types
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-04-13 13:11:40 +02:00
Mikkel Oscar Lyderik Larsen
7ae70d798d
Update dependencies
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-04-13 11:52:50 +02:00
Mikkel Oscar Lyderik Larsen
0ef5ad1cfe
Merge pull request #298 from zalando-incubator/document-interval-settings
...
Clearly document interval config
2021-04-13 11:35:57 +02:00
Jonathan Juares Beber
c86235636b
Merge pull request #297 from zalando-incubator/update-deps-2021-04-13
...
Update dependencies
2021-04-13 11:34:16 +02:00
Mikkel Oscar Lyderik Larsen
2d119e68e4
Clearly document interval config
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-04-13 11:28:50 +02:00
Mikkel Oscar Lyderik Larsen
df3efe0e39
Update makefile dependencies
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-04-13 11:17:46 +02:00
Mikkel Oscar Lyderik Larsen
a5b5cb91c3
Update dependencies
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-04-13 10:48:44 +02:00
Jonathan Juares Beber
ebcf99ad27
Merge pull request #284 from zalando-incubator/time-based-scaling
...
Create first version of ScalingSchedule CRD
2021-03-23 15:07:09 +01:00
Jonathan Juares Beber
3d450ad2c2
Create first version of ScalingSchedule CRDs
...
Some cases and users actually know when their applications will have a
high workload and, therefore, autoscaling support for time based scaling
is a desired feature.
This commit creates the first version of two CRDs called
`ScalingSchedule` and `ClusterScalingSchedule`.
The CRDs describe one or multiples schedules inside them. The schedules
contains the information of when the time based scaling starts, if it
happens once or multiple times, its duration and, a configurable value
that later can be used by HPAs to scale applications.
The only difference between the two CRDs is their scope.
`ClusterScalingSchedule` aims to attend cluster wide schedules, to
multiple applications, while `ScalingSchedule` has to be deployed with
each application into the same namespace.
This commit does not creates any metric, it's a noop change that creates
just the CRD and import tools required to generate the CRD and others
required code, as `deepCopy` functions and clients.
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-03-23 11:07:56 +01:00
Mikkel Oscar Lyderik Larsen
78a9b5c253
Merge pull request #283 from zalando-incubator/update-deps-2021-03-01
...
Update dependencies
2021-03-01 12:45:36 +01:00
Mikkel Oscar Lyderik Larsen
4e2b9d9788
Update dependencies
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-03-01 11:50:33 +01:00
Mikkel Oscar Lyderik Larsen
38aeb4deed
Stable comparison in test
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-03-01 11:50:32 +01:00
Mikkel Oscar Lyderik Larsen
b7aa886546
Namespace external metrics ( #259 )
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-02-19 11:11:29 +01:00
Mikkel Oscar Lyderik Larsen
942e753f87
Use Github actions instead of travis ( #270 )
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-02-19 10:31:20 +01:00
Jonathan Juares Beber
86ed6ec102
Merge pull request #269 from zalando-incubator/update-dependencies-2021-02-01
...
Update dependencies
2021-02-01 18:49:22 +01:00
Mikkel Oscar Lyderik Larsen
b313c963b6
Update dependencies
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-02-01 10:26:01 +01:00
Jonathan Juares Beber
ca20ef3a3b
Merge pull request #256 from zalando-incubator/label-maintainer
...
Use non-deprecated Dockerfile syntax
2021-01-15 14:56:27 +01:00
Mikkel Oscar Lyderik Larsen
f2179846c5
Use non-deprecated Dockerfile syntax
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-01-15 14:21:26 +01:00
Jonathan Juares Beber
85089c4773
Merge pull request #253 from tanersener/master
...
Fix the namespace of horizontal-pod-autoscaler service account used in the helm chart
2021-01-14 19:31:02 +01:00
Taner Sener
2ac9dd29d8
Fix the namespace of horizontal-pod-autoscaler service account in the helm chart
...
Signed-off-by: Taner Sener <tanersener@gmail.com >
2021-01-13 14:54:43 +00:00
Mikkel Oscar Lyderik Larsen
2bfc85ff3d
Merge pull request #251 from zalando-incubator/fix-aws-collector
...
Don't check for metric name on AWS init
2021-01-05 16:49:31 +01:00
Mikkel Oscar Lyderik Larsen
d55a551bd8
Don't check for metric name on AWS init
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-01-05 11:52:44 +01:00
Jonathan Juares Beber
3174100f5a
Merge pull request #250 from zalando-incubator/base-image
...
Switch to compliant base image
2021-01-05 09:03:47 +01:00
Jonathan Juares Beber
16808f012d
Switch to compliant base image
...
Use compliant base image according to our tech rules of play:
- KDP-1: use an approved Docker base image and version from the list of
allowed Docker Base Images under the pierone namespace ‘library’.
Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com >
2021-01-05 08:57:15 +01:00
Mikkel Oscar Lyderik Larsen
2531ddcbe3
Merge pull request #238 from tanersener/master
...
Add a kubernetes helm chart
2021-01-04 16:07:52 +01:00
Taner Sener
8ff2e3985b
keep non-helm deployment files
...
Signed-off-by: Taner Sener <tanersener@gmail.com >
2021-01-04 13:11:33 +00:00
Mikkel Oscar Lyderik Larsen
dab5a66556
Update dependencies ( #249 )
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2021-01-04 09:59:04 +01:00
Taner Sener
995ec54aa5
re-organize helm deployment files as a helm chart
...
Signed-off-by: Taner Sener <tanersener@gmail.com >
2020-12-19 10:12:33 +00:00
Mikkel Oscar Lyderik Larsen
6f71e9c6b0
Merge pull request #236 from zalando-incubator/update-deps-2020-12-01
...
Update dependencies
2020-12-01 12:42:34 +01:00
Mikkel Oscar Lyderik Larsen
ed16830a77
Update dependencies
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2020-12-01 11:16:09 +01:00
Ewan Valentine
7f84bc75f4
UPDATED to use NewSessionWithConfig instead of NewSession ( #230 )
...
NewSession is being deprecated, NewSessionWithConfig handles things
such as role arns. This fixes permissions issues for users using
role arns for service accounts.
Signed-off-by: Ewan Valentine <ewan.valentine89@gmail.com >
2020-11-21 19:49:49 +01:00
Mikkel Oscar Lyderik Larsen
b5fbb1beae
Merge pull request #228 from zalando-incubator/prometheus-fix-query-mapping
...
Fix mapping of Prometheus query for new metric configuration
2020-11-16 17:52:56 +01:00
Mikkel Oscar Lyderik Larsen
4506701b7c
Fix mapping of Prometheus query for new metric configuration
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2020-11-16 17:44:06 +01:00
Mikkel Oscar Lyderik Larsen
df0ed1fca4
Use labels for mapping metric types to metrics ( #219 )
...
* Use labels for mapping metric types to metrics
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
* Log warning when old format is used
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
* Test NewCollector logic for external metrics
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2020-11-04 20:40:53 +01:00
Jannis Rake-Revelant
bb107b678c
Merge pull request #224 from zalando-incubator/update-deps-2020-11-02
...
Update dependencies
2020-11-02 09:56:51 +01:00
Mikkel Oscar Lyderik Larsen
8d7dc13bbd
Update dependencies
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2020-11-02 09:04:08 +01:00
Mikkel Oscar Lyderik Larsen
20f0042017
Merge pull request #217 from zalando-incubator/fix-openapi
...
Fix openapi serving
2020-10-27 11:27:07 +01:00
Mikkel Oscar Lyderik Larsen
c732851b6b
Fix openapi serving
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2020-10-27 10:43:16 +01:00
Muaaz Saleem
2e09132f95
[prom collector ] Documenting scrape interval ( #215 )
...
There is a way to configure scrape interval
Signed-off-by: Muaaz Saleem <muhammad.muaaz.saleem@zalando.de >
2020-10-26 17:37:24 +01:00
dependabot[bot]
95f22dc398
Bump github.com/aws/aws-sdk-go from 1.35.0 to 1.35.13 ( #212 )
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.35.0 to 1.35.13.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.35.0...v1.35.13 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 10:31:24 +01:00
Mikkel Oscar Lyderik Larsen
eed5c78fb3
Use upstream version of custom-metrics-apiserver ( #211 )
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2020-10-23 10:51:10 +02:00
Mikkel Oscar Lyderik Larsen
e61071a36d
Merge pull request #164 from zalando-incubator/openapi-fork
...
Use OpenAPI spec fork
2020-10-06 22:30:46 +02:00
Mikkel Oscar Lyderik Larsen
c108fab55a
Use OpenAPI spec fork
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2020-10-02 11:06:21 +02:00
Mikkel Oscar Lyderik Larsen
be7567efea
Fix handling of invalid/empty json response ( #209 )
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2020-10-02 10:57:53 +02:00
Mikkel Oscar Lyderik Larsen
b677e814be
Update dependencies ( #200 )
...
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de >
2020-10-02 10:55:42 +02:00