Skip to content

Commit

Permalink
document bundle.d resolution order
Browse files Browse the repository at this point in the history
  • Loading branch information
rmfitzpatrick committed Jun 12, 2023
1 parent 35148fe commit 5c5095f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions internal/confmapprovider/discovery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,11 @@ SPLUNK_DISCOVERY_EXTENSIONS_docker_observer_CONFIG_endpoint="tcp://localhost:808
SPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED=false
```

The priority order for discovery config content from lowest to highest is:

1. `config.d/<receivers or extensions>/*.discovery.yaml` file content (lowest).
2. `config.d/properties.discovery.yaml` file mapped form content.
3. `config.d/properties.discovery.yaml` file --set form content.
4. `SPLUNK_DISCOVERY_<xyz>` environment variables available to the collector process.
5. `--set splunk.discovery.<xyz>` commandline options (highest).
The priority order for discovery config values from lowest to highest is:

1. Pre-made `bundle.d` component config content (lowest).
2. `config.d/<receivers or extensions>/*.discovery.yaml` component config file content.
3. `config.d/properties.discovery.yaml` properties file mapped form content.
4. `config.d/properties.discovery.yaml` properties file --set form content.
5. `SPLUNK_DISCOVERY_<xyz>` property environment variables available to the collector process.
6. `--set splunk.discovery.<xyz>` property commandline options (highest).

0 comments on commit 5c5095f

Please sign in to comment.