From 12c91192ec822ecde91a0e6cdd7761bdbfec27a9 Mon Sep 17 00:00:00 2001
From: Filip Petkovski Packages:
- Package v1alpha1 contains API Schema definitions for the io v1alpha1 API group Package v1alpha1 contains API Schema definitions for the dashboards v1alpha1 API group
-alerts.newrelic.io/v1alpha1
+dashboards.newrelic.io/v1alpha1
(Appears on: -EmailNotificationChannel, -OpsgenieNotificationChannel, -SlackNotificationChannel) +Data)
+
Apm is the set of metric parameters used for defining the data to plot in the widget
-status
+sinceSeconds
-
-NotificationChannelStatus
-
+int
|
+ The time frame in seconds |
-
AlertPolicy is the Schema for the newrelicalertpolicies API
- -Field | -Description | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-metadata
+entities
-
-Kubernetes meta/v1.ObjectMeta
-
+[]string
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+A list of application names for which to get the metric |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-spec
+metrics
-
-AlertPolicySpec
+
+[]Metric
|
- - -
Dashboard +++ DashboardBody is the Schema for the dashboards API + +
AlertPolicySpec
+ |
+
- The incident preference defines when incident should be created. A list of widgets to add to the dashboard |
+
+
+(Appears on: +Widget) +
++
Data represents the data to plot inside the widget.
+Exactly one of Source, Nrql or ApmMetric should be specified.
+
+Leave all fields empty if you want to plot the application breakdown data,
+also present in the main widget that comes with the default application dashboard.
+For more information refer to the official New Relic documentation
Field | +Description | +
---|---|
-apmConditions
+source
-
-[]ApmCondition
-
+string
|
optional
- A list of APM alert conditions to attach to the policy +The text shown on the widget. Use in conjunction with visualization: markdown |
-nrqlConditions
+nrql
-
-[]NrqlCondition
-
+string
|
optional
- A list of NRQL alert conditions to attach to the policy +The NRQL query used which defines the data to plot in the widget |
-infraConditions
+apm
-
-[]InfraCondition
+
+Apm
|
optional
- A list of Infrastructure alert conditions to attach to the policy +The APM metric parameters which defines the data to plot in the widget. |
(Appears on: -AlertPolicySpec) +Apm)
+
Metric is the name of the metric as shown in Data Explorer
- The name of the alert condition that will be created in New Relic +Name of the metric |
|
-type
+values
-string
+[]string
|
- The type of the metric to monitor. Should be one of: List of metric values to plot. The available values will depend on the metric you choose. |
+(Appears on: +DashboardSpec) +
++
Widget defines the widget parameters
+For more details, refer to the official New Relic documentation
-enabled
-
-bool
-
- |
-
-optional
- default: true - |
+Field | +Description |
---|---|---|---|
-conditionScope
+title
string
|
-optional
+ The title of the widget created in New Relic |
||
-entities
+visualization
-[]string
+string
|
- A list of application names from APM to monitor - |
-||
-violationCloseTimer
-
-int
-
- |
--optional - | -||
-runbookUrl
-
-string
-
- |
-
-optional
+ Visualization type to use for the widget. |
||
-metric
+notes
string
|
- The APM metric to monitor. Different metrics can be applied depending on the condition type. |
-||
-alertThreshold
-
-
-Threshold
-
-
- |
-
- Once the alertThreshold is breached, a critical incident will be generated +Notes to add to the widget |
||
-warningThreshold
+data
-
-Threshold
+
+Data
|
-optional
- Once the warningThreshold is breached, a warning will be generated +The data to plot on the widget |
||
-userDefined
+layout
-
-UserDefined
-
+github.com/personio/newrelic-alert-manager/pkg/dashboards/domain/widget.Layout
|
-optional
- Used for tracking a user defined custom metric Defines the layout of the widget within the dashboard |
+
Package v1alpha1 contains API Schema definitions for the io v1alpha1 API group
--
EmailNotificationChannel is the Schema for the EmailNotificationChannels API
+(Appears on: +EmailNotificationChannel, +OpsgenieNotificationChannel, +SlackNotificationChannel) + +
+ | + + +
-(Members of AbstractNotificationChannel
are embedded into this type.)
+
AlertPolicy is the Schema for the newrelicalertpolicies API
-Field | +Description | |
---|---|---|
metadata
@@ -468,8 +490,8 @@ Refer to the Kubernetes API documentation for the fields of the
|
spec
-
-EmailNotificationChannelSpec
+
+AlertPolicySpec
|
@@ -485,57 +507,92 @@ string
- The name of the notification channel created in New Relic +The name of the alert policy that will be created in New Relic |
-recipients
+incident_preference
string
|
- A comma-separated value of emails +The incident preference defines when incident should be created. |
|
-includeJsonAttachment
+apmConditions
-bool
+
+[]ApmCondition
+
|
optional
- default: false -Include JSON attachment with the notification +A list of APM alert conditions to attach to the policy |
|
-policySelector
+nrqlConditions
-k8s.io/apimachinery/pkg/labels.Set
+
+[]NrqlCondition
+
|
- A label selector defining the alert policies covered by the notification channel +optional +A list of NRQL alert conditions to attach to the policy + |
+|
+infraConditions
+
+
+[]InfraCondition
+
+
+ |
+
+optional
+ A list of Infrastructure alert conditions to attach to the policy |
status
+
+
+Status
+
+
+(Appears on: -EmailNotificationChannel) +AlertPolicy)
-
EmailNotificationChannelSpec defines the desired state of EmailNotificationChannel
+AlertPolicySpec defines the desired state of AlertPolicy. +Detailed parameter description can be found on the official New Relic documentation
- The name of the notification channel created in New Relic +The name of the alert policy that will be created in New Relic |
|
-recipients
+incident_preference
string
|
- A comma-separated value of emails +The incident preference defines when incident should be created. |
-includeJsonAttachment
+apmConditions
-bool
+
+[]ApmCondition
+
|
optional
- default: false -Include JSON attachment with the notification +A list of APM alert conditions to attach to the policy |
-policySelector
+nrqlConditions
-k8s.io/apimachinery/pkg/labels.Set
+
+[]NrqlCondition
+
|
- A label selector defining the alert policies covered by the notification channel +optional +A list of NRQL alert conditions to attach to the policy + |
+
+infraConditions
+
+
+[]InfraCondition
+
+
+ |
+
+optional
+ A list of Infrastructure alert conditions to attach to the policy |
(Appears on: -NrqlCondition) +AlertPolicySpec)
@@ -611,92 +690,107 @@ k8s.io/apimachinery/pkg/labels.Set
expirationDurationSeconds
+name
-int
+string
How long to wait, in seconds, after the last data point is received by our platform before considering the signal as lost. -For more information, please refer to the official New Relic documentation
+The name of the alert condition that will be created in New Relic
openViolationOnExpiration
+type
+
+string
+
+The type of the metric to monitor. Should be one of:
+- apm_app_metric
+- apm_kt_metric
+- apm_jvm_metric
+- browser_metric
+- mobile_metric
+Please refer to the Alerts conditions section in the New Relic documentation for more details
enabled
bool
When true, this closes all currently open violations when no signal is heard within the expiration_duration time. -For more information, please refer to the official New Relic documentation
+default: true
closeViolationsOnExpiration
+conditionScope
-bool
+string
When true, this opens a loss of signal violation when no signal within the expiration_duration time. -For more information, please refer to the official New Relic documentation
-(Appears on: -AlertPolicySpec) -
--
-Field | -Description | +
+entities
+
+[]string
+
+ |
+
+ A list of application names from APM to monitor + |
+
---|---|---|---|
+violationCloseTimer
+
+int
+
+ |
++optional + | ||
-name
+runbookUrl
string
|
- The name of the infra condition that will be created in New Relic +optional |
||
-comparison
+metric
string
|
- Available options are: The APM metric to monitor. Different metrics can be applied depending on the condition type. |
||
alertThreshold
-
-InfraThreshold
+
+Threshold
|
@@ -708,8 +802,8 @@ InfraThreshold
warningThreshold
-
-InfraThreshold
+
+Threshold
|
@@ -720,97 +814,139 @@ InfraThreshold
||
-enabled
+userDefined
-bool
+
+UserDefined
+
|
optional
- default: true +Used for tracking a user defined custom metric |
+
++
EmailNotificationChannel is the Schema for the EmailNotificationChannels API
+ +Field | +Description | +||||||||
---|---|---|---|---|---|---|---|---|---|
-eventType
+AbstractNotificationChannel
-string
+
+AbstractNotificationChannel
+
|
-optional
- Leave this parameter empty when creating conditions based on data from an integration provider
-For more information, please refer to the
+(Members of |
||||||||
-integrationProvider
+metadata
-string
+
+Kubernetes meta/v1.ObjectMeta
+
|
- When setting up alerts on integrations, specify the corresponding integration provider. metadata field.
|
||||||||
-runbookUrl
+spec
+
+
+EmailNotificationChannelSpec
+
+
+ |
+
+ + +
|
(Appears on: -InfraCondition) +EmailNotificationChannel)
+
EmailNotificationChannelSpec defines the desired state of EmailNotificationChannel
-timeFunction
+name
string
|
- Defines when the threshold should be considered as breached. The name of the notification channel created in New Relic |
-value
+recipients
-int
+string
|
+ A comma-separated value of emails |
-durationMinutes
+includeJsonAttachment
-int
+bool
|
- For how long the violation should be active before an incident is triggered +optional +default: false +Include JSON attachment with the notification + |
+
+policySelector
+
+k8s.io/apimachinery/pkg/labels.Set
+
+ |
+
+ A label selector defining the alert policies covered by the notification channel |
-
-(Appears on: -AbstractNotificationChannel) +NrqlCondition)
-
NotificationChannelStatus defines the observed state of NotificationChannel
-Status
+expirationDurationSeconds
-
-Status
-
+int
|
-
-(Members of How long to wait, in seconds, after the last data point is received by our platform before considering the signal as lost. +For more information, please refer to the official New Relic documentation |
-newrelicConfigVersion
+openViolationOnExpiration
-string
+bool
+
+ |
+
+optional
+ When true, this closes all currently open violations when no signal is heard within the expiration_duration time. +For more information, please refer to the official New Relic documentation + |
+
+closeViolationsOnExpiration
+
+bool
|
+optional
+ When true, this opens a loss of signal violation when no signal within the expiration_duration time. +For more information, please refer to the official New Relic documentation |
(Appears on: @@ -929,64 +1085,29 @@ string
The name of the nrql policy that will be created in New Relic
-enabled
-
-bool
-
-default: true
-query
-
-string
-
-The NRQL query associated with the condition
-sinceMinutes
-
-int
-
-Defines the SINCE
clause in the NRQL query
The name of the infra condition that will be created in New Relic
valueFunction
+comparison
string
Available options are:
-- single_value
-- sum
-For more information, please refer to the official New Relic documentation
above
below
equal
alertThreshold
-
-Threshold
+
+InfraThreshold
warningThreshold
-
-Threshold
+
+InfraThreshold
runbookUrl
+enabled
-string
+bool
default: true
signal
+eventType
-
-Signal
-
+string
Used to specify signal properties for missing data
+Leave this parameter empty when creating conditions based on data from an integration provider
+For more information, please refer to the event_type
field in the official New Relic documentation
expiration
+integrationProvider
-
-Expiration
-
+string
Used to define actions on signal expiration
+When setting up alerts on integrations, specify the corresponding integration provider.
+Examples can include SqsQueue, Kubernetes, RdsDbInstance etc.
+For more information, please refer to the integration_provider
field in the official New Relic documentation
-
NotificationChannel is the Schema for the OpsgenieNotificationChannels API
- -Field | -Description | -||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-AbstractNotificationChannel
+runbookUrl
-
-AbstractNotificationChannel
-
+string
|
-
-(Members of |
||||||||||||||||
-metadata
+selectValue
-
-Kubernetes meta/v1.ObjectMeta
-
+string
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+The attribute name from the Event sample or Integration provider which identifies the metric to be tracked.
+Examples for Sqs include |
||||||||||||||||
-spec
+violationCloseTimer
-
-OpsgenieNotificationChannelSpec
-
+int
|
- - -
InfraThreshold +++(Appears on: +InfraCondition) + ++ +
NotificationChannel +++ +NotificationChannelStatus +++(Appears on: +AbstractNotificationChannel) + ++ NotificationChannelStatus defines the observed state of NotificationChannel + +
|
(Appears on: -OpsgenieNotificationChannel) +AlertPolicySpec)
-
OpsgenieNotificationChannelSpec defines the desired state of NotificationChannel
- The name of the notification channel created in New Relic +The name of the nrql policy that will be created in New Relic |
|
-api_key
+enabled
-string
+bool
|
optional
- The Opsgenie API Key. -If left empty, the default API key specified when deploying the operator will be used +default: true |
-teams
+query
-[]string
+string
|
-optional
- A list of teams +The NRQL query associated with the condition |
-tags
+sinceMinutes
-[]string
+int
|
optional
- A list of tags +Defines the |
-recipients
+valueFunction
-[]string
+string
|
-optional
- A comma-separated value of emails +Available options are: |
-policySelector
+alertThreshold
-k8s.io/apimachinery/pkg/labels.Set
+
+Threshold
+
|
- A label selector defining the alert policies covered by the notification channel +Once the alertThreshold is breached, a critical incident will be generated |
-(Appears on: -NrqlCondition) -
--
-Field | -Description | -
---|---|
-aggregationWindowSeconds
+warningThreshold
-int
+
+Threshold
+
|
optional
- Please refer to the official New Relic documentation +Once the warningThreshold is breached, a warning will be generated |
-evaluationOffset
+runbookUrl
-int
+string
|
optional
- The offset is how long we wait for late data before evaluating each aggregation window -For additional information, please refer to the official New Relic documentation |
-fillOption
+signal
-string
+
+Signal
+
|
optional
- For sporadic data, you can avoid false alerts by filling the gaps (empty windows) with synthetic data. The default is None. -For additional information, please refer to the official New Relic documentation +Used to specify signal properties for missing data |
-fillValue
+expiration
-string
+
+Expiration
+
|
optional
- This is the value used by the fill_option custom value. The default is 0. -For additional information, please refer to the official New Relic documentation +Used to define actions on signal expiration |
-
NotificationChannel is the Schema for the slacknotificationchannels API
+NotificationChannel is the Schema for the OpsgenieNotificationChannels API
spec
-
-SlackNotificationChannelSpec
+
+OpsgenieNotificationChannelSpec
|
@@ -1407,94 +1528,51 @@ string
|
-url
+api_key
string
|
optional
- The Slack webhook URL. -If left empty, the default URL specified when deploying the operator will be used - |
-
-channel
-
-string
-
- |
-
- Name of the Slack channel. Should start with |
-
-policySelector
-
-k8s.io/apimachinery/pkg/labels.Set
-
- |
-
- A label selector defining the alert policies covered by the notification channel - |
-
The Opsgenie API Key. +If left empty, the default API key specified when deploying the operator will be used
- - --(Appears on: -SlackNotificationChannel) -
--
SlackNotificationChannelSpec defines the desired state of NotificationChannel
- -Field | -Description | -
---|---|
-name
+teams
-string
+[]string
|
- The name of the notification channel created in New Relic +optional +A list of teams |
-url
+tags
-string
+[]string
|
optional
- The Slack webhook URL. -If left empty, the default URL specified when deploying the operator will be used +A list of tags |
-channel
+recipients
-string
+[]string
|
- Name of the Slack channel. Should start with A comma-separated value of emails |
(Appears on: -ApmCondition, -NrqlCondition) +OpsgenieNotificationChannel)
+
OpsgenieNotificationChannelSpec defines the desired state of NotificationChannel
-timeFunction
-
-string
-
- |
-
- Defines when the threshold should be considered as breached. |
-
-operator
-
-string
-
- |
-
- Available options are: |
-
-value
+name
string
|
+ The name of the notification channel created in New Relic |
-durationMinutes
-
-int
-
- |
-
- For how long the violation should be active before an incident is triggered |
-
-(Appears on: -ApmCondition) -
--
-Field | -Description | -
---|---|
-metric
+api_key
string
|
- The name of the user defined custom metric +optional +The Opsgenie API Key. +If left empty, the default API key specified when deploying the operator will be used |
-value_function
+teams
-string
+[]string
|
- Available options are: A list of teams |
-
Package v1alpha1 contains API Schema definitions for the dashboards v1alpha1 API group
- -Resource Types: --(Appears on: -AlertPolicy, -Dashboard, -NotificationChannelStatus) -
--
Status defines the observed state of a New Relic resource
- -Field | -Description | -
---|---|
-status
+tags
-string
+[]string
|
- The value will be set to A list of tags |
-reason
+recipients
-string
+[]string
|
- When a policy fails to be created, the value will be set to the error message received from New Relic +optional +A comma-separated value of emails |
-newrelicId
+policySelector
-int64
+k8s.io/apimachinery/pkg/labels.Set
|
- The resource id in New Relic +A label selector defining the alert policies covered by the notification channel |
-
Package v1alpha1 contains API Schema definitions for the dashboards v1alpha1 API group
- -Resource Types: -(Appears on: -Data) +NrqlCondition)
-
Apm is the set of metric parameters used for defining the data to plot in the widget
-sinceSeconds
+aggregationWindowSeconds
int
|
- The time frame in seconds - |
-
-entities
-
-[]string
-
- |
-
- A list of application names for which to get the metric +optional +Please refer to the official New Relic documentation |
-metrics
+evaluationOffset
-
-[]Metric
-
+int
|
- A list of metrics to use +optional +The offset is how long we wait for late data before evaluating each aggregation window +For additional information, please refer to the official New Relic documentation |
-facet
+fillOption
string
|
optional
+ For sporadic data, you can avoid false alerts by filling the gaps (empty windows) with synthetic data. The default is None. +For additional information, please refer to the official New Relic documentation |
-order_by
+fillValue
string
|
optional
+ This is the value used by the fill_option custom value. The default is 0. +For additional information, please refer to the official New Relic documentation |
-
DashboardBody is the Schema for the dashboards API
+NotificationChannel is the Schema for the slacknotificationchannels API
+AbstractNotificationChannel
+
+
+AbstractNotificationChannel
+
+
+ |
+
+
+(Members of |
+||||||||
metadata
@@ -1801,8 +1796,8 @@ Refer to the Kubernetes API documentation for the fields of the
|
@@ -1812,53 +1807,63 @@ DashboardSpec
spec
-
-DashboardSpec
+
+SlackNotificationChannelSpec
+ |
+channel
+
+string
+
+
+ |
Name of the Slack channel. Should start with
- |
status
+policySelector
-
-Status
-
+k8s.io/apimachinery/pkg/labels.Set
+ |
+A label selector defining the alert policies covered by the notification channel + |
(Appears on: -Dashboard) +SlackNotificationChannel)
-
DashboardSpec defines the desired state of DashboardBody
+SlackNotificationChannelSpec defines the desired state of NotificationChannel
-title
+name
string
|
- The name of the dashboard that will be created in New Relic +The name of the notification channel created in New Relic |
-widgets
+url
-
-[]Widget
-
+string
|
- A list of widgets to add to the dashboard +optional +The Slack webhook URL. +If left empty, the default URL specified when deploying the operator will be used + |
+
+channel
+
+string
+
+ |
+
+ Name of the Slack channel. Should start with |
+
+policySelector
+
+k8s.io/apimachinery/pkg/labels.Set
+
+ |
+
+ A label selector defining the alert policies covered by the notification channel |
(Appears on: -Widget) +ApmCondition, +NrqlCondition)
-
Data represents the data to plot inside the widget.
-Exactly one of Source, Nrql or ApmMetric should be specified.
-
-Leave all fields empty if you want to plot the application breakdown data,
-also present in the main widget that comes with the default application dashboard.
-For more information refer to the official New Relic documentation
-nrql
+operator
string
|
-optional
- The NRQL query used which defines the data to plot in the widget +Available options are: |
-apm
+value
-
-Apm
-
+string
|
-optional
- The APM metric parameters which defines the data to plot in the widget. |
+
+durationMinutes
+
+int
+
+ |
+
+ For how long the violation should be active before an incident is triggered |
(Appears on: -Apm) +ApmCondition)
-
Metric is the name of the metric as shown in Data Explorer
-name
+metric
string
|
- Name of the metric +The name of the user defined custom metric |
-values
+value_function
-[]string
+string
|
- List of metric values to plot. The available values will depend on the metric you choose. Available options are: |
+
Package v1alpha1 contains API Schema definitions for the dashboards v1alpha1 API group
+ +Resource Types: +(Appears on: -DashboardSpec) +AlertPolicy, +Dashboard, +NotificationChannelStatus)
-
Widget defines the widget parameters
-For more details, refer to the official New Relic documentation
Status defines the observed state of a New Relic resource
- The data to plot on the widget +When a policy fails to be created, the value will be set to the error message received from New Relic |
|
-layout
+newrelicId
-github.com/personio/newrelic-alert-manager/pkg/dashboards/domain/widget.Layout
+int64
|
- Defines the layout of the widget within the dashboard +The resource id in New Relic |