Skip to content

Commit d043d41

Browse files
committed
[fix] - docs
Signed-off-by: Hélia Barroso <[email protected]>
1 parent c5e5f48 commit d043d41

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Documentation/commands/analyze/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,19 @@ Alertmanager configuration must be provided in one of the following ways:
9191
* As a Kubernetes secret provided by the user, that needs to ensure the data is stored in a file called alertmanager.yaml
9292
* The Operator will provide a default generated Kubernetes secret to use
9393
* Via the AlertmanagerConfig CRDs (Custom Resource Definitions), that should be matched by a Namespace selector in a given namespace, a ConfigSelector or the ConfigSelector Name
94+
95+
## Analyze Prometheus Agent
96+
97+
### Prometheus Agent Existence
98+
99+
The Prometheus Agent object must exist in the Kubernetes cluster, which can be confirmed by checking for the presence of the Prometheus Agent CR (Custom Resource) in the specified namespace and under the given name.
100+
101+
### Prometheus Agent RBAC Rules
102+
103+
The Prometheus Agent server requires proper RBAC (Role-Based Access Control) rules to function correctly. This means the service account associated with the Prometheus Agent must have permissions aligned with the Prometheus Agent CRDs (Custom Resource Definitions) present in the cluster.
104+
105+
Since Prometheus Agent just reads Objects in the Kubernetes API, it requires the get, list, and watch actions. As Prometheus Agent can also be used to scrape metrics from the Kubernetes apiserver, it also requires access to the /metrics/ endpoint of it. In addition to the rules for Prometheus Agent itself, the Prometheus Agent needs to be able to get configmaps to be able to pull in rule files from configmap objects.
106+
107+
### Prometheus Agent Namespace Selectors and Service Selectors
108+
109+
The Prometheus Agent server relies on proper service discovery to function correctly. To achieve this, we must ensure that any defined Namespace Selector corresponds to an existing namespace. Similarly, for Service Selectors, it is crucial that they align with existing resources. Whether using ServiceMonitor, PodMonitor, ScrapeConfig or Probe, the respective Custom Resource (CR) must exist and be properly matched.

0 commit comments

Comments
 (0)