Skip to content

Commit

Permalink
Fix config example (#10338)
Browse files Browse the repository at this point in the history
  • Loading branch information
coignetp authored Oct 5, 2021
1 parent 65f3a48 commit f8e88fe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion gitlab/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ files:
- template: instances
options:
- name: gitlab_url
required: true
description: |
The master URL to probe for service health status
If you are using gitlab CE and not EE, use this URL with
Expand Down
4 changes: 4 additions & 0 deletions gitlab/datadog_checks/gitlab/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def instance_extra_headers(field, value):
return get_default_field_value(field, value)


def instance_gitlab_url(field, value):
return get_default_field_value(field, value)


def instance_headers(field, value):
return get_default_field_value(field, value)

Expand Down
2 changes: 1 addition & 1 deletion gitlab/datadog_checks/gitlab/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Config:
empty_default_hostname: Optional[bool]
exclude_labels: Optional[Sequence[str]]
extra_headers: Optional[Mapping[str, Any]]
gitlab_url: str
gitlab_url: Optional[str]
headers: Optional[Mapping[str, Any]]
health_service_check: Optional[bool]
ignore_metrics: Optional[Sequence[str]]
Expand Down
5 changes: 3 additions & 2 deletions gitlab/datadog_checks/gitlab/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
#
instances:

## @param gitlab_url - string - required
-
## @param gitlab_url - string - optional
## The master URL to probe for service health status
## If you are using gitlab CE and not EE, use this URL with
## the authorization token: http://localhost/?token=<TOKEN>
#
- gitlab_url: <GITLAB_URL>
# gitlab_url: <GITLAB_URL>

## @param api_token - string - optional
## The Gitlab API token for this instance
Expand Down

0 comments on commit f8e88fe

Please sign in to comment.