Generating Stability Reports
To analyze the stability of your CloudBlue Commerce installation and its infrastructure, you can use the report-incidents.py script to generate stability reports that contain alerts fired over a period of time. A stability report is a CSV file like this:
The current version of the script supports:
-
Platform stability reports: These contain platform-specific alerts.
-
Infrastructure stability reports: These contain infrastructure-specific alerts.
To obtain that script, please contact your Technical Account Manager (TAM).
The table contains the script parameters.
| Parameter | Description |
|---|---|
| --server | The URL of Prometheus |
| --step |
The step, or resolution, of a report in seconds (120 is the default value) |
| --fromdate | The start date of a report in the YYYY-MM-DD format |
| --todate | The end date of a report in the YYYY-MM-DD format |
| --type |
The type of report:
|
| --minduration | The minimum duration of alerts in seconds (300 is the default value). Alerts whose duration is less than minduration are skipped. |
| --filename |
The file name for a report Note: Do not specify any file extension. |
| -h or --help | When specified, the script prints its parameters and their short description. |
For instance, you can run that script in the following way:
python report-incidents.py --server https://prometheus.example.com --fromdate $(date --date "7 days ago" +%F) --todate $(date --date "now" +%F) --type platform --filename stability-report-platform