so I’ve added monitoring option in dhis.conf
monitoring.api.enabled = on
I see the logs it’s enabled
[localhost-startStop-1] INFO org.hisp.dhis.monitoring.metrics.MetricsEnabler - Monitoring metric for key monitoring.api.enabled is enabled
[localhost-startStop-1] INFO org.hisp.dhis.monitoring.metrics.MetricsEnabler - Monitoring metric for key monitoring.cpu.enabled is enabled
[localhost-startStop-1] INFO org.hisp.dhis.monitoring.metrics.MetricsEnabler - Monitoring metric for key monitoring.hibernate.enabled is disabled
[localhost-startStop-1] INFO org.hisp.dhis.monitoring.metrics.MetricsEnabler - Monitoring metric for key monitoring.uptime.enabled is enabled
[localhost-startStop-1] INFO org.hisp.dhis.monitoring.metrics.MetricsEnabler - Monitoring metric for key monitoring.dbpool.enabled is enabled
[localhost-startStop-1] INFO org.hisp.dhis.monitoring.metrics.MetricsEnabler - Monitoring metric for key monitoring.jvm.enabled is enabled
then after a dhis2 restart I access the dashboard, the api (/api/organisationUnits)
but the /api/metrics don’t return the api metrics
I only see the jvm and jdbc metrics
# HELP jdbc_connections_active
# TYPE jdbc_connections_active gauge
jdbc_connections_active{name="actual",} 2.0
jdbc_connections_active{name="dataSource",} 2.0
# HELP system_cpu_usage The "recent cpu usage" for the whole system
# TYPE system_cpu_usage gauge
system_cpu_usage 0.03773584905660377
# HELP jvm_buffer_count_buffers An estimate of the number of buffers in the pool
# TYPE jvm_buffer_count_buffers gauge
jvm_buffer_count_buffers{id="direct",} 28.0
jvm_buffer_count_buffers{id="mapped",} 0.0
...
What am I missing to get the more api metric like showed in the doc
dhis2_seconds_max{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/29/analytics",} 2.715992829
dhis2_seconds_sum{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/29/analytics",} 15.404253163
dhis2_seconds_count{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/29/analytics",} 40.0
just in case the version
"version": "2.36.8",
"revision": "aa38c7f",
"buildTime": "2022-02-02T14:58:22.000",