Merge "Prometheus: Update command line flags"

This commit is contained in:
Zuul 2018-07-30 16:04:05 +00:00 committed by Gerrit Code Review
commit a911bb0a3f
2 changed files with 14 additions and 6 deletions
prometheus

@ -34,11 +34,11 @@ limitations under the License.
# 'prometheus --help-man'
{{- define "prometheus.utils.command_line_flags" -}}
{{- range $flag, $value := . }}
{{- $flag := $flag | replace "_" "-" -}}
{{- if eq $flag "web.enable-admin-api" -}}
{{- if $value -}}
{{- printf "--%s" $flag }}
{{- range $flag, $value := . -}}
{{- $flag := $flag | replace "_" "-" }}
{{- if eq $flag "web.enable-admin-api" "web.enable-lifecycle" -}}
{{- if $value }}
{{- printf " --%s" $flag -}}
{{- end -}}
{{- else -}}
{{- $value := $value | toString }}

@ -217,7 +217,16 @@ conf:
storage.tsdb.retention: 7d
storage.tsdb.min_block_duration: 2h
storage.tsdb.max_block_duration: 2h
# NOTE(srwilkers): These settings default to false, but they are
# exposed here to allow enabling if desired. Please note the security
# impacts of enabling these flags. More information regarding the impacts
# can be found here: https://prometheus.io/docs/operating/security/
#
# If set to true, all administrative functionality is exposed via the http
# /api/*/admin/ path
web.enable_admin_api: false
# If set to true, allows for http reloads and shutdown of Prometheus
web.enable_lifecycle: false
scrape_configs:
global:
scrape_interval: 60s
@ -485,7 +494,6 @@ conf:
action: replace
target_label: kubernetes_pod_name
- job_name: calico-etcd
honor_labels: false
kubernetes_sd_configs:
- role: service
scrape_interval: 20s