Configure Cloud Monitoring inputs for the Splunk Add-on for Google Cloud Platform¶
Configure Cloud Monitoring inputs for Splunk Add-on for Google Cloud Platform using Splunk Web or via configuration file. Use the information in the inputs parameters table below in order to send your events and metrics to a Splunk platform event index.
Configure Cloud Monitoring inputs using the Splunk Web¶
- Click Create New Input in the Inputs tab, and then choose Cloud Monitoring.
- Enter the Name, Credentials, Project, Monitored Projects, Cloud Monitor Metrics, Interval, Start Time and Index using the information in the inputs parameter table.
Do not go to the Splunk Add-on for Google Cloud Platform configuration page under Settings > Data Inputs to configure Google Cloud Platform inputs. This page is not supported for this type of input.
Configure Cloud Monitoring inputs using configuration file¶
- Create a file named
google_cloud_monitor_inputs.conf
under$SPLUNK_HOME/etc/apps/Splunk_TA_google-cloudplatform/local
. -
Create stanzas using the following template (Use the
google_cloud_monitor_inputs.conf.spec
file in$SPLUNK_HOME/etc/apps/Splunk_TA_google-cloudplatform/README
for reference).[<name>] google_credentials_name = <value> google_project = <value> google_monitored_projects = <value> google_metrics = <value> polling_interval = <value> oldest = <value> index = <value>
Restart your Splunk platform after making changes to configuration (.conf) files.
Input Parameters¶
Each attribute in the following table corresponds to a field in Splunk Web.
Attribute | Corresponding field in Splunk Web | Description |
---|---|---|
name |
Name | Enter a unique name of the Google Cloud Monitoring input |
google_credentials_name |
Credentials | The stanza name defined in google_cloud_credentials.conf |
google_project |
Project | Google project ID |
google_metrics |
Cloud Monitor Metrics | Google cloud monitor metrics. You can add several google metrics separated by “,”. You can set it to .* to add all the metrics. |
google_monitored_projects |
Monitored Projects | Google Cloud Platform monitored projects. You can add several Google Cloud monitored projects, separated by commas (, ), and you can set it to All, in order to add all the monitored projects. |
polling_interval |
Interval | Data collection interval in seconds. The default is 300 seconds. |
oldest |
Start Date Time | The add-on starts collecting data with a date later than this time. The format is YYYY-DD-MMThh:mm:ss . For example 2016-07-15T09:00:00 . |
index |
Index | The index in which to store Google Cloud Monitoring data. |