Scripts for pushing github issue counts into datadog
Перейти к файлу
Mathieu Pillard f8ef8657c3
Deactivate the cron
2023-01-12 12:13:01 +01:00
.circleci Deactivate the cron 2023-01-12 12:13:01 +01:00
.github Create dependabot.yml 2023-01-10 17:35:42 +01:00
bin Update whiteboard tags 2021-06-25 11:17:37 +01:00
screenshots Update readme and remove mac droppings 2018-09-04 11:22:06 +01:00
.gitignore Update readme and remove mac droppings 2018-09-04 11:22:06 +01:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-29 23:59:50 -07:00
LICENSE.txt Add a license 2018-08-10 13:52:25 +01:00
README.md Change name to generalize project 2020-05-01 13:26:36 +01:00
package-lock.json Bump query-string from 6.12.1 to 8.1.0 2023-01-11 11:01:13 +00:00
package.json Bump query-string from 6.12.1 to 8.1.0 2023-01-11 11:01:13 +00:00

README.md

addons-issue-counts

Scripts for pushing add-ons specific github issue counts into influxdb. Uses github's GraphQL API and node-influx to push stats into influxdb easy graphing.

Want to use this for your own project?

  • Copy this and create your own repo. You probably don't want to fork this since you won't need to track the changes.
  • Update the query and script in bin/getGithubIssueCounts to suit your needs.
  • Be sure to update your event naming - see the prefix in measurement.
  • Add the following tokens to a .env file (to test locally) or circle-ci if you are wanting to use Circle-ci's cron to push the stats into datadog (recommended).
    • Add GH_TOKEN you should set this to public_access (no scope) since this is most likely public data.
    • Add INFLUX_DB_HOST
    • Add INFLUX_DB_PORT
    • Add INFLUX_DB_DATABASE
    • Add INFLUX_DB_USER
    • Add INFLUX_DB_PASSWORD
  • Check you're receiving data for your events in influx/grafana.
  • When you're happy run this from Circl-ci and find interesting ways to to graph the data.
  • If you make something cool with this please let me know!