License and product usage reporting
This topic describes how to enable Terraform Enterprise to report license and product usage information to HashiCorp. This topic also outlines how HashiCorp uses license and product data it collects when automated data reporting is enabled. It is enabled by default, but automated license and product utilization data reporting can be disabled separately.
Data reporting privacy
The process is GDPR compliant and consists of mostly computed metrics that never contain personal identifiable information (PII) or other sensitive information. Automated reporting shares the data with HashiCorp using a secure, unidirectional HTTPS API and makes an auditable record in the product logs each time it submits a report.
Enable automated license utilization reporting
When automated license usage reporting is enabled, Terraform sends HashiCorp the minimum data required to validate license usage as defined in our contracts. As a result, you do not have to manually collect and report the usage data.
License usage reports provide the following benefits:
- Insight into how much more you can deploy under your current contract.
- Protection against over-utilization.
- Predictable consumption for budgeting purposes.
Additionally, you can review license usage with your existing monitoring solutions, such as Splunk and Datadog. Monitoring license consumption enables you to optimize and manage your deployments. For instructions on how to forward your license usage data to a monitoring solution, refer to Log Forwarding on Replicated Installs or Log Forwarding on FDO.
To enable automated reporting, you need to make sure that outbound network traffic is configured correctly and upgrade your enterprise product to a version that supports it. If your installation is air-gapped or network settings are not in place, automated reporting will not work.
Allow outbound HTTPS traffic on port 443
Make sure that your network allows HTTPS egress on port 443 from https://reporting.hashicorp.services
by allow-listing the following IP addresses:
Check logs
Automatic license utilization reporting will start sending data within roughly 24 hours. Check the product logs for records that the data sent successfully.
If your installation is air-gapped or your network does not allow the correct egress, logs show the following error:
In this case, reconfigure your network to allow egress and check back in roughly 24 hours.
Opt out of license utilization reporting
If your installation is air-gapped or you want to manually collect and report on the same license utilization metrics, you can opt-out of automated reporting.
Manually reporting these metrics can be time-consuming. Opting out of automated reporting does not mean that you also opt out from sending license utilization metrics. Customers who opt out of automated reporting will still be required to manually collect and send license utilization metrics to HashiCorp.
If you are considering opting out because you’re worried about the data, we strongly recommend that you review the example payloads before opting out. If you have concerns with any of the automatically-reported data please bring them to your account manager.
Add the following environment variable to your deployment configuration TFE_LICENSE_REPORTING_OPT_OUT=TRUE
.
Restart the application and check your product logs roughly 24 hours after opting out to make sure that the system isn’t trying to send reports.
Example payloads
HashiCorp collects the following utilization data as JSON payloads:
payload_version
- The version of this payload schemalicense_id
- The license ID for this productproduct
- The product that this contribution is forproduct_version
- The product version this contribution is forexport_timestamp
- The date and time for this contributionsnapshots
- An array of snapshot details. A snapshot is a structure that represents a single data collection.snapshot_version
- The version of the snapshot package that produced this snapshotsnapshot_id
- A unique identifier for this particular snapshotprocess_id
- An identifier for the system that produced this snapshottimestamp
- The date and time for this snapshotschema_version
- The version of the schema associated with this snapshotservice
- The service that produced this snapshot (likely to be product name)metrics
- A map of representations of snapshot metrics contained within this snapshotkey
- The key name associated with this metricworkspacecount
- Total number of workspaces defined in the TFE instancekind
- The kind of metric (feature, counter, sum, or mean)mode
- The mode of operation associated with this metric (write or collect)value
- The value of the metric at the time the licensing exporter took this snapshot
metadata
- Optional product-specific metadatareplicated_license_id
- The unique ID of the Replicated licensesf_opportunity_id
- The Salesforce Opportunity ID associated with the license
Enable product usage reporting
Terraform Enterprise reports product usage data to HashiCorp in order to guide you through data insights and improve product value, experience, and quality. You can enable and disable product usage reporting separately from license utilization reporting. Reporting is enabled by default.
Allow outbound HTTPS traffic on port 443
Make sure that your network allows egress to https://api.replicated.com
, as described in the network requirements documentation.
Make sure that your network also allows HTTPS egress on port 443 from https://reporting.hashicorp.services
by allow-listing the following IP addresses:
Check logs
Automatic license utilization reporting will start sending data within roughly 24 hours. Check the product logs for records that the data sent successfully.
Terraform Enterprise logs report an error when your installation is air-gapped or when your network does not allow the correct egress.
Opt out of product usage reporting
If your installation is air-gapped or you do not want to report product utilization data to HashiCorp, you can opt out of reporting.
- Add the following environment variable to your deployment configuration
TFE_USAGE_REPORTING_OPT_OUT=TRUE
. - Restart your system.
- Check your product logs roughly 24 hours after opting out to make sure that the system does not send reports.