Skip to content
New issue

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

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

Already on GitHub? # to your account

Add villager metrics #33

Closed
wants to merge 2 commits into from
Closed

Add villager metrics #33

wants to merge 2 commits into from

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Mar 27, 2020

I've added a metric to count how many villagers there are. These are labelled by world type (desert, plains, etc), profession, and level.

I'm not sure what the performance impact of having 4 labels could be - do you think it will be okay? I think the 'level' label could be removed at the least.

README has been updated, unit tests added/updated, and I've bumped the version number.

I also tidied up the code a bit (unused imports, that sort of thing).

Grafana stacked graph:

image

aSemy added 2 commits March 27, 2020 15:40
              - Count number of villager per world, profession, villager type, level
              - Unit test villager metric
              - update config unit test
              - Share 'getEntityName' between entity and villager metrics
              - Slight improvement of foreach in entity metric
              - Update README for new villager metric
              - version bump
@sladkoff
Copy link
Owner

Rebased and merged manually.

Thanks @aSemy!

@sladkoff sladkoff closed this Apr 13, 2020
sladkoff added a commit that referenced this pull request Apr 13, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants