Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Expose per org/instanceId active_series count #1159

Closed
woodsaj opened this issue Dec 3, 2018 · 0 comments · Fixed by #1160
Closed

Expose per org/instanceId active_series count #1159

woodsaj opened this issue Dec 3, 2018 · 0 comments · Fixed by #1160
Milestone

Comments

@woodsaj
Copy link
Member

woodsaj commented Dec 3, 2018

The total number of active_series on a MT instance is available, but for multi-tenant deployments there is no way to get the number of active_series per tenant (internally represented by OrgId)

It looks like this can be simply added by changing AggMetrics.Metrics from ```

map[schema.MKey]*AggMetric

to

map[uint32]map[schema.MKey]*AggMetric

All calls to AggMetrics methods already pass a schema.MKey which has an Org field that returns the OrgId

This change to AggMetrics will then allow us to keep perOrg MetricsActive counts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants