Skip to content

Conversation

@wenzhuo4657
Copy link

原来文档中关于配置监控的方式非常模糊,甚至有一定歧义,让人误以为是配置PROM,但其实是配置数字,而这一点并未提及

@wenzhuo4657
Copy link
Author

public enum MetricsExporterType {
    DISABLE(0),
    OTLP_GRPC(1),
    PROM(2),
    LOG(3);
   public static MetricsExporterType valueOf(int value) {
        switch (value) {
            case 1:
                return OTLP_GRPC;
            case 2:
                return PROM;
            case 3:
                return LOG;
            default:
                return DISABLE;
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant