35 Commits
Author SHA1 Message Date
Matt Farina 4a04b6f964 Removed old owners files (#24416)
Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-11-13 17:06:05 -05:00
Naseem 7d9b848a7a deprecate prom-adapter (#23694)
Signed-off-by: Naseem <naseem@transit.app>
2020-09-04 22:49:40 -07:00
Stevo Slavić e8cd9b7f37 [stable/prometheus-adapter] Upgrading to v0.7.0 (#23245)
Signed-off-by: Stevo Slavić <sslavic@gmail.com>
2020-07-17 14:46:50 -07:00
Eric Herot 9a7d7566ef [stable/prometheus-adapter] Allow specifying a path for the Prometheus URL (#22760)
* [stable/prometheus-adapter] Allow specifying a path for the URL

Signed-off-by: Eric Herot <400447+eherot@users.noreply.github.com>

* [stable/prometheus-adapter] Version bump 2.4.0

Signed-off-by: Eric Herot <400447+eherot@users.noreply.github.com>
2020-06-12 07:29:55 -07:00
Yash ad1edd1f50 add watch to resource-reader ClusterRole (#22010)
Signed-off-by: Yash Bhutwala <ymb002@bucknell.edu>
2020-04-19 14:01:38 -07:00
Ali Sattari ca47667be9 [stable/prometheus-adapter] Defining a variable for listen port (#21918)
* Defining a variable for listen port

Signed-off-by: Ali Sattari <ali.sattari@gmail.com>

* Bumping the version properly

Signed-off-by: Ali Sattari <ali.sattari@gmail.com>
2020-04-14 08:10:12 -07:00
hmlkao ef70d277fc [stable/prometheus-adapter] Add podLabels support (#21658)
Signed-off-by: Ondrej Homolka <ondrej.homolka@gmail.com>
2020-03-27 07:36:24 -07:00
Markos Chandras b786229f89 [stable/prometheus-adapter] Do not create custom metrics rbac (#20900)
Commit b7afaf9d88 ("do not create
apiservice when not needed") from PR #20883 disabled the custom API
Service when no custom rules are used. However, we also need to not
deploy the cluster role as it has no use.

Signed-off-by: Markos Chandras <markos@chandras.me>
2020-02-28 13:02:39 -08:00
Carlos Alexandro Becker b7afaf9d88 [stable/prometheus-adapter]: do not create apiservice when not needed (#20883)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-02-21 07:44:32 -08:00
Dudko Alexey 04796e40c1 pass empty array if rules are empty (#19616) (#20819)
Signed-off-by: Dudko Alexey <dududko@gmail.com>
2020-02-17 16:09:28 -08:00
Tine Jozelj cf1ea06e43 [stable/prometheus-adapter] Upgrading to v0.6.0 (#20750)
* upgrade prometheus-adapter image to v0.6.0

Signed-off-by: Tine Jozelj <tine@celtra.com>

* bump version to 2.1.0

Signed-off-by: Tine Jozelj <tine@celtra.com>
2020-02-17 04:45:28 -08:00
Marco Amador 5dcaa28ab5 [stable/prometheus-adapter] Allow prometheus-adapter to start in hostNetwork mode (#19466)
* Allow prometheus-adapter to start in hostNetwork mode

Signed-off-by: Marco Amador <amador.marco@gmail.com>

* Bump chart version

Signed-off-by: Marco Amador <amador.marco@gmail.com>
2020-01-16 05:20:22 -08:00
Jie Yu bd032743a6 [promethesus-adapter] use the new tag name (#19961)
Some metrics labels (namely `pod_name` and `container_name`) have been
removed in Kubernetes 1.16 (deprecated for a few releases). This patch
switch to use the new metrics labels so that metrics can be properly
retrieved and parsed from Prometheus.

See more details about the removal of metrics labels here:
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.16.md#removed-metrics

Also, bump the min supported Kubernetes version to 1.14 because the new
metrics labels are introduced in 1.14. See the following release notes:
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.14.md

Signed-off-by: Jie Yu <yujie.jay@gmail.com>
2020-01-10 08:18:35 -08:00
Vlad Ionescu 8391871341 [stable/prometheus-adapter] Support extra volumes (#17982)
* [stable/prometheus-adapter] Support extra volumes

Signed-off-by: Vlad Ionescu <Vlaaaaaaad@users.noreply.github.com>

* [stable/prometheus-adapter] Address review suggestions

Signed-off-by: Vlad Ionescu <Vlaaaaaaad@users.noreply.github.com>

* [stable/prometheus-adapter] Fix typo

Signed-off-by: Vlad Ionescu <Vlaaaaaaad@users.noreply.github.com>
2019-10-15 09:19:53 -07:00
Aaron Mell db62a6c595 [stable/prometheus-adapter] Added pod annotations to chart. (#16446)
* [stable/prometheus-adapter] Added pod annotations to chart. Upgraded chart to latest version of image

Signed-off-by: Aaron Mell <amell@lumindigital.com>

* [stable/prometheus-adapter] Added pod annotations to chart. Upgraded chart to latest version of image

Signed-off-by: Aaron Mell <amell@lumindigital.com>

* Fixing code review issues

Signed-off-by: Aaron Mell <amell@lumindigital.com>

* Removed v from chart.yaml, changed indent to nindent. Added trim to prevent extra line after annotation.
Signed-off-by: Aaron Mell <amell@lumindigital.com>

* Signed-off-by: Aaron Mell <amell@lumindigital.com>
2019-08-22 08:26:34 -07:00
Steven Sheehy 395ba9dd2f [stable/prometheus-adapter] Add priorityClassName (#14570)
Signed-off-by: Steven Sheehy <ssheehy@firescope.com>
2019-06-11 04:32:19 -07:00
Dimitri Koshkin a84f6ebb60 [stable/prometheus-adapter] add new resourceRules in values (#14508)
* [stable/prometheus-adapter] add new resourceRules

prometheus-adapter supports resourceRules. Enabling this allows serving metrics on metrics.k8s.io/v1beta1, where the HPA queries for CPU and mem metrics.

Signed-off-by: Dimitri Koshkin <dimitri.koshkin@gmail.com>

* [stable/prometheus-adapter] bump interval to 3m

Signed-off-by: Dimitri Koshkin <dimitri.koshkin@gmail.com>
2019-06-06 09:42:16 -07:00
Hector Fernandez 6ccda8e94e owners: add a new owner (#14530)
Signed-off-by: Hector Fernandez <hfernandez@mesosphere.com>
2019-06-05 09:02:00 -07:00
Jie Yu 87c90e6b1f [stable/prometheus-adapter] conditionally register external metrics API (#13716) (#14389)
* [stable/prometheus-adapter] conditionally register external metrics API (#13716)

The prometheus-adapter will NOT serve external metrics API if
`externalRules` section is not specified. See this code:
https://github.com/DirectXMan12/k8s-prometheus-adapter/blob/v0.5.0/cmd/adapter/adapter.go#L177

In that case, we cannot bindly register the external metrics API.
Otherwise, we might see issues described in #13716. This patch fixed the
issue by conditionally register the external metrics API.

Fixes #13716

Signed-off-by: Jie Yu <yujie.jay@gmail.com>

* [stable/prometheus-adapter] bump chart version to 1.0.3

Bump the chart version to 1.0.3 due to the fix of #13716.

Signed-off-by: Jie Yu <yujie.jay@gmail.com>

* [stable/prometheus-adapter] use 'and' to combine template directives

To address the review comments.

Signed-off-by: Jie Yu <yujie.jay@gmail.com>

* [stable/prometheus-adapter] add ci test values

To improve the test coverage.

Signed-off-by: Jie Yu <yujie.jay@gmail.com>
2019-06-01 19:04:13 -07:00
Steven Sheehy 7bbead3bb2 [stable/prometheus-adapter] Add myself to OWNERS (#13887)
Signed-off-by: Steven Sheehy <ssheehy@firescope.com>
2019-05-21 09:12:46 -07:00
xaurx 66558a3385 prometheus-adapter: allow to set custom prometheus URL path (#13174)
* prometheus-adapter: allow to set custom prometheus path

Signed-off-by: Alexander Lyashko <aurx@mail.ru>

* prometheus-adapter: bump version

Signed-off-by: Alexander Lyashko <aurx@mail.ru>

* prometheus-adapter: Bump version again, to make semantic versioning happy

Signed-off-by: Alexander Lyashko <aurx@mail.ru>

* Rework: omit port info at all if port is 0

Signed-off-by: Alexander Lyashko <aurx@mail.ru>

* README: Remove stale path description

Signed-off-by: Alexander Lyashko <aurx@mail.ru>

* Bump prometheus-adapter chart version

Signed-off-by: Alexander Lyashko <aurx@mail.ru>
2019-05-20 08:45:14 -07:00
Carlos Tadeu Panato Junior b1901949bd add apiVersion (#13818)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2019-05-15 01:43:13 -07:00
Vitaly Gorodetsky 2eeaaeace5 [stable/prometheus-adapter] Adds support for external metrics v0.5.0 (#13133)
* Add external metrics support v0.5.0

Signed-off-by: Vitaly Gorodetsky <gorodetsky@gmail.com>

* fixes trailing spaces

Signed-off-by: Vitaly Gorodetsky <gorodetsky@gmail.com>

* PR fixes

Signed-off-by: Vitaly Gorodetsky <gorodetsky@gmail.com>

* PR fixes

Signed-off-by: Vitaly Gorodetsky <gorodetsky@gmail.com>

* Fixes @steven-sheehy comments

Signed-off-by: Vitaly Gorodetsky <gorodetsky@gmail.com>
2019-04-29 09:38:25 -07:00
Drew Wells ef91306195 fixes incompatibility with 1.11 (#13261)
- podSecurityContext has moved to a separate object
- pass the likely security deescalations to the container sec context

Signed-off-by: Drew Wells <drew.wells00@gmail.com>
2019-04-25 11:27:46 -07:00
Ivan Mora Pérez 71ec1f41ec Fix/prometheus adapter image pull secrets (#10725)
* Move image pull secret block to a proper place

Signed-off-by: Iván Mora <ivan.mora@ST-A135-5LLG8WP.domino.softonic.com>

* Bump chart version

Signed-off-by: Iván Mora <ivan.mora@ST-A135-5LLG8WP.domino.softonic.com>
2019-01-17 04:52:52 -08:00
Ivan Mora Pérez 3c951bbae7 Add support for image pull secrets for api server deployment (#10269)
Signed-off-by: Iván Mora <ivan.mora@ST-A135-5LLG8WP.domino.softonic.com>
2019-01-15 11:35:57 -08:00
Justin McCarty 7dbf0a9f10 Adding support for externally defined adapter rules (#8959)
* Adding support for externally defined adapter rules

Signed-off-by: Justin McCarty <justin.mccarty@syapse.com>

* Adding comment in values for the existing rules entry

Signed-off-by: Justin McCarty <justin.mccarty@syapse.com>

* Removing trailing space

Signed-off-by: Justin McCarty <justin.mccarty@syapse.com>
2019-01-02 11:01:35 -08:00
Steven Sheehy 203577eb06 [stable/prometheus-adapter] readOnlyFileSystem (#10042)
Signed-off-by: Steven Sheehy <ssheehy@firescope.com>
2018-12-19 17:49:42 -08:00
Steven Sheehy 6e7180700e [stable/prometheus-adapter] v0.4.1, readOnlyRootFilesystem, fixes (#10036)
Signed-off-by: Steven Sheehy <ssheehy@firescope.com>
2018-12-16 02:22:52 -08:00
Harshal Shah 626d6e1409 Upgrading to v0.4.0 (#9711)
Signed-off-by: Harshal Shah <harshal2623@gmail.com>
2018-12-04 10:45:11 -08:00
Bhavin Gandhi 2bb0fa3a75 [stable/prometheus-adapter] Add checksum of configMap as annotation (#8334)
* [stable/prometheus-adapter] Add checksum of configMap as annotation

- This adds checksum/config to the annotations which has sha256sum of
  the file custom-metrics-configmap.yaml
- This does the rolling update of the deployment when user does helm
  upgrade and there are changes to the configMap, so the adapter will
  pick up the latest changes in the config file
- ref:
  https://docs.helm.sh/charts_tips_and_tricks/#automatically-roll-deployments-when-configmaps-or-secrets-change
- Bump chart version

Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>

* [stable/prometheus-adapter] Bump version to 0.2.0

Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
2018-10-10 17:21:00 -07:00
Matei David 184af8d82d Changed syntax error in custom-metrics-apiserver-service and secret (label to labels) (#7295)
Signed-off-by: Matei David <t-madavid@hotels.com>
2018-09-19 13:41:20 -07:00
Dave Henderson d196af9db6 Fixing warning when overriding rules.custom (#7586)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2018-09-08 08:44:12 -07:00
Steven Sheehy 17a3f72d19 [stable/prometheus-adapter] Enhancements (#7183)
* stable/prometheus-adapter enhancements

* Fix linting issues
2018-08-15 07:12:01 -07:00
Mattias Gees 9b049deba5 Add prometheus adapter chart (#6082)
* Add prometheus adapter chart

* Remove whitespace

* Align versions

* Fix labels

* Make args templatable

* Update readme

* Make v0.2.1 work

* Commnet out resources in values.yaml

* Reorder and fix metadata

(cherry picked from commit 5522d6fc7bc814b541795ca03ecdc833a2ee0ee0)

* Add usage of resource variable

(cherry picked from commit 3f3c2a0e3d434f45416a2e2bcbc769ccceeeea3c)

* Remove deprecated variable

* Fix HELM error

* Move from stable to incubator
2018-08-13 12:59:50 -07:00