This page describes how to setup Grafana Promtail and Loki for sending the contents of local logs to the centralized Grafana Loki server or Grafana Cloud.
- Docker Engine
- Docker Compose
| { | |
| "workbench.editor.customLabels.patterns": { | |
| "**/src/routes/+page.svelte": "Root Page", | |
| "**/src/routes/+layout.svelte": "Root Layout", | |
| "**/src/routes/+page.ts": "Root Page Data (Universal)", | |
| "**/src/routes/+page.server.ts": "Root Page Data (Server)", | |
| "**/src/routes/+layout.server.ts": "Root Layout Data (Server)", | |
| "**/src/routes/+layout.ts": "Root Layout Data (Universal)", | |
| "**/src/routes/*/**/+page.svelte": "${dirname} - Page", | |
| "**/src/routes/*/**/+layout.svelte": "${dirname} - Layout", |
| function cmyee_allowed_mime_types( $mime_types ) { | |
| //AVIF Images | |
| $mime_types['avif'] = 'image/avif'; | |
| return $mime_types; | |
| } | |
| add_filter( 'upload_mimes', 'cmyee_allowed_mime_types', 1, 1 ); | |
| import { writable } from 'svelte/store' | |
| // returns a store with HTTP access functions for get, post, patch, delete | |
| // anytime an HTTP request is made, the store is updated and all subscribers are notified. | |
| export default function(initial) { | |
| // create the underlying store | |
| const store = writable(initial) | |
| // define a request function that will do `fetch` and update store when request finishes | |
| store.request = async (method, url, params=null) => { |