Skip to content

Instantly share code, notes, and snippets.

View tsisodia10's full-sized avatar

TS tsisodia10

View GitHub Profile

Instrument the Python Chatbot application and fetch metrics with Prometheus

1. ChatBot app

import openai
import gradio as gr
import os
import threading
import time
import psutil

Chat Bot Application

Build image

Navigate to the openshift-ai directory --

docker build -t quay.io/<username>/<your_image_name> .

Push image to quay

Spin up Ansible Playbook on AAP2

  1. Create Credentials(gpg keys) --

Screenshot 2023-09-25 at 3 37 55 PM

  1. Create Project --

Ansible Platform Operator Installation

  • To run Red Hat OpenShift Container Platform clusters on Amazon Web Services with ReadWriteMany access mode, you must add NFS or other storage.

Steps -

  1. Create PV (to install ansible operator these are the pre-reqs)
apiVersion: v1
kind: PersistentVolume

Installation of Grafana

Pre-requisites

  1. Starburst operator installed
  2. MSO operator installed

MSO Instance

apiVersion: monitoring.rhobs/v1alpha1
kind: MonitoringStack
@tsisodia10
tsisodia10 / Kong-Metrics-Federation.md
Created June 7, 2022 20:39 — forked from cmwylie19/Kong-Metrics-Federation.md
Federating Kong Mesh Metrics in OpenShift

Federate Kong Mesh Metrics

We will federate the Kong Mesh Prometheus to the OpenShift Prometheus. We will then leverage OpenShift Monitoring to handle the aggregated metrics.

Slides

Pending

  • Define more Params in ServiceMonitor to dedupe metrics from Kong
  • Create PrometheusRules for Alerting when something goes down
  • Create Dashboards