You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/website/content/docs/enterprise/automated-license-reporting...

136 lines
6.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
layout: docs
page_title: Automated license utilization reporting
description: >-
Learn what data HashiCorp collects to meter Enterprise license utilization. Enable or disable reporting. Review sample payloads and logs.
---
# Automated license utilization reporting
Automated license utilization reporting sends license utilization data to HashiCorp without requiring you to manually collect and report them. It also lets you review your license usage with the monitoring solution you already use (for example Splunk, Datadog, or others) so you can optimize and manage your deployments. Use these reports to understand how much more you can deploy under your current contract, protect against overutilization, and budget for predicted consumption.
Automated reporting shares the minimum data required to validate license utilization as defined in our contracts. They consist of mostly computed metrics and will 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. The reporting process is GDPR compliant and submits reports roughly once every 24 hours.
## Enable automated reporting
To enable automated reporting, you need to make sure that outbound network traffic is configured correctly and [upgrade](#2-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.
### 1. 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:
- 100.20.70.12
- 35.166.5.222
- 23.95.85.111
- 44.215.244.1
### 2. Upgrade
Upgrade to a release that supports license utilization reporting. These releases include: Release 0.13.0 and later.
### 3. 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.
The records are sent as system events.
You can use [`file sync`](/boundary/docs/configuration/events/file) to configure a file where Boundary logs events.
```json
{
"id": "ZWqRK7XlnN",
"source": "https://hashicorp.com/boundary/Test_InitSysEventer",
"specversion": "1.0",
"type": "system",
"data": {
"version": "v0.1",
"op": "census.(censusJob).Run",
"data": {
"msg": "the following snapshot has been generated {\"snapshot_version\":1,\"id\":{\"ULID\":\"0001J50MM0QGR5KN21FVGYJVP9\",\"Timestamp\":\"2023-05-02T00:00:00Z\"},\"schema_version\":\"1.0.0\",\"service\":\"boundary\",\"process_id\":\"01H2B2KY823KYPVAVC02V65TZV\",\"metrics\":{\"boundary.sessions\":{\"key\":\"boundary.sessions\",\"value\":2,\"kind\":\"counter\",\"mode\":\"write\",\"description\":\"Number of pending sessions from previous day\"}}}"
}
},
"datacontentype": "application/cloudevents",
"time": "2023-06-07T10:01:53.158933-04:00"
}
```
If your installation is air-gapped or your network doesnt allow the correct egress, logs will show an error.
```json
{
"id": "VQyF5VzbTT",
"source": "https://hashicorp.com/boundary/Test_InitSysEventer",
"specversion": "1.0",
"type": "error",
"data": {
"error": "census.(censusJob).Run: unable to export snapshot through agent: unknown: error #0",
"error_fields": {
"Code": 0,
"Msg": "unable to export snapshot through agent",
"Op": "census.(censusJob).Run",
"Wrapped": null
},
"id": "e_BgPs9hUMxw",
"version": "v0.1",
"op": "census.(censusJob).Run"
},
"datacontentype": "application/cloudevents",
"time": "2023-06-07T10:21:48.221494-04:00"
}
```
In this case, reconfigure your network to allow egress and check back in roughly 24 hours.
## Opt out
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 youre worried about the data, we strongly recommend that you review the [example payloads](#example-payloads) before opting out. If you have concerns with any of the automatically-reported data please bring them to your account manager.
You have two options to opt out of automated reporting:
HCL configuration (recommended)
Environment variable (requires restart)
Opting out in your products configuration file doesnt require a system restart, and is the method we recommend. Add the following block to your `configuration.hcl` file.
```hcl
reporting {
license {
enabled = false
}
}
```
If you need to, you can also opt out using an environment variable, which will provide a startup message confirming that you have disabled automated reporting. This option requires a system restart.
Set the following environment variable.
```
$ export OPTOUT_LICENSE_REPORTING=true
```
Now restart your system.
Check your product logs roughly 24 hours after opting out to make sure that the system isnt trying to send reports.
If your configuration file and environment variable differ, the environment variable setting will take precedence.
## Example payloads
HashiCorp collects the following utilization data as JSON payloads:
`exporter_version` - The version of the licensing exporter
```json
"metrics": {
"boundary.sessions": {
"key": "boundary.sessions",
"kind": "counter",
"mode": "write",
"value": 33
}
}
```
Product payload description:
- Sessions - Sessions is queried from the Boundary store, counts over the last X days