Probes k8s CRD usage

132 views
Skip to first unread message

Dima K.

unread,
Sep 24, 2020, 8:23:55 AM9/24/20
to Prometheus Users
Hi, 

somehow there is missing documentation/examples on Probes Custom Resource Definition.

I got Prometheus Operator running v.0.42.0 plus blackbox-exporter in the same NS.
Using prometheus additional configs to run probes on k8s services works fine.
I'm trying to create a sample Probe using probes.monitoring.coreos.com in order not
to maintain static list of custom targets. Since there're absolutely no examples on probes,
created a minimalistic sample based on :

kind: Probe
metadata:
  labels:
    monitoring: enabled
  name: probe-test
spec:
  module: http_2xx
  prober:
    url: prometheus-blackbox.exporter:9115
  targets:
    staticConfig:
      static:

Sadly Prometheus not fetches it. 
Any hint or a link how to deal with Probes are appreciated!

Matt Doughty

unread,
Sep 24, 2020, 10:06:19 AM9/24/20
to Dima K., Prometheus Users
How did you install prometheus-operator? If you used helm, the default is to ignore CRDs that don't have a matching label set with the deployment to better enable multi-tenancy out of the box.

--Matt

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6ebec151-c4df-45ec-bf2e-3fabb44fbdebn%40googlegroups.com.


--
--Matt

Dima Kuskov

unread,
Sep 24, 2020, 10:49:50 AM9/24/20
to Matt Doughty, Prometheus Users
Hey Matt,

not using helm, plain yaml manifests applied with terraform. 
Reply all
Reply to author
Forward
0 new messages