Commit Graph

29 Commits

Author SHA1 Message Date
Manuel Rüger cef8c1fa4c feat!: Remove VerticalPodAutoscaler
BREAKING CHANGE: VPA is now supported only via Custom Resource Metrics

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2023-03-16 14:37:44 +01:00
Manuel Rüger d799f4038b feat(customresourcestate): Support percentages 2023-03-01 19:14:09 +01:00
Manuel Rüger 26950a49fc feat(CustomResourceState): Support quantities 2023-03-01 19:13:00 +01:00
Manuel Rüger 8e3adcdb6e
Update docs/customresourcestate-metrics.md 2023-02-09 13:40:53 +01:00
Manuel Rüger a244030394
Update docs/customresourcestate-metrics.md 2023-02-09 12:50:48 +01:00
jabdoa2 24e2665a0b
Improve formating 2023-01-27 16:06:06 +01:00
jabdoa2 c0bd852949
Document how gauges convert types to float 2023-01-27 16:02:54 +01:00
Mario Constanti 488c0bcf59 update crd monitoring and mention new flags 2023-01-10 13:51:04 +01:00
Mario Constanti b410166471 replace kube_crd with kube_customresource in docs
Signed-off-by: Mario Constanti <mario@constanti.de>
2023-01-10 13:31:51 +01:00
Mario Constanti 7130bd0d2b prefix GVK labels in CustomResourceMonitoring
This will prefix the auto-generated GVK labels for CustomResources with
customresource_ to make it a bit more clear that these labels got generated.

Signed-off-by: Mario Constanti <mario@constanti.de>
2023-01-09 15:07:37 +01:00
Pranshu Srivastava 6d2a555bbc
Allow `labelFromKey` field
Allow `labelFromKey` field for the following types:
* Gauge: Done.
* Info: Done.
* StateSet: N/A (redundant use case, see doc changes for more info).

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2022-11-04 15:09:13 +05:30
Pavel Timofeev aba1302f28
Clarify valueFrom comment 2022-10-26 13:56:41 -06:00
Pavel Timofeev 1ea0ba87a3
One more typo fix 2022-10-26 13:53:02 -06:00
Pavel Timofeev 4c6fff1478
Fix typos 2022-10-25 22:48:27 -06:00
Kubernetes Prow Robot d4fdcda6f5
Merge pull request #1850 from rexagod/1847
Represent GVK information as labels
2022-10-20 09:47:01 -07:00
Pranshu Srivastava 762f98bb70
fixup! fixup! Represent GVK information as labels 2022-10-18 21:37:58 +05:30
Pranshu Srivastava 7f906e87b6
fixup! Represent GVK information as labels 2022-10-18 21:16:56 +05:30
Christian Schlotter 563aac0398
customresourcestate fix type indentation in example 2022-10-17 09:11:59 +02:00
Pranshu Srivastava 633cbf49d0
Represent GVK information as labels
Represent GVK information as labels in the metrics, instead of appending
them to the metric name itself. This would allow users to aggregate
varying GVKs of a CR under the same metric, making operations much more
easier.
2022-10-08 00:24:16 +05:30
Christian Schlotter 44831f7386
Prevent multiple custom resource configurations for the same resource 2022-08-24 08:20:08 +02:00
Christian Schlotter 52d3ab621b
pkg/customresourcestate implement info and stateSet metric type and refactor configuration file
* Adds detection of booleans in string format to getNum.
* Refactors configuration file to allow definition of different metric types
  having different configuration variables.
* Refactor order of types and funcs in pkg/customersourcestate.
* Allows info and stateSet metrics to iterate over arrays.
* Adds `nilIsZero` config variable to gauge to indicate non-existing values to tread as 0 value instead of returning an error.
* Skip adding a label instead of setting value to `<nil>`.
* Replace namespace and subsystem by metricsNamePrefix
* Adjust docs for customresourcestate metrics to align with new configuration file
2022-08-18 21:05:09 +02:00
Evgen Karlashov 9197bb28b9 Changes to customresourcestate doc
Signed-off-by: Evgen Karlashov <ievgen.karlashov@kpn.com>
2022-07-08 11:25:06 +02:00
Evgen Karlashov 5ba662251f Fix custom resource metrics documentation
Signed-off-by: Evgen Karlashov <ievgen.karlashov@kpn.com>
2022-07-08 11:25:06 +02:00
Noah Perks Sloan a9ec8a6209 fix: remove dots in flag names 2022-06-01 09:21:05 -05:00
Noah Perks Sloan fad7caf05f fix(docs): flag name 2022-06-01 09:18:52 -05:00
Noah Perks Sloan d0aa4a3bdd refactor: inline config as a flag
This is more flexible than the env variable, as a configuration can still set an env variable and use substitution in the args. e.g.,

```yaml
args:
 - --custom-resource-state.config
 - $(KSM_CUSTOM_RESOURCE_STATE_CONFIG)
env:
 ...
```
2022-06-01 09:12:48 -05:00
Noah Perks Sloan 39f7f0ce5a doc: don't abbreviate 2022-05-31 16:14:21 -05:00
Noah Perks Sloan 4b704fd90e fix: use a flag for the configuration file 2022-05-31 16:11:49 -05:00
Noah Perks Sloan e0e4f14412 feat: enable customresource metrics by configuration
The main use case is just surfacing fields from custom resources without having to write a lot of code for each one.
2022-05-31 14:24:28 -05:00