From 39a534b3f8e745476738bfba98a0f984f730d5e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Weing=C3=A4rtner?= Date: Thu, 26 Mar 2020 15:13:51 -0300 Subject: Add support to the use of headers in the dynamic pollsters Depends-On: https://review.opendev.org/#/c/709807/ Change-Id: I3ec151b8807d0dd3e529bb449d22fa68c8c810ee --- doc/source/admin/telemetry-dynamic-pollster.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') diff --git a/doc/source/admin/telemetry-dynamic-pollster.rst b/doc/source/admin/telemetry-dynamic-pollster.rst index 6ed1faa2..62e6dc3e 100644 --- a/doc/source/admin/telemetry-dynamic-pollster.rst +++ b/doc/source/admin/telemetry-dynamic-pollster.rst @@ -171,6 +171,16 @@ attributes to define a dynamic pollster: ``response_entries_key`` elements that will be mapped to ``id`` attribute that is sent to Gnocchi. +* ``headers``: optional parameter. It is a map (similar to the + metadata_mapping) of key and value that can be used to customize the header + of the request that is executed against the URL. This configuration works + for both OpenStack and non-OpenStack dynamic pollster configuration. + + .. code-block:: yaml + + headers: + "x-openstack-nova-api-version": "2.46" + The complete YAML configuration to gather data from Magnum (that has been used as an example) is the following: -- cgit v1.2.1