Commit Graph

5 Commits

Author SHA1 Message Date
Sagi Shnaidman 0977f8502d Big clean of tripleo-ci
Change-Id: Iff0350a1fff1057d1de924f05693258445da9c37
2020-01-22 18:37:04 +02:00
Sorin Sbarnea ed27a979d5 Adopt use of pre-commit linting
Follows the same configuration that was used on
tripleo-quickstart-extras and documented use on tripleo-docs.

Change-Id: Iba8a2db92137f9f6ad28f498627eb1b87039d99f
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-12-14 15:50:06 +00:00
Ben Nemec a41025db15 Don't spam postci with deployment time loop
We have a lot of resources in the overcloud Heat stack now, which
is causing a lot of noise in the logs.  This patch does a couple
of things to clean that up:

-Shuts off tracing while we're processing deployment times.  A
 couple of log messages should suffice to let people know what is
 going on at that time.
-Limits the number of resources we send to graphite to the top 50.
 There's no need to be logging times for resources that only take
 a few seconds, and sending the full list to graphite causes the
 UI to be really slow loading the list of data points.

Change-Id: I07c648761d81350d611257769c1d33803a8f7553
2016-07-28 10:02:08 +01:00
Dan Prince 713dbc76da Ignore bash errors when posting metrics
Treat metrics harvesting as optional so that even if posting
metrics fails it doesn't fail the associated CI job. We
aren't seeing issues with this yet... this is just a
precaution to avoid any job failures due to this sort of thing.

Change-Id: Ib48fee711af527aaff740b636531eaf787670766
2016-04-18 13:00:25 -04:00
Dan Prince 5d5035f8f8 Add common bash functions to help track metrics.
Add a bash library that has several functions that can
be used within TOCI to track simple metrics (and eventually)
load them into a graphite server as time series data.

The record_metric function can be used to store any metric
in the configured data file.

The start_metric/stop_metric functions are used to store and
calculate the total time a task tasks. These functions can be
called in a nested fashion such that timestamps within timestamps
can be tracked and recorded.

The metrics_to_graphite function is meant to be called after all metrics
have been recorded. It will also reset the data so it isn't posted
to graphite twice (should you choose to batch this).

Change-Id: I35228ec61b4c6c468b277ff48bf57872a5b24362
2016-04-14 13:36:45 +01:00