ashwintumma23 commented on issue #16479:
URL: https://github.com/apache/druid/issues/16479#issuecomment-2688824295
@vipul-mykaarma ,
I see a few params that you have specified are not available for the
prometheus emitter. Can you check if the following basic options are working
for you? With the below configurations, I was able to see the `task_run_time`
metrics on the Prometheus endpoint.
* In `conf/druid/single-server/small/_common/common.runtime.properties`
```
druid.emitter=prometheus
druid.emitter.prometheus.addServiceAsLabel=true
druid.emitter.prometheus.addHostAsLabel=true
druid.emitter.prometheus.flushPeriod=5
druid.emitter.prometheus.port=8088
druid.emitter.logging.logLevel=debug
```
* In
`conf/druid/single-server/small/coordinator-overlord/runtime.properties`:
```
druid.monitoring.monitors=["org.apache.druid.java.util.metrics.JvmMonitor",
"org.apache.druid.server.metrics.TaskCountStatsMonitor"]
druid.emitter=prometheus
druid.emitter.prometheus.addServiceAsLabel=true
druid.emitter.prometheus.addHostAsLabel=true
druid.emitter.prometheus.flushPeriod=5
druid.emitter.prometheus.port=8089
druid.emitter.logging.logLevel=debug
```
* Prometheus Metrics Endpoint Result:
```
% curl http://localhost:8089/metrics | grep task | grep -v "#"
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left Speed
100 27032 100 27032 0 0 13.1M 0 --:--:-- --:--:-- --:--:--
25.7M
druid_segment_added_bytes_total{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",}
6525055.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="0.1",}
0.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="0.25",}
0.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="0.5",}
0.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="0.75",}
0.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="1.0",}
0.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="2.5",}
0.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="5.0",}
0.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="7.5",}
1.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="10.0",}
1.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="30.0",}
1.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="60.0",}
1.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="120.0",}
1.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="300.0",}
1.0
druid_task_run_time_bucket{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",le="+Inf",}
1.0
druid_task_run_time_count{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",}
1.0
druid_task_run_time_sum{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",}
6.722
druid_task_success_count_total{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",}
1.0
druid_segment_added_bytes_created{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",}
1.740615766243E9
druid_task_run_time_created{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",taskType="index_parallel",}
1.740615766916E9
druid_task_success_count_created{dataSource="wikipedia",druid_service="druid/coordinator",host_name="localhost:8081",}
1.740615776999E9
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]