Configuring and running the Agent for usage reporting in air-gapped environments
Configure the agent (deployed as beacon-agent
) to allow it to gather basic usage data from the source database and prepare a usage report. Then, manually send the usage report to EDB.
Preparation
Change to the OS user you previously created to perform the agent configuration.
Set the
DSN
environment variable to the Data Source Name (DSN) of one database in the server that you want to report usage about.For example, to connect as user
postgres
authenticated with passwordpassword
to a databasepostgres
on port 5432 you would specify:export DSN="postgresql://postgres:password@localhost:5432/postgres"
This environment variable is accessible for the current terminal session only. When running the agent as a service, ensure it is permanently available.
Create a configuration file and run the agent
Create a configuration directory for the agent in your home directory:
mkdir ${HOME}/.beacon
Note
If the location specified above is not convenient, you also use either:
/etc/beacon
- The directory from which you execute any
beacon-agent
command.
The agent looks for its configuration file starting with
/etc/beacon
, then${HOME}/.beacon
. As a final fallback, it searches the directory from which it's executed.Inside this directory, create a new file
beacon_agent.yaml
touch .beacon/beacon_agent.yaml
Copy and paste the following template into the new file. This template is designed to enable usage reporting.
--- agent: general: metrics: usage: company_code: <company-code> output: file: enabled: true path: beacon_usage.json http: enabled: false provider: onprem: runner: enabled: true databases: - resource_id: <resource_id> dsn: $DSN ---
Edit the placeholders denoted by
<>
with appropriate values. Refer to Parameter reference for explanations of each parameter and how to obtain the appropriate value.The agent is now configured, proceed to running the agent.
Review the
beacon_usage.json
to ensure that the information is accurate and does not contain any data you are not happy to share with EDB.Copy the
beacon_usage.json
report file to a machine that has internet access.Go to the EDB Support Portal, open a new ticket, or navigate to the Usage Reports submission form.
Upload the report file and add the following information in the ticket: customer name, deployment name or cluster ID (if applicable), and generation date of the report.
Next step
Configure the agent to run as a service ► Reports are generated every 12 hours while the Agent is running.
Could this page be better? Report a problem or suggest an addition!