fix: remove submit_uuid
from telemetry config profile
the `submit_url` should be all we expect by default, since even that has no built-in behavior yet
This commit is contained in:
parent
7b6dbac1fa
commit
e0dd704247
3 changed files with 2 additions and 15 deletions
|
@ -12,15 +12,13 @@ Install the WuttaTell package to your virtual environment:
|
||||||
pip install WuttaTell
|
pip install WuttaTell
|
||||||
|
|
||||||
Edit your :term:`config file` to add telemetry submission info, and
|
Edit your :term:`config file` to add telemetry submission info, and
|
||||||
related settings. Please note, the following example is just that -
|
related settings:
|
||||||
and will not work as-is:
|
|
||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
[wutta.telemetry]
|
[wutta.telemetry]
|
||||||
default.collect_keys = os, python
|
default.collect_keys = os, python
|
||||||
default.submit_url = /nodes/telemetry
|
default.submit_url = https://example.com/api/my-node/telemetry
|
||||||
default.submit_uuid = 06897767-eb70-7790-8000-13f368a40ea3
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
|
@ -251,13 +251,6 @@ class TelemetryProfile(WuttaConfigProfile):
|
||||||
.. attribute:: submit_url
|
.. attribute:: submit_url
|
||||||
|
|
||||||
URL to which collected telemetry data should be submitted.
|
URL to which collected telemetry data should be submitted.
|
||||||
|
|
||||||
.. attribute:: submit_uuid
|
|
||||||
|
|
||||||
UUID identifying the record to update when submitting telemetry
|
|
||||||
data. This value will only make sense in the context of the
|
|
||||||
collection service responsible for receiving telemetry
|
|
||||||
submissions.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -270,4 +263,3 @@ class TelemetryProfile(WuttaConfigProfile):
|
||||||
keys = self.get_str('collect.keys', default='os,python')
|
keys = self.get_str('collect.keys', default='os,python')
|
||||||
self.collect_keys = self.config.parse_list(keys)
|
self.collect_keys = self.config.parse_list(keys)
|
||||||
self.submit_url = self.get_str('submit.url')
|
self.submit_url = self.get_str('submit.url')
|
||||||
self.submit_uuid = self.get_str('submit.uuid')
|
|
||||||
|
|
|
@ -187,13 +187,10 @@ class TestTelemetryProfile(ConfigTestCase):
|
||||||
profile = self.make_profile()
|
profile = self.make_profile()
|
||||||
self.assertEqual(profile.collect_keys, ['os', 'python'])
|
self.assertEqual(profile.collect_keys, ['os', 'python'])
|
||||||
self.assertIsNone(profile.submit_url)
|
self.assertIsNone(profile.submit_url)
|
||||||
self.assertIsNone(profile.submit_uuid)
|
|
||||||
|
|
||||||
# configured
|
# configured
|
||||||
self.config.setdefault('wutta.telemetry.default.collect.keys', 'os,network,python')
|
self.config.setdefault('wutta.telemetry.default.collect.keys', 'os,network,python')
|
||||||
self.config.setdefault('wutta.telemetry.default.submit.url', '/nodes/telemetry')
|
self.config.setdefault('wutta.telemetry.default.submit.url', '/nodes/telemetry')
|
||||||
self.config.setdefault('wutta.telemetry.default.submit.uuid', '06897669-272b-7c74-8000-4d311924d24f')
|
|
||||||
profile = self.make_profile()
|
profile = self.make_profile()
|
||||||
self.assertEqual(profile.collect_keys, ['os', 'network', 'python'])
|
self.assertEqual(profile.collect_keys, ['os', 'network', 'python'])
|
||||||
self.assertEqual(profile.submit_url, '/nodes/telemetry')
|
self.assertEqual(profile.submit_url, '/nodes/telemetry')
|
||||||
self.assertEqual(profile.submit_uuid, '06897669-272b-7c74-8000-4d311924d24f')
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue