Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs feedback: How to use prometheus.operator.probes #2333

Open
enneitex opened this issue Jan 3, 2025 · 0 comments
Open

Docs feedback: How to use prometheus.operator.probes #2333

enneitex opened this issue Jan 3, 2025 · 0 comments
Labels
type/docs Docs Squad label across all Grafana Labs repos

Comments

@enneitex
Copy link

enneitex commented Jan 3, 2025

URL

https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.operator.probes/#example

Feedback

Hi,

I'm trying to add the prometheus.operator.probes component on my alloy instance but I don't get what my Probe should look like.
As I understand, alloy acts as the blackbox exporter so I don't need to deploy it in addition to alloy. (prometheus.exporter.blackbox i working well)

something like this should work or is spec.prober.url required ? If so, is it localhost:12345 ?

apiVersion: monitoring.coreos.com/v1
kind: Probe
metadata:
  name: probe-crd
spec:
  interval: 10s
  module: http_2xx
  targets:
    staticConfig:
      static:
        - https://grafana.com

When adding url: localhost:12345 I get en error: level=debug msg="Append failed" component_path=/ component_id=prometheus.operator.probes.default scrape_pool=probe/kube-monitoring/probe-crd target="http://localhost:12345/probe?module=http_2xx&target=https%3A%2F%2Fgrafana.com" err="expected a valid start token, got \"<\" (\"INVALID\") while parsing: \"<\"" because this is the UI port I guess

Is it possible to share a working example with a Probe ?

Does an extra Port need to be exposed in alloy container ? Or a dedicated blackbox-exporter pod is required ?

@enneitex enneitex added the type/docs Docs Squad label across all Grafana Labs repos label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

No branches or pull requests

1 participant