7344 Commits

Author SHA1 Message Date
Zuul
e4cdb48ce1 Merge "Ensure supported metric type is given" 2024-10-25 13:28:57 +00:00
Zuul
4c51aed2b2 Merge "Remove Python 3.8 support" 2024-10-23 11:49:56 +00:00
Takashi Kajinami
ebcaee9b6c Remove Python 3.8 support
Python 3.8 is no longer part of the tested runtimes since 2024.2[1]
because its EOL is coming soon.

Also officially declare python 3.12 support because python 3.12 is now
part of tested runtimes and unit test job with Python 3.12 is now
voting.

[1] https://governance.openstack.org/tc/reference/runtimes/2024.2.html

Change-Id: I472c27133b59c18e08d60f112bb6a77c8bc9d4a8
2024-10-23 19:55:18 +09:00
Zuul
b990535b9e Merge "Drop unused eventlet from test requirements" 2024-10-23 10:53:36 +00:00
Takashi Kajinami
c846975a51 Ensure supported metric type is given
Each sample is processed according to its type. So usage of
an unsupported type may cause some samples to be ignored unexpectedly.

Make sure that the Sample class is initialized with a supported value
to detect any internal bugs.

Change-Id: Iadcd9654d823b7c60d6f10d1f9b67877cbc9183a
2024-10-23 11:09:10 +09:00
Zuul
d92c55b6b0 Merge "Peometheus: Refactor label generation logic" 2024-10-22 19:23:57 +00:00
Zuul
4d8b710365 Merge "Fix Prom exporter resource_name parsing" 2024-10-22 19:23:55 +00:00
Zuul
aa96b799d8 Merge "Add server_group label to prometheus exporter" 2024-10-22 14:35:47 +00:00
Takashi Kajinami
be360467a9 Peometheus: Refactor label generation logic
This existing logic is quite redundant and most of the checks in if
block can be replaced by `if dict['key']:`.

Change-Id: I6c36c7263e8d305afa6e4859d902c13e512d0448
2024-10-22 22:51:38 +09:00
Zuul
64b2a807eb Merge "Add [DEFAULT] polling_namespace to generated ceilometer.conf" 2024-10-22 06:55:09 +00:00
Zuul
48a26894a4 Merge "Document choices of instance_discovery_method by oslo.config interface" 2024-10-22 06:52:56 +00:00
Zuul
1b98d8c076 Merge "Support file watcher to trigger GMR report" 2024-10-22 06:52:52 +00:00
Zuul
6001b01785 Merge "Adjust explanation of enable_notifications" 2024-10-22 06:24:23 +00:00
Takashi Kajinami
fc1319329d Drop unused eventlet from test requirements
It was added as part of maintenance of lower-constraints[1], but is not
really used by our code directly.

[1] 7a994d0719864f04b886e8bae2b205de22166e88

Change-Id: I2f83ad8cc7433a918f248c432f3506ea3d0e2de2
2024-10-22 00:25:41 +09:00
Zuul
8eab67a7f5 Merge "Get rid of distutils" 2024-10-16 12:32:41 +00:00
Zuul
9b92c659e0 Merge "Get rid of pkg_resources" 2024-10-16 12:32:39 +00:00
Zuul
cbfe6c59c3 Merge "Replace deprecated constant_time_compare" 2024-10-16 10:43:21 +00:00
Zuul
30a821b9bf Merge "Drop unused import" 2024-10-16 10:34:03 +00:00
Zuul
f369ba7091 Merge "Remove leftover for python 3.7 support" 2024-10-16 10:29:42 +00:00
Jaromir Wysoglad
1d56f8e072 Fix Prom exporter resource_name parsing
This changes the code to follow the original code in sg-core.
The resource_name label value in sg-core is being overwritten
when there is a "display name" and "name". It shouldn't be
duplicated.

It also removes the index variable, which is there in the
original implementation mostly to do this overwrite. I
don't think it's needed in this Python implementation.

