Commit Graph

25 Commits

Author SHA1 Message Date
Ghanshyam Mann e06f50cb06 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I73df79a8698625815ea4e3099904da448a49887e
2024-02-24 11:42:30 -08:00
Rajesh Tailor c4890a2b00 Fix typos in parameter descriptions, comments and tests
Change-Id: I75b17e41aff3a63b618b6cada01f225f93a4ff4f
2022-09-17 11:34:15 +05:30
Takashi Kajinami 9be30d134b Metrics/QDR: Replace hiera by lookup
The hiera function is deprecated and does not work with the latest
hieradata version 5. It should be replaced by the new lookup
function[1].

[1] https://puppet.com/docs/puppet/7/hiera_automatic.html

With the lookup function, we can define value type and merge behavior,
but these are kept default at this moment to limit scope of this change
to just simple replacement. Adding value type might be useful to make
sure the value is in expected type (especially when a boolean value is
expected), but we will revisit that later.

example:
lookup(<NAME>, [<VALUE TYPE>], [<MERGE BEHAVIOR>], [<DEFAULT VALUE>])

Change-Id: I11ff84f94db06dfd84ecd80ebb09c2a2076758eb
2022-05-10 10:19:08 +09:00
Matthias Runge 7e1d6e486a Drop support for collectd-gnocchi
Depends-on: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/834329
Change-Id: Ib3e2e10bd7d5cd0eca3d2e86f7c3041105adc42d
2022-04-06 23:46:14 +09:00
Zuul 6d7c102caf Merge "Add amqp send queue limit for collectd" 2020-10-13 20:12:18 +00:00
Matthias Runge 08b126e558 Add amqp send queue limit for collectd
send_queue_limit was added recently to puppet-collectd and
will be available in puppet-collectd-12.2

Change-Id: Ida812cdbe5141ff91a7db7c46e422f86fb762f98
2020-10-12 14:14:27 +02:00
pleimer 1ae59bf355 Add changes for collectd libpod stats plugin
Because the libpod stats plugin is written in golang rather than C,
it is not included in the collectd rpm and therefor cannot be
configured by puppet-collectd and are made here instead. A simple
variable for enabling will suffice for now since the plugin does
not currently have any configuration options.

Change-Id: I575b6504e24f9d690e1b88b2a6bec296438ce747
Signed-off-by: pleimer <pfbleimer@gmail.com>
2020-10-02 13:08:46 -04:00
Takashi Kajinami 07e0aca242 Use relative names to include classes
... to avoid lint errors by relative_classname_inclusion, which was
re-enabled recently[1].

[1] https://review.opendev.org/#/c/740023/

Change-Id: Ibb80b8b0f4075c00ceb306bcf54bb87df58165af
2020-07-15 11:59:45 +09:00
Martin Magr f0f031b269 Finish HAProxy config for metrics_qdr
This patch is fixing following issues:
  - currently HAProxy is not enabled by default because of wrong hiera key
  - QDR connections are not http connections
  - the load balanced services are running only controllers and listening
    on internal_api interfaces, so the pacemaker_nodes are reused for this
    configuration.

Change-Id: I6ae1ceca7ed4ae313c10e6d8be9803d20d68957d
2020-05-07 12:15:01 +02:00
Chandan Kumar (raukadah) 3e8e98dde3 Remove duplicate entry of collectd-python package
672452018a
in puppet-collectd adds supports of CentOS-8 and collect-python
package is already defined there.

In puppet-tripleo, it started complaining about duplicate entry of
collectd-python package, removing the same fixes for puppet-tripleo
fixes the issue.

Closes-Bug: #1866965

Change-Id: If1a2c65c4208c2255a3140134204e240496ec8b6
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
2020-03-11 18:20:36 +05:30
Tobias Urdin 1523a4b804 Convert all class usage to relative names
Change-Id: Ib2ed745b682cf12f9469a5a64451adcabec400af
2019-12-08 23:23:25 +01:00
Emilien Macchi 950caffea8 Revert "Replace hiera('service_names') by hiera('enabled_services')"
This reverts commit 7970733cf1.

Depends-On: I7339b8791817bdaffa65c928d424796114efdf57
Change-Id: I380f631de03eb3baddac80661e4c7632180b1d64

Closes-Bug: #1855138
2019-12-05 00:54:42 +00:00
Martin Magr 0e0b5a10f5 Synchronize connection configuration for metrics
Currently there are cases when collectd is trying to connect to QDR
on different interface than QDR is listening for connections.

This patch makes sure that those services are always in sync. And also
is changing interior configuration to work based on IPs instead
of hostnames.

Change-Id: Ia865bef9daf5b7e92b1b8c3712113416c9c8c176
2019-11-21 12:15:11 +01:00
Martin Magr e78c4f30e0 Add collectd-sensubility configuration
This patch adds possibility to configure collectd-exec to execute
collectd-sensubility and configure this extension.

