-
Notifications
You must be signed in to change notification settings - Fork 48
Add arbitrary labels on a per-database basis #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application. When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated. If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public. |
My boss was successful in submitting the OCA for our company yesterday. I'm trying now to figure out how that attaches to my username now. |
@@ -66,19 +66,33 @@ func (d *Database) ping(logger *slog.Logger) error { | |||
} | |||
|
|||
func (d *Database) constLabels() map[string]string { | |||
return map[string]string{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be a function of the exporter now that it involves dynamic labels beyond what a given database has
Behavior looks good, see the stylistic and config suggestions. OCA may take a bit to update, I would suggest checking again in a couple days for your company name on https://oca.opensource.oracle.com/ |
* Ensuring the list of allConstLabels is part of the exporter now, and it's passed into the Database each time its needed in there. * Adjusting the format of the label/value from a list of name/value pairs to a map of strings.
Approved pending OCA |
Confirmed OCA is signed and processed. |
This accomplishes the feature request that I entered at #275
Arbitrary per-database labels can be added to the database stanzas in the configuration, like: