Troubleshooting Providing Statistics
If your statistic values do not update as expected, check for the following issues:
-
The class, resource, statistic, or event that you are updating is not defined in a JSON file in
/usr/lib/sstore/metadata/json/
. -
The identifier names used in the application that provides the statistic values do not match the names defined in the metadata files.
-
The type of the data specified in the application does not match the data type specified in the metadata files.
-
The statistics store service has not been restarted to read new or changed metadata.
-
The caller of the application does not have the
solaris.sstore.write
authorization and is not the authorized user for write operations on that namespace. -
An identifier that your application attempts to update is already updated by a different application.
A statistic cannot have multiple providers. If one application initializes a statistic and then another application initializes the same statistic while the first application is still actively writing values for those statistics, the second application will receive an error from
sstore_data_attach
(),sstore_data_update
(), orsstore_data_bulk_update
().
Check the application log file for error messages.
If the application is managed by an SMF service, use the svcs -Lv
command to check the log file for that service.
If you attempt to retrieve data values before the event or statistic is initialized, you receive an error message that the identifier is not valid.
If you attempt to retrieve data values after the event or statistic is initialized but before any value has been provided, the identifier is valid but no value is shown.