Skip to main content
Version: 3.9.0

How to Collect DigitalOcean Resource Data

The DigitalOcean collector is configured within the Resoto Worker configuration via the config command in Resoto Shell.

Prerequisites​

This guide assumes that you have already installed Resoto.

Directions​

1. Enable the DigitalOcean Collector​

  1. Open the Resoto Worker configuration via the config command in Resoto Shell:

    > config edit resoto.worker
  2. Add digitalocean to the list of collectors by modifying the configuration as follows:

    resotoworker:
    ...
    # List of collectors to run
    collector:
    - 'digitalocean'
    ...
    ...

2. Authenticate with DigitalOcean​

DigitalOcean uses access tokens to authenticate API requests. You can provide access tokens to Resoto via the Resoto Worker configuration or environment variables.

  1. Open the Resoto Worker configuration via the config command in Resoto Shell:

    > config edit resoto.worker
  2. Modify the digitalocean section of the configuration as follows, adding your API tokens and/or access keys:

    digitalocean:
    # DigitalOcean API tokens for the teams to be collected
    api_tokens:
    - 'dop_v1_e5c759260e6a43f003f3b53e2cfec79cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    # DigitalOcean Spaces access keys for the teams to be collected, separated by colons
    spaces_access_keys: []
    ...

3. Trigger Resource Collection​

  1. By default, Resoto performs resource collection each hour. To immediately trigger a collect run, use the workflow run command in Resoto Shell:

    > workflow run collect
  2. Once the collect run completes, you can view a summary of collected DigitalOcean resources using the following search:

    > search is(digitalocean_resource) | count kind

Contact Us

Have feedback or need help? Don’t be shy—we’d love to hear from you!

 

 

 

Some Engineering Inc.