Update metrics.yaml

Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten-Lebbing 2023-01-25 11:41:29 +01:00 committed by GitHub
parent 4ddc26be60
commit 677f82e440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 35 deletions

View File

@ -1,35 +1,36 @@
- variable: metrics
group: Metrics
label: Prometheus Metrics
schema:
additional_attrs: true
type: dict
attrs:
- variable: enabled
label: Enabled
description: Enable Prometheus Metrics
schema:
type: boolean
default: true
show_subquestions_if: true
subquestions:
- variable: serviceMonitor
label: Service Monitor Settings
schema:
additional_attrs: true
type: dict
attrs:
- variable: interval
label: Scrape Interval
description: Scrape interval time
schema:
type: string
default: 1m
required: true
- variable: scrapeTimeout
label: Scrape Timeout
description: Scrape timeout Time
schema:
type: string
default: 30s
required: true
# - variable: metrics
# group: Metrics
# label: Prometheus Metrics
# schema:
# additional_attrs: true
# type: dict
# attrs:
# - variable: enabled
# label: Enabled
# description: Enable Prometheus Metrics
# schema:
# type: boolean
# default: true
# show_subquestions_if: true
# subquestions:
# - variable: serviceMonitor
# label: Service Monitor Settings
# schema:
# additional_attrs: true
# type: dict
# attrs:
# - variable: interval
# label: Scrape Interval
# description: Scrape interval time
# schema:
# type: string
# default: 1m
# required: true
# - variable: scrapeTimeout
# label: Scrape Timeout
# description: Scrape timeout Time
# schema:
# type: string
# default: 30s
# required: true
#