OpenFaaS Cloud admin-bot for Slack
/users
/functions
/functions <username>
/metrics <function>
This will show the success / error count for the last 24h
window.
/logs <function>
View the last 100 lines of logs for the first pod found in the cluster with a matching function name.
Template: golang-middleware
Secret name: USERNAME-ofc-bot-secrets
Secrets literals:
basic-auth-password
- for your gateway admin usertoken
- Slack token for verification
Seal your own secrets:
export SCM_USER="alexellis"
export BASIC_AUTH=""
export SLACK_TOKEN=""
export PAYLOAD_SECRET=""
faas-cli cloud seal \
--name $SCM_USER-ofc-bot-secrets \
--literal basic-auth-password=$BASIC_AUTH \
--literal token=$SLACK_TOKEN \
--literal payload-secret=$PAYLOAD_SECRET