dd slack emoji monitoring - a small express application leveraging the slack api, datadog, redis, and a few other free and open source tools to monitor slack emoji status, trends, and sentiment.
- clone this repository and cd into the root of the directory
touch .env- in the
.envfile, add your SLACK TOKEN (found on slack here ) and Redis Host, Port, and Password to the.envfile. I used theRedisToGofree plan, but a local redis server would work fine for development purposes (simply install redis by following the directions here and, in another terminal, runredis-serverto expose redis locally onlocalhost:6379) - in the
.envfile, add your DatadogAPI_KEYandAPP_KEYto the.envfile in this repository. DatadogHQ is a monitoring platform that's free to sign up for athttps://www.datadoghq.com/. - in the
.envfile, add your Companies Email Domain. For exampleexamplecompany.com,gmail.com,wayneenterprises.com,umbrellacorporation.com,biffco.com,nakatomi-corporation.com,stricklandpropane.comor any other very real company email domain. - in the
.envfile, indicate an environment for datadog. Do not useDD_ENV=devunless you've read the repository carefully. npm installnpm start
- To collect metrics, make a HTTP
GETRequest tolocalhost:3000/?sendMetrics=yesor wherever your application is hosted (this works great hosted on (glitch.me)[glitch.me] ). - When passing the query string parameter
sendMetrics=yesin yourGETRequest, this application will generate agaugemetric sent to Datadog calledemoji.activetagged with theemoji_namerepresenting the current number of times each emoji is currently being used in slack by an active employee with your company's email domain, including custom emoji. It will also generate the metricemoji.active_sentiment, that represented the average sentiment of all your Slack User's Emoji Status, according to theAFINN-165 wordlistandEmoji Sentiment Rankingscale between-5 and 5. You can learn more about this calculation here. - To generate an HTML report, make a HTTP
GETRequest tolocalhost:3000or wherever your application is hosted.
- HTML Report
- Datadog Dashboard

