[FLINK-38946][flink-metrics] Allow AWS PrivateLink/GCP Cloud Private Service Connect for Datadog integration#27450
[FLINK-38946][flink-metrics] Allow AWS PrivateLink/GCP Cloud Private Service Connect for Datadog integration#27450stoiev wants to merge 1 commit intoapache:masterfrom
Conversation
|
@stoiev I am curious are there scenarios where the old URL can and should be used ? A change like this will break all users of the old URL. I was thinking that you would tolerate multiple endpoints, maybe by indicating in Flink config what type of connection is required then the Flink code can use the appropriate URL. |
The change to So from that perspective, this shouldn't cause any issues in terms of backwards incompatibility (Don't quote me tho, I'm customer-facing Datadog eng, but I'll seeing if I can double check with someone on the platform team on that front), Technically I guess it's a "breaking change" if someone's specifically whitelisted PS. Sorry to barge into another PR, I'm just in the same boat helping a customer with some similar DC config issues, as well as seeing if I can show some love to some of the older docs and setup for Datadog parts of Flink 👍🏻 |
Thanks @petems! You got the point. @davidradl, it’s difficult to guarantee that this won't cause issues in every possible scenario; for instance, some users might restrict network traffic based on specific domains. However, since the protocol remains the same, the Flink/Datadog integration should be unaffected as long as the network is functional.. Even if we include a configuration variable, I would argue for shifting the default to api.datadoghq.%s, as it is the only API domain currently supported and documented by Datadog Also, I’m aware there is already a PR to add this configuration. I opened this new one thinking a simple URL change might be easier to ship, but I am happy to continue with the configuration PR instead if it's prefereable. |
What is the purpose of the change
It aligns the Flink integration with Datadog's supported API host standards, unblocking usage of private networking support in Clouds providers, such as AWS PrivateLink and GCP Private Service Connect Documentation,
Brief change log
In DatadogHttpClient.java, the base URLs should be updated from:
https://app.datadoghq.%s/...tohttps://api.datadoghq.%s/Verifying this change
(example:)
Does this pull request potentially affect one of the following parts:
@Public(Evolving): no