Hi everyone.
A very quick follow up.
The import statements in the example collector contains ...
import org.glowroot.agent.shaded.glowroot.wire.api.model.AgentConfigOuterClass.AgentConfig;
import org.glowroot.agent.shaded.glowroot.wire.api.model.CollectorServiceOuterClass.Environment;
import org.glowroot.agent.shaded.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValue;
import org.glowroot.agent.shaded.glowroot.wire.api.model.CollectorServiceOuterClass.LogEvent;
... but /opt/glowroot/glowroot.jar contains ...
# jar tf /opt/glowroot/glowroot.jar | grep AgentConfigOuterClass.AgentConfig | head -n1
org/glowroot/agent/shaded/org/glowroot/wire/api/model/AgentConfigOuterClass$AgentConfig$AlertConfig$AlertCondition$Builder.class
So there's a missing .org. in the example code. It should read ...
import org.glowroot.agent.shaded.org.glowroot.wire.api.model.AgentConfigOuterClass.AgentConfig;
import org.glowroot.agent.shaded.org.glowroot.wire.api.model.CollectorServiceOuterClass.Environment;
import org.glowroot.agent.shaded.org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValue;
import org.glowroot.agent.shaded.org.glowroot.wire.api.model.CollectorServiceOuterClass.LogEvent;
This is based on my interpretation of the error rather than any expertise on Java programming. However, it compiled without any errors which is always a good thing!
Anthony.