Custom Metrics Fixes And Improvements#149
Custom Metrics Fixes And Improvements#149openshift-merge-robot merged 5 commits intoopenshift:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #149 +/- ##
==========================================
+ Coverage 25.57% 26.49% +0.91%
==========================================
Files 28 28
Lines 1474 1423 -51
==========================================
Hits 377 377
+ Misses 1050 998 -52
- Partials 47 48 +1
|
1204ccc to
fe83821
Compare
|
|
||
| func getPsqlInfo() string { | ||
| return fmt.Sprintf("host=%s port=%d user=%s dbname=%s sslmode=disable", CRT_SH_PG_DB_HOSTNAME, CRT_SH_PG_DB_PORT, CRT_SH_PG_DB_USERNAME, CRT_SH_PG_DB_NAME) | ||
| return fmt.Sprintf("host=%s port=%d user=%s dbname=%s sslmode=disable binary_parameters=yes", CRT_SH_PG_DB_HOSTNAME, CRT_SH_PG_DB_PORT, CRT_SH_PG_DB_USERNAME, CRT_SH_PG_DB_NAME) |
There was a problem hiding this comment.
Fix for PSQL error: unnamed prepared statement does not exist
fe83821 to
bf94569
Compare
* Fix SQL statement to conform to crt.sh SQL statements * Fix issue where operator-sdk controller-runtime metrics http server port 8080 conflicts with operator-custom-metrics http metrics server port * Remove unused clode * Add improved error logs * Defensive check against null private account key to prevent runtime crash
bf94569 to
95eb5c4
Compare
fahlmant
left a comment
There was a problem hiding this comment.
As far as operator custom metrics fix goes, lgtm
|
/assign @yithian |
|
What's with the change of metrics from openshift.com to devshift.org? |
Co-authored-by: Alex Chvatal <yith@yuggoth.space>
Co-authored-by: Alex Chvatal <yith@yuggoth.space>
We do not request LE certificates for openshift.com. I've removed this metric and replaced with the devshift.org instead. |
|
/lgtm @cblecker i wouldn't mind a second set of eyes on the |
|
/hold |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cblecker, dustman9000, yithian The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Tested locally with a prometheus instance. Verified proper cert issued counts show up in custom metrics endpoint.