The HCP Monitor service provides data to optimize resources and their utilization by setting up alarms and alerts based on the policy created for any subscription.
Enable Monitoring
Go to Customer Management → Customers → Select Subscription → Select Settings → Enable and Save Changes to start monitoring
Once monitoring has been enabled its goes through different stages before sending monitoring statistics
Status
UI Description
Remark
Ready/Waiting
Monitoring is initiated.
The request for the monitoring to be enabled against a subscription has been made its either Pending to be received at monitor service or is under process of registration.
Monitoring
Monitoring is enabled successfully.
Monitoring has started successfully at monitor service and data received is being checked against the policy attached(If present) to send the violations/alerts to the HCP.
STOPPED
Monitoring is disabled successfully.
Monitoring has been successfully disabled at the monitor service.
ERRORS
Failed to process monitoring request.
There is some fault occurred while monitoring or it failed to to get the usage data for the current cycle and will try again in next cycle(1 hour period)
It's recommended user should wait at least an hour to check back on the monitoring status if automatically resolved else user can contact HCP support for assistance.
Enabled Monitoring: When HCP starts to receive monitoring alerts
Once monitor has been enabled successfully for the subscription selected
Go to Customer Management →Dashboard → Alerts(Right panel)
Alerts notification on the right panel will start appearing for the subscriptions which have met the violation and crossed the required threshold values.
To get alerts for the monitored subscription user will need to define policy.
(See section Policy Management )
Policy Management:
Go to GovSec →Compliance and Security→ Policy Management → Click New Policy
Add Policy Details:
Specify Rules:
Basic rule signature will define the percent increase against which the policy is checked and the interval within which this happens.
Example:
Rule Signature
Description
Rule Type
CSP COST EXCEEDS X PERCENT
Rule to check the if the cost for the target resources under suscription exceed by given percent.
Budget
CSP COST EXCEEDS X IN Y INTERVAL
Defined Interval within which we require for the given cost check to happen.
Budget
Add Rule Settings: As defined by the Rule Signature(s) selected
Alert Settings:
Review and Submit:
User can always go back to previous rule setting window and review before finally submitting the rule.
Rules once set can be updated and monitoring will start as per the new settings.