Commit Graph

28 Commits

Author SHA1 Message Date
Manuel Rüger 2a7a96b659 Rename cli flag from label-metrics-allow-list to metric-labels-allowlist
This might be more clear on what the flag is doing. There were two ways
to spell allow-list / allowlist which it removes as well

Fixes: https://github.com/kubernetes/kube-state-metrics/issues/1421
2021-03-26 13:11:19 +01:00
Manuel Rüger cbce059ffc cli-arguments.md: Fix docs 2021-03-18 14:18:13 +01:00
Mikulas (Mike) Dite ffa4c7bf0e fix labels-metric-allow-list documentation
The parser defined in types.go does not expect quotes
https://github.com/kubernetes/kube-state-metrics/blob/master/pkg/options/types.go#L136-L140
https://github.com/kubernetes/kube-state-metrics/blob/master/pkg/options/types_test.go#L168
2021-03-03 11:07:09 +00:00
Lili Cosic 18b81768d1 docs/cli-arguments.md: Update generated args 2020-12-17 14:10:50 +01:00
Lili Cosic 3b23d01afe pkg/options/types.go: Adjust Set to parse new flag params 2020-11-18 15:59:19 +01:00
Lili Cosic cb2c2a2263 docs/cli-arguments.md: Regenerate 2020-10-05 18:06:46 +02:00
Joel Whittaker-Smith 908f87b2cd apply boundaries to metrics and allow via flag what labels to include
Signed-off-by: Joel Whittaker-Smith <jdws.dev@gmail.com>
2020-08-26 12:42:30 +02:00
vikkyomkar 1be1b9d77b Renamed --namespace flag to --namespaces 2020-03-14 21:35:15 +05:30
Alexander-Carpenter d8ca14b6e6 Fix doc issue 2020-02-08 09:44:30 -06:00
Alexander-Carpenter 1eca877ce7 Change description 2020-02-05 21:39:26 -06:00
Alexander-Carpenter 36caf1ed83 Docs fix 2020-02-05 20:29:57 -06:00
Alexander-Carpenter 69fe7da267 Rename collector to resource 2020-02-05 19:43:23 -06:00
yeya24 da2dadcd3e remove deprecated metrics
Signed-off-by: yeya24 <yb532204897@gmail.com>

remove deprecated options

Signed-off-by: yeya24 <yb532204897@gmail.com>
2020-02-05 08:48:23 -05:00
Thibault Le Reste cb655340d6 Rename black-/whitelist to allow/deny-list 2020-02-03 17:05:11 +01:00
Kubernetes Prow Robot 0ff33c2137
Merge pull request #1005 from yeya24/same-port
v2: change metrics port to 8080, telemetry port to 8081
2020-01-31 01:54:20 -08:00
asidorovj f5729a5ccb add leases collector 2020-01-30 08:31:01 +03:00
yeya24 53af563a6a change metrics port to 8080, telemetry port to 8081
Signed-off-by: yeya24 <yb532204897@gmail.com>
2019-12-13 12:47:07 -05:00
Tariq Ibrahim ea4c2eb764
Merge branch 'master' into networkpolicy-collector 2019-10-17 10:10:45 -07:00
Miles Bryant e780fc34f3
store: export NetworkPolicy objects 2019-10-17 11:49:29 +01:00
Jens Erat 4e637854a2
add VolumeAttachment collector
Kubernetes has a new resource type: `VolumeAttachments`. They provide
helpful information on where a volume is attached and to alert on
unexpected attachment status (for example, differences between
information scraped from node-exporter and kube-state-metrics).

The collector adds a bunch of new metrics. Each VolumeAttachment (ie.,
each CSI-attached volume) will have one of each, so we do not overly
pollute the metrics space. Most metrics are rather unsurprising.

- `kube_volumeattachment_status_attachment_metadata`: provides a
  label-like export of the attachment metadata map. Generalizing the
  label-conversion function slightly helps at providing this metric.
- `kube_volumeattachment_created`: as VolumeAttachments are
  automatically created and we already suffered from duplicate
  `VolumeAttachments`, this can be invaluable for debugging
  misattachments.
- `kube_volumeattachment_spec_source_persistentvolume`: will only be
  generated when the volume source is of `PersistentVolume` type. The
  other type `inlineVolumeSpec` is still alpha-level and hard to map to
  metrics.

No end-to-end test manifest was added, as `VolumeAttachment`s are
automatically generated when mounting volumes.

Signed-off-by: Jens Erat <email@jenserat.de>
2019-10-13 21:36:50 +02:00
Nataly Sheinin 99623defbe
add mutatingwebhookconfiguration, validatingwebhookconfiguration metrics 2019-10-03 14:23:18 -04:00
Frederic Branczyk f3d41de450
Add auto detecting of sharding
main_test.go: Add model based test for sharding

In order to ensure a sharded system behaves equal to an unsharded
system, a model based test has been introduced. It scrapes an unsharded
setup and compares its output with the union of a sharded setup
therefore ensuring semantic equality.
2019-08-30 22:45:35 +02:00
Frederic Branczyk 84d61f9a93
Introduce sharding 2019-08-30 13:51:30 +02:00
Tariq Ibrahim 96eefd08f6
chore: update dependencies and tool versions 2019-08-16 20:27:21 -07:00
Tariq Ibrahim bdd3481c9a
update kubernetes versions to point to 1.15 2019-06-20 11:13:48 -07:00
Tariq Ibrahim 2a3c696347
feat: implement black/white- listing of metrics by regex 2019-06-19 02:16:52 -07:00
Lili Cosic 23b7f268a6 CONTRIBUTING.md,docs/*: Run make generate
The docs were out of date.
2019-06-07 20:11:14 +02:00
Johann Bich 37b37fc373 cli arguments and limited privileges doc 2019-05-15 10:42:55 +09:00