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
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559
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']

View File

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