【问题标题】:StatsD displaying "go_gc_duration" metrics but not the airflow metricsStatsD 显示“go_gc_duration”指标,但不显示气流指标
【发布时间】: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 任何建议请提出
  • 任何人都可以提供任何建议
  • @任何人都可以提供任何建议

标签: airflow statsd


【解决方案1】:

实际与否,参考https://quay.io/repository/prometheus/statsd-exporter

./statsd_exporter --statsd.listen-udp localhost:8125 --log.level 调试

【讨论】:

  • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
猜你喜欢
  • 2017-05-07
  • 1970-01-01
  • 2014-01-29
  • 1970-01-01
  • 2014-03-16
  • 1970-01-01
  • 1970-01-01
  • 2019-09-14
  • 2020-11-23
相关资源
最近更新 更多