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
.env
file, add your SLACK TOKEN (found on slack here ) and Redis Host, Port, and Password to the.env
file. I used theRedisToGo
free 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-server
to expose redis locally onlocalhost:6379
) - in the
.env
file, add your DatadogAPI_KEY
andAPP_KEY
to the.env
file in this repository. DatadogHQ is a monitoring platform that's free to sign up for athttps://www.datadoghq.com/
. - in the
.env
file, add your Companies Email Domain. For exampleexamplecompany.com
,gmail.com
,wayneenterprises.com
,umbrellacorporation.com
,biffco.com
,nakatomi-corporation.com
,stricklandpropane.com
or any other very real company email domain. - in the
.env
file, indicate an environment for datadog. Do not useDD_ENV=dev
unless you've read the repository carefully. npm install
npm start
- To collect metrics, make a HTTP
GET
Request tolocalhost:3000/?sendMetrics=yes
or wherever your application is hosted (this works great hosted on (glitch.me
)[glitch.me] ). - When passing the query string parameter
sendMetrics=yes
in yourGET
Request, this application will generate agauge
metric sent to Datadog calledemoji.active
tagged with theemoji_name
representing 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 wordlist
andEmoji Sentiment Ranking
scale between-5 and 5
. You can learn more about this calculation here. - To generate an HTML report, make a HTTP
GET
Request tolocalhost:3000
or wherever your application is hosted.
- HTML Report
- Datadog Dashboard