Skip to content

Instantly share code, notes, and snippets.

View blooser's full-sized avatar

Blooser blooser

  • j-labs
View GitHub Profile
@blooser
blooser / logger.py
Last active June 3, 2024 04:49
Python Logging Handler for Grafana Loki
import logging
from logi_handler import LokiHandler
LOKI_URL: str = "http://loki:3100/loki/api/v1/push" # Standard loki url
logger = logging.getLogger(__name__)
loki_handler = LokiHandler(url=LOKI_URL)
@rishitells
rishitells / Jest_GitLab_CI.md
Last active December 25, 2024 22:21
Setting up Jest tests and coverage in GitLab CI

Configuring Jest Tests in GitLab CI

1. Add GitLab CI configuration file in the root

In the root of your project, add .gitlab-ci.yml with the configuration below.

image: node:latest

stages: