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

Fix config validation for feast.jobs.metrics.host #662

Merged

Conversation

davidheryanto
Copy link
Collaborator

@davidheryanto davidheryanto commented Apr 29, 2020

What this PR does / why we need it:

Current validation rule for feast.jobs.metrics.host will fail when specifying a valid hostname for StatsD Server because it expects a URL.

feast.jobs.metrics.host is used to connect to a metrics server e.g StatsD Server.

To support more variety of metrics server (which may work at TCP or UDP layer) host value
should probably be just a DNS hostname or IP address, e.g. 10.23.40.1 or localhost as opposed to http://10.23.40.1. The latter for instance cannot be used as an argument to connect to StatsD UDP server.

Another option is to include additional field like protocol when specifying the target for metrics server.

Which issue(s) this PR fixes:

NA

Does this PR introduce a user-facing change?:

NA

`host` will be used as the parameter to connect to a metrics server e.g StatsD Server. It's not a URL but rather an IP address or hostname. For example StatsD UDP server expects a DNS hostname or IP address and not a URL such as http://10.23.40.1. The UDP server does not understand http application layer protocol.
@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidheryanto, woop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@woop
Copy link
Member

woop commented Apr 29, 2020

/lgtm

@feast-ci-bot feast-ci-bot merged commit 65c2789 into feast-dev:master Apr 29, 2020
@woop woop added the kind/bug label Apr 30, 2020
@woop woop mentioned this pull request Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants