Commit 063226b1 authored by Johannes 'fish' Ziemke's avatar Johannes 'fish' Ziemke Committed by GitHub

Merge pull request #821 from prometheus/fish/add-k8s-ingrss

Add k8s ingress discovery
parents f227c8e8 f15d9429
...@@ -653,6 +653,22 @@ Available meta labels: ...@@ -653,6 +653,22 @@ Available meta labels:
* If the endpoints belong to a service, all labels of the `role: service` discovery are attached. * If the endpoints belong to a service, all labels of the `role: service` discovery are attached.
* For all targets backed by a pod, all labels of the `role: pod` discovery are attached. * For all targets backed by a pod, all labels of the `role: pod` discovery are attached.
#### `ingress`
The `ingress` role discovers a target for each path of each ingress.
This is generally useful for blackbox monitoring of an ingress.
The address will be set to the host specified in the ingress spec.
Available meta labels:
* `__meta_kubernetes_namespace`: The namespace of the ingress object.
* `__meta_kubernetes_ingress_name`: The name of the ingress object.
* `__meta_kubernetes_ingress_label_<labelname>`: The label of the ingress object.
* `__meta_kubernetes_ingress_annotation_<annotationname>`: The annotation of the ingress object.
* `__meta_kubernetes_ingress_scheme`: Protocol scheme of ingress, `https` if TLS
config is set. Defaults to `http`.
* `__meta_kubernetes_ingress_path`: Path from ingress spec. Defaults to `/`.
See below for the configuration options for Kubernetes discovery: See below for the configuration options for Kubernetes discovery:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment