No metrics on Historical nodes

Hello.

I am running Imply Data Server and have changed logging configuration (conf/druid/_common/log4j2.xml) as follows to send all metrics to a separate file:

<?xml version="1.0" encoding="UTF-8" ?>
<Appenders>

    <Console name="Console" target="SYSTEM_OUT">

        <PatternLayout pattern="%d{ISO8601} %p [%t] %c - %m%n"/>

    </Console>

    <RollingFile name="RollingFile" fileName="var/sv/metrics.log"

             filePattern="var/sv/metrics.%d{yyyyMMdd}.log.gz">

            <PatternLayout>

                    <Pattern>%d{ISO8601} %p [%t] %c - %m%n</Pattern>

            </PatternLayout>

            <Policies>

                    <TimeBasedTriggeringPolicy />

            </Policies>

            <DefaultRolloverStrategy max="20"/>

    </RollingFile>

</Appenders>

<Loggers>

    <Logger name="com.metamx.emitter.core.LoggingEmitter" level="debug" additivity="false">

            <AppenderRef ref="RollingFile"/>

    </Logger>

    <Root level="info">

        <AppenderRef ref="Console"/>

    </Root>

</Loggers>

My Middle Manager logs just fine, but I have absolutely zero metrics from my Historical node. The same configuration works fine for Brokers as well. Do I need to configure Historical nodes in some special way to let them emit metrics?

Thank you in advance,

Nikita

Hey Nikita,

There’s a configuration ‘druid.monitoring.monitors’ that should contain a list of monitors enabled for that node. For historical nodes, you’ll probably want to add ‘io.druid.server.metrics.HistoricalMetricsMonitor’ to that list. See ‘Enabling Metrics’ on: http://druid.io/docs/0.9.1.1/configuration/index.html