【发布时间】:2021-09-01 08:54:24
【问题描述】:
我们已经按照以下步骤安装了 statsD exporter..
pip install 'apache-airflow[statsd]'
在配置详情下方添加
statsd_on = True
statsd_host = localhost
statsd_port = 8125
statsd_prefix = airflow
然后下载下面的zip文件
https://github.com/prometheus/statsd_exporter/releases/download/v0.21.0/statsd_exporter-0.21.0.linux-amd64.tar.gz
然后执行下面的命令
./statsd_exporter --statsd.listen-udp localhost:8125 &
statsd 指标已启动,但它显示如下所示的“go_gc_duration”统计信息,但未显示气流统计信息。
go_gc_duration_seconds{quantile="0"} 1.1717e-05
go_gc_duration_seconds{quantile="0.25"} 1.5126e-05
go_gc_duration_seconds{quantile="0.5"} 1.9535e-05
go_gc_duration_seconds{quantile="0.75"} 4.3568e-05
go_gc_duration_seconds{quantile="1"} 0.000384508
go_gc_duration_seconds_sum 669.380082897
go_gc_duration_seconds_count 8.186899e+06
但预期指标应如下所示
# HELP airflow_collect_dags Metric autogenerated by statsd_exporter.
# TYPE airflow_collect_dags gauge
airflow_collect_dags 50.056391
# HELP airflow_dag_loading_duration_example_bash_operator Metric
autogenerated by statsd_exporter.
# TYPE airflow_dag_loading_duration_example_bash_operator summary
airflow_dag_loading_duration_example_bash_operator{quantile="0.5"} 1.108e-06
airflow_dag_loading_duration_example_bash_operator{quantile="0.9"} 4.942e-06
我们有什么需要做的改变或遗漏的,请提出任何建议
【问题讨论】:
-
@Jan Garaj 任何建议请提出
-
任何人都可以提供任何建议
-
@任何人都可以提供任何建议