-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
73 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
## Prometheus Integration | ||
|
||
The Coralogix Operator integrates with [Prometheus Operator](https://prometheus-operator.dev/) CRDs, like PrometheusRule and AlertmanagerConfig, | ||
ensuring the smoothest possible integration from existing monitoring setups. | ||
The operator watches for PrometheusRule and AlertmanagerConfig resources and based on their configuration | ||
creates Coralogix custom resources in the cluster, such as Metric Alerts, RecordingRuleGroupSets and OutboundWebhooks. | ||
|
||
### PrometheusRule Integration | ||
- **Alerts:** Prometheus alerts can be used to create Coralogix Metric Alerts. | ||
In order to have PrometheusRule's alerts watched by the operator, add the following annotation to the PrometheusRule: | ||
```yaml | ||
app.coralogix.com/track-alerting-rules: "true" | ||
``` | ||
The operator will create a Coralogix Metric Alert for each alert in the PrometheusRule. | ||
**Note:** Only certain Coralogix Metric Alert features can be configured in a Prometheus alert, since the Prometheus' alerting system is less comprehensive than Coralogix's. | ||
In order to enjoy the full capabilities of Coralogix Metric Alerts, it is recommended to use this integration for a quick start, | ||
and afterwards to manage the alerts directly from the Coralogix Alert custom resource. | ||
The operator will not overwrite Coralogix Alert properties that are not supported in Prometheus alerts. | ||
- **Recording Rules:** Prometheus recording rules can be used to create Coralogix RecordingRuleGroupSets. | ||
In order to have PrometheusRule's recording rules watched by the operator, add the following annotation to the PrometheusRule: | ||
```yaml | ||
app.coralogix.com/track-recording-rules: "true" | ||
``` | ||
The operator will create a Coralogix RecordingRuleGroupSet containing the recording rules, for each group in the PrometheusRule. | ||
### AlertmanagerConfig Integration | ||
- **Receivers:** AlertmanagerConfig's receivers can be used to create Coralogix OutboundWebhooks. | ||
In order to have AlertmanagerConfig's receivers watched by the operator, add the following annotation to the AlertmanagerConfig: | ||
```yaml | ||
app.coralogix.com/track-alertmanager-config: "true" | ||
``` | ||
The operator will create a Coralogix OutboundWebhook for each receiver in the AlertmanagerConfig. | ||
### Combine PrometheusRule and AlertmanagerConfig configurations | ||
The operator can link OutboundWebhooks that were created from an AlertmanagerConfig to Metric Alerts that were created from a PrometheusRule, | ||
based on the routes defined in the AlertmanagerConfig. | ||
Those routes are used by the operator to add Notification Groups to the Alerts, containing the OutboundWebhook. | ||
In order to use this functionality, add the following annotation to the PrometheusRule: | ||
```yaml | ||
app.coralogix.com/managed-by-alertmanger-config: "true" | ||
``` |