Make the metrics default sampling interval 5s

This commit is contained in:
Alan Rominger
2022-09-02 13:38:49 -04:00
parent f9428c10b9
commit ccbc8ce7de
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_private_keyfile: "{{ work_sign_key_dir }}/work_private_key.pem"
work_sign_public_keyfile: "{{ work_sign_key_dir }}/work_public_key.pem" work_sign_public_keyfile: "{{ work_sign_key_dir }}/work_public_key.pem"
# SSO variables
enable_keycloak: false enable_keycloak: false
enable_ldap: 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_private_key_file: '{{ ldap_cert_dir }}/{{ ldap_private_key_file_name }}'
ldap_cert_subject: "/C=US/ST=NC/L=Durham/O=awx/CN=" ldap_cert_subject: "/C=US/ST=NC/L=Durham/O=awx/CN="
# Metrics
enable_splunk: false enable_splunk: false
enable_grafana: false enable_grafana: false
enable_prometheus: false enable_prometheus: false
scrape_interval: '5s'

View File

@@ -1,7 +1,7 @@
#jinja2: lstrip_blocks: True #jinja2: lstrip_blocks: True
--- ---
global: 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: scrape_configs:
- job_name: 'awx' - job_name: 'awx'
@@ -11,7 +11,7 @@ scrape_configs:
# so no need to track nodes individually. # so no need to track nodes individually.
- awx1:8013 - awx1:8013
metrics_path: /api/v2/metrics metrics_path: /api/v2/metrics
scrape_interval: 5s scrape_interval: {{ scrape_interval }}
scheme: http scheme: http
params: params:
format: ['txt'] format: ['txt']

View File

@@ -90,6 +90,7 @@
"y": 0 "y": 0
}, },
"id": 8, "id": 8,
"interval": "5",
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -176,6 +177,7 @@
"y": 8 "y": 8
}, },
"id": 12, "id": 12,
"interval": "5",
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -289,6 +291,7 @@
"y": 8 "y": 8
}, },
"id": 10, "id": 10,
"interval": "5",
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -427,6 +430,7 @@
"y": 16 "y": 16
}, },
"id": 16, "id": 16,
"interval": "5",
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -548,6 +552,7 @@
"y": 16 "y": 16
}, },
"id": 18, "id": 18,
"interval": "5",
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -645,6 +650,7 @@
"y": 24 "y": 24
}, },
"id": 14, "id": 14,
"interval": "5",
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -734,6 +740,7 @@
"y": 24 "y": 24
}, },
"id": 20, "id": 20,
"interval": "5",
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -777,6 +784,6 @@
"timezone": "", "timezone": "",
"title": "awx-demo", "title": "awx-demo",
"uid": "GISWZOXnk", "uid": "GISWZOXnk",
"version": 4, "version": 3,
"weekStart": "" "weekStart": ""
} }