Make data collection interval configurable for Openstack input plugin

Related-Bug: PROD-17788

Change-Id: Ie81394b6cb383a631de182d7442b48e9a6a997e7
diff --git a/keystone/map.jinja b/keystone/map.jinja
index bee64cc..12b5b18 100644
--- a/keystone/map.jinja
+++ b/keystone/map.jinja
@@ -90,5 +90,6 @@
             'percentage': 50,
             'all_auths_rate': 0.1,
         },
+        'telegraf_openstack_input_plugin_interval': '1m',
     },
 }, grain='os_family', merge=salt['pillar.get']('keystone:monitoring')) %}
diff --git a/keystone/meta/telegraf.yml b/keystone/meta/telegraf.yml
index 8daaa80..2be47d3 100644
--- a/keystone/meta/telegraf.yml
+++ b/keystone/meta/telegraf.yml
@@ -1,9 +1,9 @@
-{%- from "keystone/map.jinja" import server with context %}
+{%- from "keystone/map.jinja" import monitoring, server with context %}
 {%- if server is defined and server.get('enabled', False) %}
 remote_agent:
   input:
     openstack:
-      interval: '1m'
+      interval: "{{ monitoring.telegraf_openstack_input_plugin_interval }}"
       project: "{{ server.admin_tenant }}"
       tenant: "{{ server.admin_tenant }}"
       region: "{{ server.region }}"