Question: prometheus
does not seem to find any Ingress
traefik version: 2.9.10
kubernetes version: 1.22.3
The following is my configuration files:
ingress:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: demo-web
namespace: default
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: web
spec:
rules:
- host: web1.test.com
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: web-1
port:
number: 80
No address
[root@k8s-node1 ~]# kubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
demo-web <none> web1.test.com 80 23m
prometheus configuration:
- job_name: probe/monitoring/blackbox-ingress
honor_timestamps: true
params:
module:
- http_2xx
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /probe
scheme: http
follow_redirects: true
kubernetes_sd_configs:
- role: ingress
kubeconfig_file: ""
follow_redirects: true
relabel_configs:
- source_labels: [job]
separator: ;
regex: (.*)
target_label: __tmp_prometheus_job_name
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: job
replacement: blackbox-ingress
action: replace
- source_labels: [__meta_kubernetes_ingress_scheme, __address__, __meta_kubernetes_ingress_path]
separator: ;
regex: (.+);(.+);(.+)
target_label: __param_target
replacement: ${1}://${2}${3}
action: replace
- source_labels: [__meta_kubernetes_namespace]
separator: ;
regex: (.*)
target_label: namespace
replacement: $1
action: replace
- source_labels: [__meta_kubernetes_ingress_name]
separator: ;
regex: (.*)
target_label: ingress
replacement: $1
action: replace
- source_labels: [__param_target]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: __address__
replacement: blackbox-exporter:19115
action: replace
Prometheus does not seem to find any Ingress. Is there any problem with my configuration?