Skip to content

Commit

Permalink
Fix some default values in the configuration file (#14602)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret authored May 26, 2023
1 parent 6dbc137 commit 28884ab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions gitlab_runner/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ files:
- template: instances/openmetrics_legacy
overrides:
prometheus_url.hidden: true
health_service_check.value.example: false
health_service_check.value.default: false
send_monotonic_counter.value.example: false
send_monotonic_counter.value.default: false
- template: logs
example:
- type: journald
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def instance_headers(field, value):


def instance_health_service_check(field, value):
return True
return False


def instance_ignore_metrics(field, value):
Expand Down Expand Up @@ -211,7 +211,7 @@ def instance_send_histograms_buckets(field, value):


def instance_send_monotonic_counter(field, value):
return True
return False


def instance_send_monotonic_with_gauge(field, value):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ instances:
#
# prometheus_metrics_prefix: <PREFIX>_

## @param health_service_check - boolean - optional - default: true
## @param health_service_check - boolean - optional - default: false
## Send a service check reporting about the health of the Prometheus endpoint.
## The service check is named <NAMESPACE>.prometheus.health
#
# health_service_check: true
# health_service_check: false

## @param label_to_hostname - string - optional
## Override the hostname with the value of one label.
Expand Down Expand Up @@ -157,10 +157,10 @@ instances:
#
# send_distribution_buckets: false

## @param send_monotonic_counter - boolean - optional - default: true
## @param send_monotonic_counter - boolean - optional - default: false
## Set send_monotonic_counter to true to send counters as monotonic counter.
#
# send_monotonic_counter: true
# send_monotonic_counter: false

## @param send_distribution_counts_as_monotonic - boolean - optional - default: false
## If set to true, sends histograms and summary counters as monotonic counters (instead of gauges).
Expand Down

0 comments on commit 28884ab

Please sign in to comment.