Add the following settings to the FEPClusterCR and deploy it.
spec.fep.externalMonitoring.cloudWatch: Definition for forwarding metrics
spec.fep.externalMonitoring.cloudWatch.authentication: Definition for authentication information to CloudWatch
Example of FEPClusterCR definition
spec:
fep:
externalMonitoring:
cloudWatch:
enable: true
schedule: "0-59/10 * * * *"
namespace:FEP_METRICS
customMetrics:
- config-map-query
authentication:
cloudWatchCredentials: my-aws-credentials
cloudWatchConfig: my-aws-config
If spec.fep.externalMonitoring.cloudWatch.enable is true, FEP metrics are forwarded to CloudWatch as defined by spec.fep.externalMonitoring.cloudWatch.schedule.
This feature collects and transfers metrics from all FEPCluster Pods. When transferring metrics, the dimension name is specified as instance, and the value is specified as <kubernetesNamespace>-<FEP Pod name>. If you want to define additional dimensions, specify the dimensionName and dimensionValue under spec.fep.externalMonitoring.cloudWatch.
For information about the parameters under spec.fep.externalMonitoring, refer to "FEPCluster Parameter" in the Reference.