aerogear-attic / aerogear-attic/aerogear-app-metrics

Unique clients metric is incorrect

未关闭
#57 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
5
派生
14
PR 合并指标
30 天内没有已合并 PR

描述

## Expected Behavior
When sending metrics such as security checks, the unique client count should only increase by 1 irrespective of how many times those metrics are sent from that client.

## Actual Behavior
Each time a metric is published the unique client count increased by 1. This does not currently happen with app and device metrics - only with custom metrics such as security.

## Steps to Reproduce the Problem
The easiest way to reproduce this is using one of the showcase applications. Using the cordova application and the mobile core with metrics running:
1. Run the device and navigate to the authentication page. The unique client count in displayed in Grafana should increment by 1. If the app is rebuilt and rerun and the authentication page loaded again, the count stays at 1.
1. Navigate to the Device Trust page. This sends four metrics in a security array, as defined by this api. The count here will only increase by 1.
1. Re-load the page and the metrics will be re-sent. The unique client count will now increase by 1.

## Specifications

- Metrics API version: 0.0.12

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。