StackState curated integration
The Google Analytics StackPack contains everything you need to import metrics from Google Analytics into StackState. The StackPack supports both the Google Analytics Core Reporting and Real Time Reporting APIs.
NOTE: The Google Analytics StackPack is compatible with version 3 of the Google Analytics reporting API.
Configuration of the Google Analytics integration is different for the Core Reporting and Real Time Reporting APIs.
The integration determines the API to use based on the metric name. If the metric has the prefix
rt:it is considered a real-time metric for which the Real Time Reporting API will be used. If the metric does not have this prefix, the Core Reporting API is used.
Multiple instances can be configured in the YAML file to facilitate multiple metric streams.
The global configuration is defined in the
To enable the Google Analytics integration:
conf.d/google_analytics.yamlfile in your agent configuration directory.
To publish the configuration changes, restart the StackState Agent(s) using below command.
sudo /etc/init.d/stackstate-agent restart
Once the Agent is restarted, wait for the Agent to collect the data and send it to StackState.