Related sg-core code: https://github.com/infrawatch/sg-core/blob/master/plugins/handler/ceilometer-metrics/main.go#L269

Change-Id: I72971d51fa37b43e348605af9f6bb52cfa651369
2024-10-16 04:38:19 -04:00
Jaromir Wysoglad
f680d44b2b Add server_group label to prometheus exporter
This is adding a similar functionality which was introduced
in https://review.opendev.org/c/openstack/ceilometer/+/926176

Change-Id: Ic06841f3f73736d7124d6fa1e6668613ba9ce309
2024-10-16 04:37:06 -04:00
Zuul
f785ca3a65 Merge "Skip functional jobs for locale files" 2024-10-14 12:47:00 +00:00
Zuul
211eddfc0f Merge "Fix package name of gnocchiclient" 2024-10-14 11:50:02 +00:00
Takashi Kajinami
6cbe4ffcfa Skip functional jobs for locale files
These files can't be validated in CI. Skip the functional tests to
avoid unnecessary CI run.

Change-Id: I3bc474fe4dc48a427434569f31b613f31b965175
2024-10-14 03:52:56 +09:00
Takashi Kajinami
be7835a195 Support file watcher to trigger GMR report
Allow generating GMR report upon file trigger in addition to a signal.

The feature has been available in oslo.reports since 1.11.0[1] but it
can't be used in ceilometer without proper initialization.

[1] d23e0a65b23dc77d0104075d2313de6ca22b5cae

Change-Id: Ib08a808cff3203aa90c91e3bc25c3d46a14f0ade
2024-10-13 12:19:07 +09:00
Takashi Kajinami
feead8a1ec Adjust explanation of enable_notifications
Notifications are not always sent over RabbitMQ solely and may be done
by different methods according to how the notification driver is
configured.

Change-Id: I31e12b9ab421f44ef51040f83ff99514c9dd7c9e
2024-10-04 11:22:07 +09:00
Takashi Kajinami
6f8924a57c Get rid of pkg_resources
... because pkg_resources was removed in Python 3.12 .

Change-Id: Ib0de144da9d1933ea63aea585df4832c69d7c2fb
2024-10-03 18:11:47 +09:00
Takashi Kajinami
bc9345b633 Get rid of distutils
distutils was deprecated in Python 3.10 and was removed in Python
3.12[1].

[1] https://docs.python.org//3.10/library/distutils.html

Change-Id: Iacf09609df87320fb4a62070c389633daea261cf
2024-10-03 02:34:54 +09:00
Takashi Kajinami
3a4f2d6fee Replace deprecated constant_time_compare
The method is being deprecated now[1].

[1] https://review.opendev.org/c/openstack/oslo.utils/+/930198

Closes-Bug: #2081732
Change-Id: If8b7fb81b18cd44272e572bc0b1eae51a3d766b3
2024-10-02 18:31:45 +09:00
Takashi Kajinami
88b5c87a30 Handle IPv6 address for prometheus_listen_addresses
In case prometheus uses IPv6 address, the option may contain multiple
':' (eg. [::1]:9101 ).

Change-Id: Ie2129b2d079c430f81cf557a301666f3a658f57a
2024-10-01 18:51:36 +09:00
Zuul
b9c987ee75 Merge "Fix a missing space in parameter description" 2024-09-30 17:32:09 +00:00
Zuul
6a5c10705d Merge "Imported Translations from Zanata" 2024-09-30 17:19:35 +00:00
Zuul
f6ccfcad15 Merge "Ceilometer to export Prometheus metrics" 2024-09-30 17:19:33 +00:00
Zuul
6797402224 Merge "Add heart beat report for polling agents" 2024-09-30 10:28:26 +00:00
jlarriba
7289278dad Ceilometer to export Prometheus metrics
With this patch, ceilometer-polling is able to expose
metrics itself in Prometheus format so they can be
scraped directly from a Prometheus instance.

Change-Id: I68d1dc96a89e57cafa9dba207d92403a1e156fe6
2024-09-25 11:44:31 +00:00
OpenStack Proposal Bot
deb44ba4dc Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4ee7a8e8e0fcbd0ba8ff63f7dfabaa5956dbe2ef
2024-09-25 05:08:06 +00:00
Takashi Kajinami
9aec300ec0 Add [DEFAULT] polling_namespace to generated ceilometer.conf
This option can be configured via both arguments and configuration
files. Add it to the sample config file generated by
oslo-config-generator to make user aware that they can use config
files to customize this option

Change-Id: I85e84a949c75f5e009bc33999f95fc6073757fcd
2024-09-19 16:28:39 +00:00
Takashi Kajinami
3b5cf7e5d1 Fix a missing space in parameter description
Trivial-Fix

Change-Id: I19cd85af24f1adae43173db47bc7e92123d50425
2024-09-20 01:11:58 +09:00
Takashi Kajinami
737797415a Drop unused import
The libvirt library is not used by ceilometer.compute.discovery
directly, so the module don't have to import it.

Change-Id: I5da145044925a36f85f16197691f61bd833b1409
2024-09-17 05:44:13 +00:00
Takashi Kajinami
37e3561639 Remove leftover for python 3.7 support
Python 3.7 is no longer supported.

Change-Id: I2393d43d0ba53fdbfe4e93a01adeed8adad11dd6
2024-09-17 12:46:46 +09:00
8e7339c270 Update master for stable/2024.2
Add file to the reno documentation build to show release notes for
stable/2024.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.2.

Sem-Ver: feature
Change-Id: Ia23342dee322e2da9373aa1c77e05c6d3655e35d
2024-09-16 12:17:20 +00:00
Takashi Kajinami
6c650de831 Fix package name of gnocchiclient
Now the package is named python3-, not python- .

Change-Id: If2b5168884512fbfcb15d06f5594ac3c5b11f810
2024-09-12 20:16:44 +09:00
OpenStack Proposal Bot
7e41152697 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0517dd3f65b94e0a8a95e01f42453146f5f72c92
2024-09-05 04:14:27 +00:00
Zuul
ef27b49f6e Merge "Remove sahara support" 23.0.0.0rc1 23.0.0 2024-08-26 11:33:26 +00:00
Zuul
0551533787 Merge "Imported Translations from Zanata" 2024-08-26 09:01:39 +00:00
Zuul
72e5d5cf8e Merge "Enable instance metadata polling" 2024-08-26 09:01:38 +00:00
Takashi Kajinami
8036d4913e Remove sahara support
The sahara project has been retired because of inactivity[1].

[1] https://review.opendev.org/c/openstack/governance/+/919374

Change-Id: Icd57662a55ca8f0e4ee28aee7eae7f06e498ae9e
2024-08-23 18:19:09 +09:00
OpenStack Proposal Bot
6a473c8f43 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I18ed65db0c91e87ac7c86f9c3e323a7c46a1d5cb
2024-08-20 03:43:25 +00:00
Martin Mágr
48f4089e39 Add heart beat report for polling agents
This patch adds possibility to start child service for heart beat reports
of polling agents. Such data can be leveraged in service health check
scripts for monitoring purposes.

Change-Id: I721a1ef997c5dfb59cdd0e759fcd7d511c24bbb0
2024-08-16 18:49:10 +02:00
Jaromir Wysoglad
51aff1efeb Enable instance metadata polling
When polling libvirt for instance data, we weren't getting
the instance metadata. In particular we weren't getting the
metering.server_group, which is useful for autoscaling.

The metadata need to be retreived by an API call to nova.
The code already called nova API to get flavor ID. I adjusted
the code to get the flavor ID and instance metadata by the same
call, so the number of API calls is unchanged.

Change-Id: I8034fca8a86263f38e396c4c1512546863a754db
2024-08-13 15:02:18 -04:00