1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

10 Commits

Author SHA1 Message Date
ehila
90b9bcc68e fix: update format for logging calls
updated logging calls to use calling function format instead of fmt.Sprintf to fix go vet errors

Signed-off-by: ehila <ehila@redhat.com>
2025-07-29 23:10:04 -04:00
Zane Bitter
1d65e25d2b Update to latest assisted-image-service 2024-04-12 15:15:56 +12:00
Vince Prignano
17a7a4c2ea CORS-2852: Introduce pkg/clusterapi, system, and local control plane
Signed-off-by: Vince Prignano <vincepri@redhat.com>
2023-11-01 11:43:46 -07:00
Sandhya Dasu
7202c95d1d Fix go fmt errors after golang version upgrade to 1.19 2022-10-13 14:25:17 -04:00
OpenShift Merge Robot
a43f2fb62a Merge pull request #4028 from alrs/builder-errs
pkg/metrics/builder: fix test errors
2021-02-23 06:14:26 -05:00
Lars Lehtonen
7c9362f99c pkg/metrics/builder: fix TestNewMetricBuilder()
pkg/metrics/builder: fix TestMetricBuilderCollector()
2020-11-12 23:01:06 -08:00
Mike Fedosin
9162bd29bf Code cleanup and optimizations
This commit fixes issues that were found by:
`golangci-lint run pkg/... --disable-all -E gosimple -E unused`
2020-10-15 15:40:31 +02:00
Aditya Narayanaswamy
fa99646b32 Metrics: Add push client to push metrics to endpoint
Creates a push client that will be used to push metrics to
Prometheus Aggregation Gateway. The client can be used for
any type of Gateway and it takes in the URL and the HTTP Client
that would have all the necessary information(authentication)
required to push to the gateway.

Configured to take in Prometheus Objects for pushing to gateway.
https://github.com/prometheus/client_golang/tree/master/prometheus
2020-07-22 14:31:29 -04:00
Aditya Narayanaswamy
0cd0a1bb19 Metrics: Add MetricBuilder to standardize metrics
In order to make all the metrics uniform, the MetricBuilder
struct type is created with the option for storage, value setting,
and a type field. A build function is added which will create the
respective Prometheus Collector object based on the type of the
MetricBuilder and will automatically set the values and labels to
the collector object which can be used for pushing.

It also has a field for the description and the full name of the
metric for providing information about the metric generated. The field
bucket is used only for histogram.
2020-07-13 14:43:25 -04:00
Aditya Narayanaswamy
fcbdfea750 script: Printing time in console.
Adds a new feature which prints a summary of the time it took in
each stage of the installer after the stage has been completed.

Summary is currently supported for the create, wait-for and the
delete command. The summary is printed at the completion of the
command and will show the time elapsed for each of the stages
of the execution.

Create command has the following stages:-
. Infrastructure
. API
. Bootstrap Complete
. Destroy bootstrap complete.
. Cluster Operator Complete.

Destroy command has the following stages:-
. Cluster
. Bootstrap

The wait-for command has the following stages:-
- Bootstrap-complete command
	. Bootstrap
	. API
- Install-complete command
	. Cluster
	. Console
2020-04-07 10:41:05 -04:00