Change-Id: Ieb5042603ff76fd22f867a17a853bb1ec6a744f2
2019-09-20 22:18:27 +02:00
Mike Bayer e2e602972f Add SQLAlchemy-collectd support
The SQLAlchemy-collectd plugin is now shipped in podman
containers under Kolla, this allows heat templates
to pull the plugin into the collectd configuration when
the collectd templates are being used.

A corresponding set of template changes in tripleo-heat-templates
will enable this plugin.

Change-Id: If598da717653a383a2d3b3373c56517f8bca832f
2019-08-05 10:56:16 -04:00
Emilien Macchi 7970733cf1 Replace hiera('service_names') by hiera('enabled_services')
In the effort of reducing the number of Hieradata files, the
service_names parameter previously consummed in puppet-tripleo can be
replaced by enabled_services which contains the same list.

It will allow us later to remove the service_names hieradata file.

Change-Id: I457f2c81a2cf6cc2f42dc4585b41b0d91dacc059
Related-Bug: #1835551
2019-07-05 13:25:34 -04:00
Martin Magr cfa969dac6 Refactor collectd/gnocchi integration
Current implementation of collect_gnocchi plugin configuration blocks
usage of other python-based plugins. This patch leverages puppet-collectd
classes properly to enable configuration of more than one python-based
plugin together.

Change-Id: I248859bf0e4b70e3a057e96b5fb74be64f4008ed
2019-03-21 12:15:18 +01:00
Martin Mágr 6c60a0f21f Collectd QDR connection
This patch enables to configure collectd to QDR by utilizing
collectd-amqp1 plugin.

Change-Id: I4cb6aa95e253b7fd19ed265fbcba0dfe6663592d
2018-07-23 13:36:19 +02:00
Martin Mágr 1082bde8e8 Fix default value for Gnocchi auth mode
The correct values or auth modes for Gnocchi are 'basic' and 'keystone'.
This patch fixes the 'simple' usage to 'basic'. Note that without this rename
the deployment works because when 'simple' is used the parameter is not used
in config file, so value 'basic' is used by python-collectd-gnocchi, because
it is implicit default.

Change-Id: I05632137ed12c59a41a5219189c431983935d461
2018-06-19 12:06:44 +02:00
Juan Badia Payno 0aef5a7190 Let collectd manage repo and added unit test
If collectd is allowed to manage repo, it will need
the epel module.

This patch let collectd manage repo. It does not let
to manage the repo by default, but it can be modified.
I also adds the collectd unit test.

Depends-On: I771b4f033ba5d6926e1ab9d9900af8bc81876295
Change-Id: I0576df2902cc44e7e9ff312214d609095132f2a4
2017-12-19 18:43:03 +01:00
Martin Mágr b6f76fa0fc Enable collectd to send metrics to Gnocchi
Adds classes for collectd gnocchi plugin configuration.

Change-Id: I9258b5d7cc23b6c19708df2beb7e29484e5c9234
2017-12-06 17:45:53 +01:00
Martin Mágr 2210f3c917 Make collectd to log also to file
This change will make possible to set collectd to log to file
(/var/log/collectd.log by default).

Change-Id: I50289ad6657852d37abbf12938128ff9ab9e3bac
2017-06-21 16:23:00 +02:00
Steve Baker 94f13e6608 Ensure hiera step value is an integer
The step is typically set with the hieradata setting an integer value:

  {"step": 1}

However it would be useful for the value to be a string so that
substitutions are possible, for example:

  {"step": "%{::step}"}

This change ensures the step parameter defaults to an integer by
calling Integer(hiera('step'))

This change was made by manually removing the undef defaults from
fluentd.pp, uchiwa.pp, and sensu.pp then bulk updating with:

    find ./ -type f -print0 |xargs -0 sed -i "s/= hiera('step')/= Integer(hiera('step'))/"

Change-Id: I8a47ca53a7dea8391103abcb8960a97036a6f5b3
2017-06-14 14:31:52 +12:00
Lars Kellogg-Stedman e56f9e304f updates to collectd support
Based on Steve Hardy's comments in
https://review.openstack.org/#/c/413748/, we need to move handling of
the list of plugins out of the heat templates and into puppet.  This
module now uses the service_names variable to look up information on
per-service collectd plugins.

Change-Id: Ie5fba01e1f91ffdc39eb0eb1be9b1464c797b04f
2017-01-18 10:06:15 -05:00
Lars Kellogg-Stedman 959101f7c9 add support for collectd
This is the glue between the collectd composable service in
tripleo-heat-templates and the puppet-collectd module.

Change-Id: I7e899e3af870b04dcd45503bd322278997fa53d0
2016-12-16 11:30:06 -05:00