[ 
https://issues.apache.org/jira/browse/AIRFLOW-6530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17067198#comment-17067198
 ] 

ASF subversion and git services commented on AIRFLOW-6530:
----------------------------------------------------------

Commit 2f8a3277bb85384632662ea7eca5378b1407b5eb in airflow's branch 
refs/heads/v1-10-test from Usman Arshad
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=2f8a327 ]

[AIRFLOW-6530] Allow Custom Statsd Client (#7227)

Co-authored-by: Usman Arshad <usman.ars...@skyscanner.net>
Co-authored-by: Kaxil Naik <kaxiln...@gmail.com>
Co-authored-by: Craig Rosie <craigros...@gmail.com>
(cherry picked from commit 8bf6a9093db5a051cc891bb8eda035d41c69239d)


> Allow for custom Statsd client
> ------------------------------
>
>                 Key: AIRFLOW-6530
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6530
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: scheduler, webserver
>    Affects Versions: 1.10.7
>            Reporter: Usman Arshad
>            Assignee: Usman Arshad
>            Priority: Major
>              Labels: features
>             Fix For: 1.10.10
>
>
> We are currently using Airflow at Skyscanner and we have a custom 
> implementation of Statsd which offers features which wires in nicely into our 
> metrics platform/tooling.
> I'm quite sure that other companies who are using Airflow would also find 
> great benefit in being able to utilise their own custom Statsd client, 
> therefore i am proposing this addition.
>  
> The proposed solution looks something along the lines of changing this:
> {code:java}
> statsd = StatsClient(
>     host=conf.get('scheduler', 'statsd_host'),
>     port=conf.getint('scheduler', 'statsd_port'),
>     prefix=conf.get('scheduler', 'statsd_prefix'))
> {code}
>  Into
> {code:java}
> statsd = conf.get('STATSD_CLIENT') or StatsClient(
>     host=conf.get('scheduler', 'statsd_host'),
>     port=conf.getint('scheduler', 'statsd_port'),
>     prefix=conf.get('scheduler', 'statsd_prefix'))
> {code}
> Note: Psuedocode, not actual code
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to