Commit Graph

60 Commits

Author SHA1 Message Date
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