Skip to content

Instantly share code, notes, and snippets.

View pavanbelagatti's full-sized avatar
🎯
Focusing

Pavan Belagatti pavanbelagatti

🎯
Focusing
View GitHub Profile
@pavanbelagatti
pavanbelagatti / index.js
Created August 22, 2023 09:37
nodejs server file
import mysql from 'mysql2/promise';
import express from 'express';
// TODO: adjust these connection details to match your SingleStore deployment:
const HOST = '<your host end point>';
const USER = 'admin';
const PASSWORD = '<your password>';
const DATABASE = 'saman';
const app = express();
@pavanbelagatti
pavanbelagatti / prometheus-config.yaml
Created August 22, 2023 07:29
prometheus config file
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config
data:
prometheus.yml: |
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'nodejs-app'
@pavanbelagatti
pavanbelagatti / template.yaml
Created June 29, 2023 05:18
Harness Pipeline Template Example
template:
name: pipeline template Helm Guestbook
identifier: pipeline_template_Helm_Guestbook
versionLabel: "1.0"
type: Pipeline
projectIdentifier: TemplatesDemo
orgIdentifier: default
tags: {}
spec:
stages: