Hello,
I'm trying to do two things with Excel Reports - the first is run a report with all of the report types included that are shown in the sample config file:
"types":["host", "storage","arcgis_portal", "arcgis_server", "service", "database" ]
and the second thing is create a report where the 'past_days' property is greater than 1.
1. When I run a one-day report containing the 'database' report type I get the following error:
2023-08-04 11:14:38.135867 service,Requests Received,svcReqReceived
2023-08-04 11:14:55.606575 service,Requests Timed Out,svcReqTimedOut
2023-08-04 11:15:03.372986 database
'database'
Traceback (most recent call last):
File "ExcelReport.py", line 11, in main
File "modules\report_builder.py", line 24, in __init__
File "modules\Wkb\wkb_builder.py", line 26, in __init__
File "modules\Wkb\wkb_builder.py", line 99, in _add_component_wks
File "modules\Wks_data\wks_database_specs.py", line 5, in __init__
File "modules\Wks_data\wks_database_specs.py", line 26, in _get_data
KeyError: 'database'
None
Traceback (most recent call last):
File "ExcelReport.py", line 11, in main
File "modules\report_builder.py", line 24, in __init__
File "modules\Wkb\wkb_builder.py", line 26, in __init__
File "modules\Wkb\wkb_builder.py", line 99, in _add_component_wks
File "modules\Wks_data\wks_database_specs.py", line 5, in __init__
File "modules\Wks_data\wks_database_specs.py", line 26, in _get_data
KeyError: 'database'
If I leave out the 'database' report type it completes successfully. I have a database component registered in Monitor which has been generating information for over a month. I did notice that there are no alerts configured for the database item, but I have 'alerting_on_only' set to false. I tried to enable an alert and run it again just in case but got the same result.
2. When I change 'past_days' to 2 or more (while still omitting the 'database' report type) I get the following error:
2023-08-04 11:45:21.551494 service
2023-08-04 11:45:27.713157 service,Instances Saturation Percent,svcInstSat
2023-08-04 11:47:10.823713 service,Instances Used Avg,svcInstancesUsedAvg
2023-08-04 11:48:53.793066 service,Request Rate,svcRequestRate
'features'
Traceback (most recent call last):
File "ExcelReport.py", line 11, in main
File "modules\report_builder.py", line 24, in __init__
File "modules\Wkb\wkb_builder.py", line 36, in __init__
File "modules\AGM_API\collection.py", line 154, in metric_stats_by_name
KeyError: 'features'
None
Traceback (most recent call last):
File "ExcelReport.py", line 11, in main
File "modules\report_builder.py", line 24, in __init__
File "modules\Wkb\wkb_builder.py", line 36, in __init__
File "modules\AGM_API\collection.py", line 154, in metric_stats_by_name
KeyError: 'features'
It's the same no matter what value I enter for 'past_days'.
Thanks for any assistance you can provide.
Chris