Skip to content

Commit

Permalink
Move existing version of analytics service into LTE services (#3683)
Browse files Browse the repository at this point in the history
Signed-off-by: Karthik Subraveti <ksubraveti@fb.com>
  • Loading branch information
karthiksubraveti committed Dec 9, 2020
1 parent e4e60ab commit c6e68dc
Show file tree
Hide file tree
Showing 56 changed files with 1,833 additions and 502 deletions.
37 changes: 37 additions & 0 deletions cwf/cloud/configs/cwf.yml
Expand Up @@ -9,3 +9,40 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
analytics:
metrics:
aggrMetricThreshold: 100
active_users_over_time:
export: false
enforceMinThreshold: true
labels:
- "engagement"

user_throughput:
export: false
enforceMinThreshold: true
labels:
- "qos"

user_consumption:
export: false
enforceMinThreshold: true
labels:
- "qos"

user_consumption_hourly:
export: false
enforceMinThreshold: true
labels:
- "qos"

throughput_per_ap:
export: false
labels:
- "network"

authentications_over_time:
export: false
enforceMinThreshold: true
labels:
- "network"
6 changes: 1 addition & 5 deletions cwf/cloud/configs/service_registry.yml
Expand Up @@ -11,11 +11,6 @@
# limitations under the License.

services:
analytics:
host: "localhost"
port: 9200
proxy_type: "clientcert"

cwf:
host: "localhost"
port: 9115
Expand All @@ -24,5 +19,6 @@ services:
labels:
orc8r.io/mconfig_builder: "true"
orc8r.io/obsidian_handlers: "true"
orc8r.io/analytics_collector: "true"
annotations:
orc8r.io/obsidian_handlers_path_prefixes: "/magma/v1/cwf"
2 changes: 1 addition & 1 deletion cwf/cloud/go/go.mod
Expand Up @@ -33,7 +33,7 @@ require (
github.com/pkg/errors v0.8.1
github.com/prometheus/client_golang v1.5.1
github.com/prometheus/common v0.9.1
github.com/robfig/cron/v3 v3.0.0
github.com/robfig/cron/v3 v3.0.1
github.com/stretchr/testify v1.5.1
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
google.golang.org/grpc v1.31.0
Expand Down
2 changes: 2 additions & 0 deletions cwf/cloud/go/go.sum
Expand Up @@ -478,6 +478,8 @@ github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqn
github.com/rlmcpherson/s3gof3r v0.5.0/go.mod h1:s7vv7SMDPInkitQMuZzH615G7yWHdrU2r/Go7Bo71Rs=
github.com/robfig/cron/v3 v3.0.0 h1:kQ6Cb7aHOHTSzNVNEhmp8EcWKLb4CbiMW9h9VyIhO4E=
github.com/robfig/cron/v3 v3.0.0/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
github.com/rubyist/circuitbreaker v2.2.1+incompatible/go.mod h1:Ycs3JgJADPuzJDwffe12k6BZT8hxVi6lFK+gWYJLN4A=
Expand Down
87 changes: 0 additions & 87 deletions cwf/cloud/go/services/analytics/analyzer.go

This file was deleted.

145 changes: 0 additions & 145 deletions cwf/cloud/go/services/analytics/calculations/calculations.go

This file was deleted.

0 comments on commit c6e68dc

Please sign in to comment.