Skip to content

Instantly share code, notes, and snippets.

@troeger
troeger / script.js
Created May 11, 2020 12:54
Incoming WebHook script for parsing Grafana notifications in Rocket.Chat
class Script {
process_incoming_request({ request }) {
console.log(request.content);
return {
content:{
"text": request.content.message,
"attachments": [{
"author_name": "Grafana",
"image_url": request.content.imageUrl,
"title": request.content.title
@troeger
troeger / rook_osd_zap.txt
Created August 21, 2020 19:52
Deleting an OSD in Rook
Lets assume you want to get rid of OSD.2, and none of the "nice" ways worked.
- Determine the node where the OSD daemon is running (`kubectl -n rook-ceph get pods -o wide|grep osd.2`)
- Enter the toolbox pod, run `ceph osd out 2`
- Wait for the cluster to migrate the data away (`ceph status -w`)
- Delete the Rook deployment for OSD 2.
- Enter the toolbox pod, run:
- ceph osd crush remove osd.2
- ceph auth del osd.2
- ceph osd rm 2