@@ -5,7 +5,7 @@ cSpell:ignore: bleh targetallocator
5
5
6
6
If you’ve enabled
7
7
[ Target Allocator] ( /docs/kubernetes/operator/target-allocator/ ) service
8
- discovery on the [ OpenTelemetry Operator] ( /docs/kubernetes/operator ) , and the
8
+ discovery on the [ OpenTelemetry Operator] ( /docs/kubernetes/operator/ ) , and the
9
9
Target Allocator is failing to discover scrape targets, there are a few
10
10
troubleshooting steps that you can take to help you understand what’s going on
11
11
and restore normal operation.
@@ -21,9 +21,8 @@ Kubernetes cluster.
21
21
22
22
After you’ve deployed all of your resources to Kubernetes, make sure that the
23
23
Target Allocator is discovering scrape targets from your
24
- [ ` ServiceMonitor ` ] ( https://prometheus-operator.dev/docs/operator/design/#servicemonitor ) (s)
25
- or
26
- [ ` PodMonitor ` ] ( https://prometheus-operator.dev/docs/user-guides/getting-started/#using-podmonitors ) (s).
24
+ [ ` ServiceMonitor ` ] ( https://prometheus-operator.dev/docs/getting-started/design/#servicemonitor ) (s)
25
+ or [ PodMonitor] s.
27
26
28
27
Suppose that you have this ` ServiceMonitor ` definition:
29
28
@@ -386,9 +385,7 @@ Allocator will fail to discover scrape targets from that `ServiceMonitor`.
386
385
387
386
{{% alert title="Tip" %}}
388
387
389
- The same applies if you’re using a
390
- [PodMonitor](https://prometheus-operator.dev/docs/user-guides/getting-started/#using-podmonitors).
391
- In that case, you would use a
388
+ The same applies if you’re using a [PodMonitor]. In that case, you would use a
392
389
[`podMonitorSelector`](https://github.com/open-telemetry/opentelemetry-operator/blob/main/docs/api.md#opentelemetrycollectorspectargetallocatorprometheuscr)
393
390
instead of a `serviceMonitorSelector`.
394
391
@@ -513,3 +510,6 @@ If you’re using `PodMonitor`, the same applies, except that it picks up
513
510
Kubernetes pods that match on labels, namespaces, and named ports.
514
511
515
512
{{% /alert %}}
513
+
514
+ [PodMonitor] :
515
+ https://prometheus-operator.dev/docs/developer/getting-started/#using-podmonitors
0 commit comments