Giter VIP home page Giter VIP logo

d2statcollector's People

Contributors

mijago avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

d2statcollector's Issues

[Q&A] - PVP - KDA metrics

I know SQL so i can kinda read this but im struggling here.

Looking for a way to exclude time if no values are present , aka, not null or not 0. This way the graph only shows the recorded data and not this:

image

Implement Logging

Rework the logging and implement good non-spammy logging.
We probably do not need a lot of text, but enough info to see what went wrong (in case anything went wrong).

UI for InfluxDB

Im not able to connect to the WebUI of the influxDB installed though this process (http://d2stat-influxdb:8086/) -- i was hoping that i could get to some sort of data dictionary to start making more Grafina charts.

is there any way to get to the Web Ui of influxDB?

[Enhancement] - add Best Dressed to Commendation Ratio Logic

SELECT 
max("3377580220") AS "Joy Bringer",
mean("3037314846") AS "Level-headed",
mean("3030493827") AS "Saint's Favorite",
mean("2019871317") AS "Best Dressed" 
FROM "user_profile_commendations" 
WHERE 1=1
AND ("user_displayName" =~ /^$username$/) 
AND $timeFilter 
GROUP BY time($__interval) fill(null)

image

image

Provide InfluxDB retention policies

We shall provide InfluxDB retention policies to improve data storage over a long timespan.

  • Discuss if you can do this automatically (in the docker compose file/s)
  • Discuss which policies make the most sense.
  • Keep #6 in mind.

importing example uses legacy UID

If you import your example dashboard into Grafana, you have to replace its uid "I9EdXRL4z" with the newly installed DB uid.

to do that, create a temporary new dashboard, edit it and view its JSON and copy that UID.

Go back to the imported "User stats" dashboard and edit that -- find and replace "I9EdXRL4z" (CTRL+H) with the uid you just got from the temp dashboard.

Save.

Then it will show your dashboard!

image

Update to InfluxDB 2

Right now, I use InfluxDB 1.8. We should update this to 2.x.

Goals of this issue:

  • Update InfluxDB to 2.x
  • Update the StatCollector to send to InfluxDB 2.x
  • Present a simple way to migrate data from the old InfluxDB to the new one.

[Q&A] - Home Assistant Grafana and InfluxDB

(Must have HACS installed)

Id like to use Home assistant because you can add the plugin for Grafana and influxDB from the Add-ons in Home assistant shown here:

image

be sure to then toggle the "Show inside bar" for each

Start by goign to the WebUI of InfluxDB and under InfluxDB Admin create the new DB "D2StatCollector"

  • adjust your retention policy as needed. Defaults are fine for now.
    image

I made two users: "Admin" with full privileges and a "viewer_user" with read only privileges to the "D2StatCollector" database.
image


Jump over to the Grafana tab and "Add your first datasource"

image

This next part I wasn't sure of how to go about doing so i tried this and it seemed to work -- if you have a better way -- would love to hear it.

Import Mijago's dashboard template -- we'll need ot edit the JSON and do a CTRL+H (find and replace) the datasource type value and put in D2StatCollector -- im also certain that the uid has to be updated as well.

image

once you have that corrected for your setup. The dashbaord should look like this:

image

todo: the fancy bits. (i should make more coffee)

cmd vs Powershell

I noticed that when trying to run "docker compose up" in CMD Windows 11 it was throwing error.

While in Powershell it worked as expected.

image

also, had to run that command in the folder ./D2StatCollector-master/ -- not sure if that should be specified or not in the install notes.

Error Handling

Implement good error handling and log it somewhere.

This must also take the following into account:

  • API is down for maintenance
  • API is ratelimiting us
  • Any other error

Improve thread handling

The threading right now has some issues that need to be taken care of:

  • We start the threads, but we do not keep track of them.
  • We start one thread for every clan and member. While this is fine (as the API limits us nonetheless), this can probably be optimized.

Be more merciful to the API

I do not want to be too aggressive with the Bungie API.
We should reduce the amount of calls made in a short timespan.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.