Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration SOFALookout Server #21

Open
glmapper opened this issue Jun 9, 2019 · 3 comments
Open

Integration SOFALookout Server #21

glmapper opened this issue Jun 9, 2019 · 3 comments
Labels
help wanted Extra attention is needed
Milestone

Comments

@glmapper
Copy link
Collaborator

glmapper commented Jun 9, 2019

No description provided.

@SteNicholas
Copy link

@glmapper 我认领下~

@glmapper glmapper added the help wanted Extra attention is needed label Jun 10, 2019
@glmapper glmapper added this to the 1.1.0 milestone Jun 20, 2019
@chpengzh
Copy link
Member

How's it going? @SteNicholas

@SteNicholas
Copy link

SteNicholas commented Jul 17, 2019

@glmapper
Metric data model:

public class Metric {
    private String              name;
    private double              value;
    private long                timestamp;
    // info非null时表示这是一个INFO指标
    private String              info;
    private Map<String, String> tags = new HashMap<>();
    private String              debugId;
}
public class RawMetric {
    /**
     * 当对 RawMetric 进行较大修改的时候, 可能导致读出来的数据不兼容. 此时我们只能舍弃旧数据, 这个版本号可以用于判断是否是新删数据
     */
    private int version;

    /**
     * 数据到达gateway的时间戳!!! prometheus会用这个时间戳作为数据的时间戳, 对于其他类型的数据这个字段可能作用不大
     */
    private long timestamp;

    /**
     * 本次上报的元信息
     */
    private RawMetricHead head = new RawMetricHead();

    private Map<String, String> extraTags = new HashMap<>();

    /**
     * 来源类型
     */
    private SourceType sourceType;

    /**
     * 原始请求体
     */
    private byte[] rawBody;

    /**
     * 是否是推模式
     */
    private boolean pushMode;
}
public class RawMetricHead {
    /**
     * body是否被snappy压缩, standard会用到这个字段
     */
    private boolean snappy;

    /**
     * 上报的token, 非标准importer将会进行鉴权
     */
    private String  token;

    /**
     * 上报该数据的客户端ip
     */
    private String  clientIp;

    /**
     * debug用的trace-id
     */
    private String  debugId;

    /**
     * 标准importer上报时的app字段
     */
    private String  standardAppName;

    /**
     * 标准importer上报时的优先级字段
     */
    private String  standardPriority;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants