1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-16 09:16:38 +00:00
Commit graph

83 commits

Author SHA1 Message Date
Max Leonard Inden
e8a689d62e
travis: Update travis-push-docker-image.sh to new build system 2018-06-15 17:19:32 +02:00
Max Leonard Inden
f7a7a17e70
kube-prometheus: Run node-exporter in host network
Node exporter needs to run in the host network, not in the pod network
in order to pick up network metrics of the node.
2018-06-15 11:47:51 +02:00
Max Leonard Inden
a169f102ec
pkg/version: Pass Prometheus Operator version via ldflags
The Prometheus config reloader image is released along with the
Prometheus Operator image, tagged with the same semver version. In order
to default to the Prometheus Operator version if no Prometheus config
reloader image is specified, the content of `VERSION` needs to be passed
during compile time.

In addition with both the Prometheus Operator and the Prometheus Config
Reloader being aware of their version, we can log it at process startup
time.
2018-06-13 12:19:48 +02:00
Max Leonard Inden
19f3150e8a
*: Refactor build system
- Move prometheus-config-reloader to cmd/
- Refactor Makefile & contrib/kube-prometheus/Makefile
- Only execute a target if its dependencies changed
  - Create empty target file for docker builds
- Replace promu with plain static `go build`
2018-06-12 13:56:57 +02:00
Frederic Branczyk
6faf98268e
kube-prometheus: Extract prometheus-operator jsonnet out of contrib 2018-06-06 18:01:32 +02:00
Frederic Branczyk
fb32e57837
*: Rename RuleFile to PrometheusRule 2018-06-05 13:34:13 +02:00
Max Leonard Inden
afe9711ce2
prometheus: Enable live migration of rule configmaps to rule file crds
With this patch the Prometheus Operator checks if there are any
Kubernetes ConfigMaps inside the Prometheus namespace which fullfill the
`Spec.RuleSelector` requirement. If so, it creates a RuleFile for each
key in the `ConfigMap.Spec.Data` map inside the Prometheus namespace.
2018-05-31 10:47:50 +02:00
Max Leonard Inden
aeeb1ab846
Makefile: Enable bash pipefail
Enable bash pipefail flag for all Makefile operations. This arised when
running `make jsonnet`, where `jsonnet` failed, but the rest of the pipe
covered the error.
2018-05-28 15:58:42 +02:00
Frederic Branczyk
b30d5e8ccd
Merge pull request #1333 from mxinden/alerting-rule-file-crd
prometheus: Introduce RuleFile Custom Resource Definition
2018-05-18 17:14:28 +02:00
Max Leonard Inden
89fc4e3069
prometheus: Introduce RuleFile Custom Resource Definition
This patch introduces a new Custom Resource Definition to the
Prometheus Operator - the Rule CRD. It addresses two main
needs:

1. Prometheus (alerting and recording) Rule validation during creation time
via Kubernetes Custom Resource Definition validation.

2. Life-cycle management of Prometheus application Rules alongside the
application itself, inside the applications Kubernetes namespace, not
necessarily the namespace of the scraping Prometheus instance.

A user defines Prometheus alerting and recording Rules via a Kubernetes
Custom Resource Definition. These Custom Resource Definitions can be
fully validated by the Kubernetes API server during creation time via
automatically generated OpenAPI specifications. Instead of the
restriction of a Prometheus instance to only select Rule definitions
inside its own namespace, the Prometheus specification is extended to
also specify namespaces to look for Rule Custom Resource Definitions
outside its own namespace.

---

Dependent technical changes:

- prometheus: Use github.com/jimmidyson/configmap-reload to reload rules

- prometheus: Remove Prometheus Statefulset deletion function. Starting
with K8s >=1.8 this is handled via OwnerReferences.

- prometheus: Do not add rule files checksum to Prometheus configuration
secret

- prometheus: Update StatefulSet only on relevant changes. Instead of
updating the Prometheus StatefulSet on every `sync()` run, only update
it if the input parameters to `makeStatefulSet` change.  Enforce this
via a checksum of the parameters which is saved inside the annotations
of the statefulset.

- e2e/prometheus: Check how often resources (Secret, ConfigMap,
Prometheus CRD, Service) are updated to enforce that Prometheus Operator
only updated created resources if necessary.

