Skip to content
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

PP-11548: Initialise prom metrics without default sample builder #2884

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

jfharden
Copy link
Contributor

What?

Now we don't need to build our default labels in the app (since they are now added by the sidecar) we should remove the default sample builder.

  1. Remove default sample builder
  2. Update local build script to account for m1 macs, and use the correct container tag

How?

This change has already been rolled out to connector and is working well.

@@ -71,8 +70,11 @@ public DataSourceFactory getDataSourceFactory(LedgerConfig configuration) {

@Override
public void run(LedgerConfig config, Environment environment) {
config.getEcsContainerMetadataUriV4().ifPresent(uri -> initialisePrometheusMetrics(environment, uri));

LOGGER.info("Initialising prometheus metrics.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how useful is this log line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not, good call, removed

nlsteers
nlsteers previously approved these changes Sep 19, 2023
Copy link
Contributor

@nlsteers nlsteers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, can probably remove the logging call though.

@jfharden
Copy link
Contributor Author

@nlsteers I've removed the log line, would you mind reapproving

@jfharden jfharden merged commit 0c25c45 into master Sep 19, 2023
2 checks passed
@jfharden jfharden deleted the pp-11548/update-prometheus-init branch September 19, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants