Install on Linux
This page provides instructions for installing the Observe Agent on a Linux system to collect metrics, logs, and application telemetry—including OpenTelemetry traces—and forward them to Observe by Snowflake.
Install, configure, and deploy the Observe Agent on Linux
Access the Add Data portal to install, configure, and deploy the Observe Agent on your Linux device.
Perform the following steps to access the Add Data portal:
- From the left navigation, click Data & integrations > Add Data.
- Click Install.
- Click Linux.
Make your way through the on-screen instructions, which cover the following tasks:
| Task | Description |
|---|---|
| Create a new ingest token | Click Create to generate a new ingest token. This is required for the Observe Agent to be able to sent data to Observe by Snowflake. |
| Select the operating system | Select whether the Observe Agent is being installed on an Ubuntu-based or RHEL-based Linux system. |
| Select data to collect | By default, the Observe Agent collects and sends logs and metrics from your host to Observe by Snowflake. |
| Fleet monitoring | By default, Observe Agents are included in fleet monitoring. See Fleet Management. |
| Configure usage attribution tag values | Provide values for the usage attribution tags. After setup, the Usage attribution page groups ingest and cost by those values. service.name and deployment.environment.name are standard OpenTelemetry resource attributes. team.name is an Observe by Snowflake attribute used for the same cost breakdown. |
| Install the Observe Agent | Run the commands in this section to install the Observe Agent. You must provide your password to run this command as an administrator. |
| Configure the Observe Agent | Run the commands in this section to update the observe-agent.yaml file and fine-tune the metrics that are sent to Observe by Snowflake. |
| Restart the Observe Agent | Run the command in this section to stop and restart the Observe Agent, so that the changes you just made take effect. |
| Send application data to the Observe Agent | Follow the instructions in the documentation to instrument your apps with OpenTelemetry and send data to the Observe Agent. See APM instrumentation. After instrumenting your apps, set the proper environment variables as described in this section. |
| Verify your data is being received | Return to the Overview tab, then click View in any of the following cards to view your data:
|
Manually configure the Observe Agent
If you don't want to use commands provided in the Add Data portal to configure your Observe Agent, you can customize the observe-agent.yaml config file in the /etc/observe-agent directory. For more information on configuring the agent, see Configure the Observe Agent on Linux, Windows, and macOS.
Open the agent config file /etc/observe-agent/observe-agent.yaml with superuser permissions which will allow you to edit and save changes to the file.
sudo vi /etc/observe-agent/observe-agent.yamlReplace the contents of the agent configuration file with the config file below.
- Replace
<YOUR_INGEST_TOKEN>with your instance’s ingest token you create from the Add Data for Linux page (ex: a1b2c3d4e5f6g7h8i9k0:l1m2n3o4p5q6r7s8t9u0v1w2x3y4z5a6) - Replace
<YOUR_OBSERVE_COLLECTION_ENDPOINT>with your instance’s collection endpoint (ex: https://123456789012.collect.observeinc.com/). For more information on configuring the agent, see Configuration.
Some Observe by Snowflake instances may optionally use a name instead of Customer ID; if this is the case for your instance, contact your Observe by Snowflake data engineer to discuss implementation. A stem name will work as is, but a DNS redirect name may require client configuration.
# Observe data token (ex: a1b2c3d4e5f6g7h8i9k0:l1m2n3o4p5q6r7s8t9u0v1w2x3y4z5a6)
token: "<YOUR_INGEST_TOKEN>"
# Target Observe collection url (ex: https://123456789012.collect.observeinc.com/)
observe_url: "<YOUR_OBSERVE_COLLECTION_ENDPOINT>"
# Debug mode - Sets agent log level to debug
debug: false
# Enable forwarding of local app metrics and traces
forwarding:
enabled: true
metrics:
output_format: otel
# collect metrics and logs pertaining to the agent itself
self_monitoring:
enabled: true
# collect metrics and logs about the host system
host_monitoring:
enabled: true
# collect logs of all running processes from the host system
logs:
enabled: true
include:
- /var/log/**/*.log
- /var/log/syslog
metrics:
# collect metrics about the host system
host:
enabled: true
# collect metrics about the processes running on the host system
process:
enabled: false
# otel_config_overrides:
# exporters:
# # This is a net new exporter
# debug:
# verbosity: detailed
# sampling_initial: 5
# sampling_thereafter: 200
# service:
# pipelines:
# # This will override the existing metrics/host_monitoring pipeline and output to stdout debug instead
# metrics/host_monitoring_host:
# receivers: [hostmetrics/host-monitoring-host]
# processors: [memory_limiter]
# exporters: [debug]
# # This is a net new pipeline
# logs/new-pipeline:
# receivers: [filelog/host_monitoring]
# processors: [memory_limiter]
# exporters: [debug]Open the agent config file /etc/observe-agent/observe-agent.yaml with superuser permissions which will allow you to edit and save changes to the file.
sudo vim /etc/observe-agent/observe-agent.yamlReplace the contents of the agent configuration file with the config file below.
- Replace
<YOUR_INGEST_TOKEN>with your instance’s ingest token you create from the Add Data for Linux page (ex: a1b2c3d4e5f6g7h8i9k0:l1m2n3o4p5q6r7s8t9u0v1w2x3y4z5a6) - Replace
<YOUR_OBSERVE_COLLECTION_ENDPOINT>with your instance’s collection endpoint (ex: https://123456789012.collect.observeinc.com/). For more information on configuring the agent, see Configuration.
Some Observe instances may optionally use a name instead of Customer ID; if this is the case for your instance, contact your Observe Data Engineer to discuss implementation. A stem name will work as is, but a DNS redirect name may require client configuration.
# Observe data token (ex: a1b2c3d4e5f6g7h8i9k0:l1m2n3o4p5q6r7s8t9u0v1w2x3y4z5a6)
token: "<YOUR_INGEST_TOKEN>"
# Target Observe collection url (ex: https://123456789012.collect.observeinc.com/)
observe_url: "<YOUR_OBSERVE_COLLECTION_ENDPOINT>"
# Debug mode - Sets agent log level to debug
debug: false
# Enable forwarding of local app metrics and traces
forwarding:
enabled: true
metrics:
output_format: otel
# collect metrics and logs pertaining to the agent itself
self_monitoring:
enabled: true
# collect metrics and logs about the host system
host_monitoring:
enabled: true
# collect logs of all running processes from the host system
logs:
enabled: true
include:
- /var/log/**/*.log
- /var/log/syslog
metrics:
# collect metrics about the host system
host:
enabled: true
# collect metrics about the processes running on the host system
process:
enabled: false
# otel_config_overrides:
# exporters:
# # This is a net new exporter
# debug:
# verbosity: detailed
# sampling_initial: 5
# sampling_thereafter: 200
# service:
# pipelines:
# # This will override the existing metrics/host_monitoring pipeline and output to stdout debug instead
# metrics/host_monitoring_host:
# receivers: [hostmetrics/host-monitoring-host]
# processors: [memory_limiter]
# exporters: [debug]
# # This is a net new pipeline
# logs/new-pipeline:
# receivers: [filelog/host_monitoring]
# processors: [memory_limiter]
# exporters: [debug]If you make any configuration changes, run the following commands to stop and restart the Observe Agent and have your change take effect.
sudo systemctl enable --now observe-agent
You can then run the status command to see statistics and information about the agent.
observe-agent status
Uninstall the Observe Agent
Use the following commands to uninstall the Observe Agent:
You can uninstall the agent via yum after stopping the service.
sudo systemctl stop observe-agent
sudo yum erase observe-agent -yYou can uninstall the agent via apt after stopping the service.
sudo systemctl stop observe-agent
sudo apt-get purge observe-agentUpgrade the Observe Agent
Follow the instructions for your Linux environment to upgrade the Observe Agent.
Upgrade the package version. The install process will ask if you want to replace your existing config file. Generally the default answer of N (no) is correct.
sudo yum update observe-agent
sudo yum install observe-agentTo apply the new configs and start the agent at the new version you can run the following command.
sudo systemctl restart observe-agentUpgrade the package version. The install process will ask if you want to replace your existing config file. Generally the default answer of N (no) is correct.
sudo apt update
sudo apt install --only-upgrade observe-agentTo apply the new configs and start the agent at the new version you can run the following command.
sudo systemctl restart observe-agentUpdated 2 days ago
What’s Next
Use both the Log Explorer and the Metric Explorer to monitor your systems. To analyze your trace data, explore both the Trace Explorer and the Service Explorer.