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

23 commits

Author SHA1 Message Date
Tamal Saha
39306eb830 Update client libraries to Kubernetes 1.11 2018-07-01 09:23:00 -07:00
Frederic Branczyk
24f98e7df9 Remote write queue config (#1517)
RemoteWriteSpec Expose QueueConfig Parameters (#1488)
2018-06-26 22:03:02 +08:00
Frederic Branczyk
84350d2c56
*: Add Thanos integration 2018-06-22 15:49:02 +02:00
Frederic Branczyk
f07d73bd1e
*: Remove PrometheusRuleSelector 2018-06-05 13:59:31 +02:00
Frederic Branczyk
fb32e57837
*: Rename RuleFile to PrometheusRule 2018-06-05 13:34:13 +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
jakub.coufal
dd507bfc3b prometheus: add additional AlertManager config - CRD update 2018-05-11 22:53:47 +02:00
tamal
0b9724a4e0 Update client libraries to Kubernetes 1.10 2018-05-05 09:43:40 -07:00
Frederic Branczyk
e45f7653a7
Merge pull request #1246 from mxinden/additional-config
prometheus: Allow specifying additional scrape configs via secret
2018-04-24 21:56:54 +01:00
Max Leonard Inden
c39b1e14ec
prometheus: Add test for additional scrape configs & update docs 2018-04-24 11:31:57 +02:00
Max Leonard Inden
1d00e0ab4b
ServiceMonitor: Enable Prometheus to select ServMon outside own ns
So far a Prometheus object could only select ServiceMonitors inside its
own namespace. This patch enables a Prometheus object to select
ServiceMonitors outside its own namespace via the
`ServiceMonitorNamespaceSelector` field in the Prometheus spec.

Use case: There is one Prometheus inside the `monitoring` namespace,
which is supposed to monitor applications across namespaces for an
entire Kubernetes cluster.  Each app team is supposed to manage its own
ServiceMonitors. Instead of granting each app team access to the
`monitoring` namespace to manage its ServiceMonitor objects,
ServiceMonitors can be shipped along with the application itself in each
application namespace.
2018-04-18 10:36:54 +02:00
Keyvan Hedayati
5a113987f6 Fixed typos in RemoteReadSpec comments 2018-04-12 16:44:43 +04:30
Max Leonard Inden
51daf7711b
Make AM log level configurable 2018-04-07 16:27:00 +02:00
Frederic Branczyk
cc7ecdd8c7
prometheus: Make relabeling fields optional 2018-04-03 11:26:18 +02:00
Frederic Branczyk
d819104e38
*: upgrade client-go 2018-03-21 14:24:45 +01:00
Frederic Branczyk
2ae5b72e37
prometheus: Add ability to authenticate with bearer token from file 2018-03-19 09:46:50 +01:00
Jason Piper
e1f98921d0 Add v1.TLSConfig to AlertManagerEndpoints 2018-03-17 17:02:30 +08:00
Jason Piper
434aa8c468 insecureSkipVerify for alertmanager connections 2018-03-16 12:49:45 +08:00
crandl201
03a41b9940 prometheus: remote configuration - add read_recent and required matchers, change naming of proxy_url in CRD 2018-03-12 21:28:18 -04:00
Frederic Branczyk
ca15e870da
*: Allow listening locally and specifying additional containers 2018-03-10 17:05:00 +01:00
Alexander Dobriakov
67ed5b20b5 documentation: clarify _RelabelConfig_ usage
The _RelabelConfig_ is confusing and connotes, that it is about
`<relabel_config>`-section of the configuration, but in reality it is about
`<metric_relabel_configs>`-section.

Comment in `types.go` was changed and `make generate` run to update generated documentation.
2018-03-02 15:13:16 +01:00
Antoine Legrand
200e68175a Update validation spec 2018-02-16 09:10:01 +01:00
Antoine Legrand
9d7d753a55 Factorize the NewCustomCRD function 2018-01-30 15:30:00 +01:00