Merge pull request #12820 from AlanCoding/five_seconds

Make the metrics default sampling interval 5s
This commit is contained in:
Alan Rominger
2022-09-02 15:21:57 -04:00
committed by GitHub
3 changed files with 13 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ work_sign_key_dir: '../_sources/receptor'
work_sign_private_keyfile: "{{ work_sign_key_dir }}/work_private_key.pem"
work_sign_public_keyfile: "{{ work_sign_key_dir }}/work_public_key.pem"
# SSO variables
enable_keycloak: false
enable_ldap: false
@@ -28,6 +29,8 @@ ldap_public_key_file: '{{ ldap_cert_dir }}/{{ ldap_public_key_file_name }}'
ldap_private_key_file: '{{ ldap_cert_dir }}/{{ ldap_private_key_file_name }}'
ldap_cert_subject: "/C=US/ST=NC/L=Durham/O=awx/CN="
# Metrics
enable_splunk: false
enable_grafana: false
enable_prometheus: false
scrape_interval: '5s'

View File

@@ -1,7 +1,7 @@
#jinja2: lstrip_blocks: True
---
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
scrape_interval: {{ scrape_interval }} # Set the scrape interval to something faster. Default is every 1 minute.
scrape_configs:
- job_name: 'awx'
@@ -11,7 +11,7 @@ scrape_configs:
# so no need to track nodes individually.
- awx1:8013
metrics_path: /api/v2/metrics
scrape_interval: 5s
scrape_interval: {{ scrape_interval }}
scheme: http
params:
format: ['txt']