- contrib/prometheus-config-reloader: Remove logic to retriev K8s
ConfigMaps. These are mounted into the pod right away now.
2018-05-18 16:27:20 +02:00
Frederic Branczyk
d30dc6cd97
Adapt docs on additional rules and dashboards 2018-05-18 11:00:11 +02:00
Max Leonard Inden
42f173b82e
docs: Run embedmd on both Docs and kube-prometheus README.md 2018-05-14 11:55:16 +02:00
Frederic Branczyk
0fe029b296
Merge pull request #1298 from tamalsaha/k-1.10
Update client libraries to Kubernetes 1.10
2018-05-06 19:25:10 +02:00
Frederic Branczyk
4eb7caab28
Address comments 2018-05-06 08:29:52 -07:00
tamal
0b9724a4e0 Update client libraries to Kubernetes 1.10 2018-05-05 09:43:40 -07:00
Frederic Branczyk
1f582ad398
kube-prometheus/jsonnet: Use jsonnet-bundler 2018-04-28 19:05:19 +01:00
Max Leonard Inden
fef2f989b0
kube-prometheus: Update Prometheus Operator version before generating 2018-04-26 12:50:51 +02:00
Frederic Branczyk
2f6b3ab674
Remove old manifests and replace with jsonnet build 2018-04-13 13:36:34 +02:00
Giancarlo Rubio
752a200ce3
Package exporter-coredns during helm-sync-s3 (#1185) 2018-04-06 10:26:44 +02:00
Giancarlo Rubio
0ae7f5ddf9
Bump chart prometheus-operator to v0.18.0 (#1183)
* Add s3 sync to coredns, bump operator to v0.18.0

* bump operator version
2018-04-05 11:58:59 +02:00
Frederic Branczyk
d819104e38
*: upgrade client-go 2018-03-21 14:24:45 +01:00
Jefferson Girao
9088b8389d e2e: ensure C locale when generating random string for namespace
LC_ALL when set takes precedence over LC_CTYPE and might cause
the tr command to fail with 'illegal byte sequence' when
generating the random string.
2018-03-18 12:02:24 +01:00
Giancarlo Rubio
b5496f91cd
WIP: fix ci (#1040)
Review helm e2e
2018-03-05 22:48:14 +01:00
Antoine Legrand
43f767329c Add generate-crd in 'make generate' rule 2018-01-30 15:50:39 +01:00
Antoine Legrand
e61a163047 Update openapi-gen 2018-01-30 15:33:39 +01:00
Antoine Legrand
0e1184ec68 Add CRD examples generator rule 2018-01-30 15:30:00 +01:00
Antoine Legrand
5d4241f2fe Add dependencies on $GOBIN/$BIN for generators 2018-01-30 15:30:00 +01:00
Antoine Legrand
d727d03c0c Update License header to 2018 2018-01-30 15:29:56 +01:00
Antoine Legrand
348fd1636f Generate CRD Validation spec 2018-01-30 15:29:56 +01:00
Antoine Legrand
982f24c22e Add option to include Validation Spec to CRDs 2018-01-30 15:29:56 +01:00
Antoine Legrand
1c6922ba8a Add a command/bin to generate the CRDs as yaml 2018-01-30 15:29:56 +01:00
Giancarlo Rubio
c367aef47a Remove exporter-kube-api from kube-prometheus requirements, bump version from chart kube-state 2018-01-03 19:17:32 +01:00
Frederic Branczyk
247c16aae2
*: Add kube-prometheus generate make target to generate stage 2017-12-22 16:10:32 +01:00
Frederic Branczyk
04bee84aec
*: Autogenerate DeepCopy methods 2017-12-22 15:01:54 +01:00
Giancarlo Rubio
c0dec91905 fix s3 sync 2017-12-14 14:19:04 +00:00
Giancarlo Rubio
45dea583f8 split helm deployment in a deploy task 2017-12-06 14:44:08 +00:00
Giancarlo Rubio
73904be8b8 Automatically package helm charts after a PR 2017-12-05 15:18:41 +00:00
Giancarlo Rubio
4dd3ce6218 Enable e2e tests on helm charts 2017-12-01 13:13:08 +01:00
Frederic Branczyk
5dcbacb747
*: bump test timeouts 2017-11-30 16:15:20 +01:00
Frederic Branczyk
5014795c9a
test/e2e: Get Secret before modifying
This might be required as the resourceVersion may not be correct.
2017-11-30 15:28:15 +01:00
Max Leonard Inden
df84b7c4fd
Vendoring kubernetes/client-go 1.8 2017-11-30 13:35:36 +01:00
Giancarlo Rubio
e456b2fabf add make helm-init-repo command to initialize the helm repo …
Move all exporters to the helm root folder
Add make helm-init-repo command to initialize the helm repo
2017-11-22 13:42:27 +01:00
Frederic Branczyk
757c0918af
Move jsonnet Dockerfile to own directory 2017-11-07 12:38:20 +01:00
Frederic Branczyk
48f3614fce
Remove Jenkins 2017-11-06 18:12:55 +01:00
Frederic Branczyk
3fbcf77287
*: bump Prometheus to v2.0.0-rc.1 2017-10-17 20:13:40 +02:00
Antoine Legrand
59fe4bea39 Add flag to specify the CRD group 2017-10-12 12:40:41 +02:00
Frederic Branczyk
a7e8b412ea
Documentation: fix documentation and remove unnecessary whitespace 2017-08-22 12:54:38 +02:00
Frederic Branczyk
e41e9e3ff2
Documentation: add compatibility doc 2017-08-01 10:11:33 +02:00
Frederic Branczyk
4e5fffb6d4 Merge pull request #460 from Gouthamve/crd
Move to CRDs
2017-07-28 14:14:43 +02:00
Frederic Branczyk
15b5a9d79c generate Prometheus Operator deployments with jsonnet (#508)
* *: use jsonnet to generate manifests

* generate Prometheus Operator manifests with jsonnet

* add jsonnet dockenfile for generating with jenkins
2017-07-27 14:17:57 +02:00