wongnai / Kube Slack
Licence: mit
Kubernetes Slack Monitoring
Stars: ✭ 321
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Kube Slack
Usb Canary
A Linux or OSX tool that uses psutil to monitor devices while your computer is locked. In the case it detects someone plugging in or unplugging devices it can be configured to send you an SMS or alert you via Slack or Pushover.
Stars: ✭ 561 (+74.77%)
Mutual labels: slack, monitoring
Zabbix Slack Alertscript
Zabbix AlertScript for Slack.com chat
Stars: ✭ 406 (+26.48%)
Mutual labels: slack, monitoring
Chronos
📊 📊 📊 Monitors the health and web traffic of servers, microservices, and containers with real-time data monitoring and receive automated notifications over Slack or email.
Stars: ✭ 347 (+8.1%)
Mutual labels: slack, monitoring
Slack Watchman
Monitoring your Slack workspaces for sensitive information
Stars: ✭ 159 (-50.47%)
Mutual labels: slack, monitoring
Gatus
⛑ Gatus - Automated service health dashboard
Stars: ✭ 1,203 (+274.77%)
Mutual labels: slack, monitoring
Vigil
🚦 Microservices Status Page. Monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.).
Stars: ✭ 804 (+150.47%)
Mutual labels: slack, monitoring
Versionmonitor
Monitors different kinds of software projects for new releases
Stars: ✭ 9 (-97.2%)
Mutual labels: slack, monitoring
Graylog Plugin Slack
Graylog alarm callback for Slack
Stars: ✭ 110 (-65.73%)
Mutual labels: slack, monitoring
Slacknimate
👯 Realtime text animation for Slack chatops
Stars: ✭ 250 (-22.12%)
Mutual labels: slack, monitoring
Applicationinsights Aspnetcore
ASP.NET Core web applications monitoring
Stars: ✭ 306 (-4.67%)
Mutual labels: monitoring
Pgobserver
A battle-tested, flexible & comprehensive monitoring solution for your PostgreSQL databases
Stars: ✭ 308 (-4.05%)
Mutual labels: monitoring
Express Status Monitor
🚀 Realtime Monitoring solution for Node.js/Express.js apps, inspired by status.github.com, sponsored by https://dynobase.dev
Stars: ✭ 3,302 (+928.66%)
Mutual labels: monitoring
Monitoror
Unified monitoring wallboard — Light, ergonomic and reliable monitoring for anything.
Stars: ✭ 3,400 (+959.19%)
Mutual labels: monitoring
Action Slack
Provides the function of slack notification to GitHub Actions.
Stars: ✭ 310 (-3.43%)
Mutual labels: slack
Grafana On Raspberry
Grafana packages for raspberry pi (armv6/armv7) and aarch64/arm64
Stars: ✭ 318 (-0.93%)
Mutual labels: monitoring
kube-slack
kube-slack is a monitoring service for Kubernetes. When a pod has failed, it will publish a message in Slack channel.
Installation
- Create an incoming webhook:
- In the Slack interface, click on the gears button (Channel Settings) near the search box.
- Select "Add an app or integration"
- Search for "Incoming WebHooks"
- Click on "Add configuration"
- Select the channel you want the bot to post to and submit.
- You can customize the icon and name if you want.
- Take note of the "Webhook URL". This will be something like https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
- (optional) If your kubernetes uses RBAC, you should apply the following manifest as well:
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kube-slack
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "watch", "list"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube-slack
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kube-slack
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kube-slack
subjects:
- kind: ServiceAccount
name: kube-slack
namespace: kube-system
Load this Deployment into your Kubernetes. Make sure you set SLACK_URL
to the Webhook URL and uncomment serviceAccountName if you use RBAC
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kube-slack
namespace: kube-system
spec:
replicas: 1
revisionHistoryLimit: 3
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
name: kube-slack
labels:
app: kube-slack
spec:
# Uncomment serviceAccountName if you use RBAC.
# serviceAccountName: kube-slack
containers:
- name: kube-slack
image: willwill/kube-slack:v4.2.0
env:
- name: SLACK_URL
value: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
resources:
requests:
memory: 30M
cpu: 5m
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- key: CriticalAddonsOnly
operator: Exists
- To test, try creating a failing pod. The bot should announce in the channel after 15s with the status
ErrImagePull
. Example of failing image:
apiVersion: v1
kind: Pod
metadata:
name: kube-slack-test
spec:
containers:
- image: willwill/inexisting
name: kube-slack-test
Additionally, the following environment variables can be used:
-
TICK_RATE
: How often to update in milliseconds. (Default to 15000 or 15s) -
FLOOD_EXPIRE
: Repeat notification after this many milliseconds has passed after status returned to normal. (Default to 60000 or 60s) -
NOT_READY_MIN_TIME
: Time to wait after pod become not ready before notifying. (Default to 60000 or 60s) -
METRICS_CPU
: Enable/disable metric alerting on cpu (Default true) -
METRICS_MEMORY
: Enable/disable metric alerting on memory (Default true) -
METRICS_PERCENT
: Set percentage threshold on metric alerts (Default 80) -
METRICS_REQUESTS
: If no metrics limit defined, alert if the pod utilization is more than the resource request amount (this may be very noisy, Default false). -
KUBE_USE_KUBECONFIG
: Read Kubernetes credentials from active context in ~/.kube/config (default off) -
KUBE_USE_CLUSTER
: Read Kubernetes credentials from pod (default on) -
KUBE_NAMESPACES_ONLY
: Monitor a list of specific namespaces, specified either as json array or as a string of comma seperated values (foo_namespace,bar_namespace
). -
SLACK_CHANNEL
: Override channel to send -
SLACK_USERNAME
: Override username to send -
SLACK_PROXY
: URL of HTTP proxy used to connect to Slack -
RECOVERY_ALERT
: Set tofalse
to disable alert on pod recovery
Annotations
Pods can be marked with the following annotations:
-
kube-slack/ignore-pod
: Ignore all errors from this pod -
kube-slack/slack-channel
: Name of slack channel to notify (eg.#monitoring
)
License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].