Commit Graph

410 Commits

Author SHA1 Message Date
Ergin Babani 4d0d77244a Fix crash due to missing ingress http block
It's acceptable although uncommon for an ingress to have a rule and a host,
but no HTTP block for that particular rule.
2019-07-18 17:17:01 -04:00
Tariq Ibrahim 47f19a7b5f
add nil guard checks when querying VPA objects 2019-07-18 12:29:05 -07:00
Tariq Ibrahim b42b29a605
Use the appsv1 apigroup when building the reflector for replicasets. 2019-07-10 11:24:56 -07:00
Tariq Ibrahim 5c5a8932ab
rename kubeAnnotationsToPrometheusAnnotations to kubeAnnotationsToPrometheusLabels 2019-06-28 00:15:57 -07:00
Lili Cosic ec29426150 *: Remove reference to removed APIs 2019-06-26 19:17:51 +02:00
Andrey Sidorov 536aef35f4 use appsv1 apigroup for ReplicaSet 2019-06-26 17:25:01 +03:00
Andrey Sidorov 5ae00bb93f add kube_*_annotations metrics for all objects 2019-06-25 22:29:27 +03:00
Miles Bryant 67ef5ecc9c
store: add verticalpodautoscaler metrics 2019-06-20 12:24:37 +01:00
Miles Bryant e1b45de7f6
builder/main: allow collectors not enabled by default
This fixes an issue where it was impossible to specify a collector that
was available but not selected by default.

Instead of checking whether chosen collectors are valid at flag parse
time, this moves the check into the builder, where we can reference it
against the availableStores in the builder. As a bonus, the error
message also prints out a list of available collectors:

```
kube-state-metrics --collectors non-existent-collector
I0618 15:23:34.517532   50719 main.go:88] Using collectors non-existent-collector
F0618 15:23:34.519132   50719 main.go:90] Error: collector non-existent-collector does not exist. Available collectors: persistentvolumeclaims,configmaps,limitranges,nodes,namespaces,persistentvolumes,pods,replicasets,services,cronjobs,deployments,ingresses,horizontalpodautoscalers,jobs,poddisruptionbudgets,secrets,certificatesigningrequests,daemonsets,endpoints,storageclasses,replicationcontrollers,resourcequotas,statefulsets
```
2019-06-18 16:28:11 +01:00
Lili Cosic 68aea02d26 Makefile,internal/collector: Rename collector -> store
Since the removal of collector, this introduces both the concept of the
store and the resources instead of collectors that the user passes in.

The user facing logs and flags were not changed as that would be a
regression.
2019-06-11 16:18:53 +02:00