Skip to content

Provide Dynatrace Exporter #170

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

Merged
merged 5 commits into from
Feb 1, 2024
Merged

Provide Dynatrace Exporter #170

merged 5 commits into from
Feb 1, 2024

Conversation

KarstenSchnitter
Copy link
Contributor

Adds a DynatraceMetricsExporter to the provided exporters. This exporter will parse CF bindings for a Dynatrace service binding. If found, it will export metrics to the API endpoint. For this to work, the API token field in the service credentials needs to be provided with otel.javaagent.extension.sap.cf.binding.dynatrace.metrics.token-name.

Several refacotrings align Dynatrace and Cloud Logging exporters.

Adds a DynatraceMetricsExporter to the provided exporters. This exporter will parse CF
bindings for a Dynatrace service binding. If found, it will export metrics to the API endpoint.
For this to work, the API token field in the service credentials needs to be provided with
`otel.javaagent.extension.sap.cf.binding.dynatrace.metrics.token-name`.

Several refacotrings align Dynatrace and Cloud Logging exporters.

Signed-off-by: Karsten Schnitter <[email protected]>
Use the correct protocol and header to send data to Dynatrace.
Extend the sample manifest by Dynatrace configuration.

Signed-off-by: Karsten Schnitter <[email protected]>
Comment on lines 76 to 77
The difference between `cloud-logging` and `otlp` exporters are explained in an own [section](#implementation-differences-between-cloud-logging-and-otlp-exporter).
The benefit of the `cloud-logging` exporter is, that it can be combined with a different configuration of the `otlp` exporter.
Copy link
Member

Choose a reason for hiding this comment

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

I would assume this also applies for Dynatrace, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, there is no default configuration for the otlp exporter and Dynatrace. You need to use the dynatrace exporter explicitly. Note, that otlp is considered to be a legacy/fallback approach. Since Cloud Logging is always available, it is used as the default.

Comment on lines +23 to +25
public CloudLoggingServicesProvider(ConfigProperties config) {
this(config, new CloudFoundryServicesAdapter(new CfEnv()));
}
Copy link
Member

Choose a reason for hiding this comment

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

Like the simplification that comes from the refactoring

Map<String, String> properties = propertiesSupplier.get();

assertTrue(properties.isEmpty());
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}
}

Missing new line :-)

Signed-off-by: Karsten Schnitter <[email protected]>
@juergen-walter juergen-walter self-requested a review February 1, 2024 16:07
@KarstenSchnitter KarstenSchnitter merged commit dcb11c1 into main Feb 1, 2024
@KarstenSchnitter KarstenSchnitter deleted the dynatrace-exporter branch February 1, 2024 16:09
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