Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config spec #6561

Merged
merged 3 commits into from
May 1, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions btrfs/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Btrfs
files:
- name: btrfs.yaml
options:
- template: init_config
- template: instances
options:
- name: excluded_devices
description: List of devices to exclude.
value:
example:
- <DEVICE_1>
- <DEVICE_2>
type: array
items:
type: string
- template: instances/tags
mgarabed marked this conversation as resolved.
Show resolved Hide resolved
16 changes: 10 additions & 6 deletions btrfs/datadog_checks/btrfs/data/conf.yaml.example
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
init_config:
## All options defined here are available to all instances.
#
# init_config: {}

## Every instance is scheduled independent of the others.
#
instances:

-
## @param excluded_devices - list of string - optional
## List of devices to exclude
## @param excluded_devices - list of strings - optional
## List of devices to exclude.
#
# excluded_devices:
# - <DEVICE_1>
# - <DEVICE_2>

## @param tags - list of key:value element - optional
## List of tags to attach to every metric, event and service check emitted by this integration.
## @param tags - list of strings - optional
## A list of tags to attach to every metric and service check emitted by this instance.
##
## Learn more about tagging: https://docs.datadoghq.com/tagging/
## Learn more about tagging at https://docs.datadoghq.com/tagging
#
# tags:
# - <KEY_1>:<VALUE_1>
Expand Down
3 changes: 3 additions & 0 deletions btrfs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"type": "check",
"integration_id": "btrfs",
"assets": {
"configuration": {
"spec": "assets/configuration/spec.yaml"
},
"monitors": {},
"dashboards": {},
"service_checks": "assets/service_checks.json"
Expand Down