Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Store important metrics #65

Open
rgxai opened this issue May 7, 2021 · 2 comments
Open

Store important metrics #65

rgxai opened this issue May 7, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@rgxai
Copy link
Contributor

rgxai commented May 7, 2021

  • How many tweets in total were fetched in the last 24 hours
  • How many tweets were discarded
  • How many cities + resource combos have empty data
  • List of cities + resource combos with empty data
  • How many API requests from the chatbot are we getting
  • Average number of offsets (tries) before a helpful lead is found through our chatbot
@rgxai rgxai changed the title Create new collection in Database to store some important metrics Store important metrics May 7, 2021
@ms337
Copy link
Collaborator

ms337 commented May 11, 2021

  1. For every fetch log # of tweets fetched.
  2. Same for discarding + reason
  3. Write a chron job to calculate this every 6 hrs. Use logic from Apoorv's script for now. See if it can be made efficient.
  4. Save the ones found from above.
  5. When api/contacts/* is hit, log event. If api/contacts/{location}/{resource}
  6. When api/contacts/feedback, log event with the contact_id and the feedback_value.

@ms337 ms337 assigned anshulagx and unassigned SwarnimWalavalkar May 11, 2021
@ms337
Copy link
Collaborator

ms337 commented May 12, 2021

Add metric for how many tweets were added.

@SwarnimWalavalkar SwarnimWalavalkar added the enhancement New feature or request label May 16, 2021
@rgxai rgxai assigned SwarnimWalavalkar and unassigned anshulagx May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants