Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- platform/dbops/binaries/weaviate-src/tools/dev/bench/bench_test.go +64 -0
- platform/dbops/binaries/weaviate-src/tools/dev/bench/measure_start_time.py +32 -0
- platform/dbops/binaries/weaviate-src/tools/dev/generate_release_notes/README.md +9 -0
- platform/dbops/binaries/weaviate-src/tools/dev/generate_release_notes/generate_changes.sh +16 -0
- platform/dbops/binaries/weaviate-src/tools/dev/generate_release_notes/main.go +140 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboard_provider.yml +24 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/auto_tenant.json +232 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/backup.json +446 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/dashboard.yml +11 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/db_shards.json +332 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/dynamic.json +241 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/host_metrics_mac.json +923 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/importing.json +1155 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/index_queue.json +706 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/kubernetes.json +3164 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/lsm.json +732 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/objects.json +532 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/openai_vectoriser_metrics.json +998 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/overview.json +112 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/querying.json +883 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/replication-engine.json +862 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/schema.json +208 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/startup.json +423 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/tombstones.json +620 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/usage.json +316 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/vectorindex.json +437 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/datasource.yml +21 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/datasources/prometheus.yml +14 -0
- platform/dbops/binaries/weaviate-src/tools/dev/grafana/grafana.ini +1080 -0
- platform/dbops/binaries/weaviate-src/tools/dev/keycloak/get_token.sh +15 -0
- platform/dbops/binaries/weaviate-src/tools/dev/keycloak/import_users.sh +25 -0
- platform/dbops/binaries/weaviate-src/tools/dev/keycloak/weaviate-realm.json +1703 -0
- platform/dbops/binaries/weaviate-src/tools/dev/ollama_startup.sh +27 -0
- platform/dbops/binaries/weaviate-src/tools/dev/prometheus_config/prometheus.yml +25 -0
- platform/dbops/binaries/weaviate-src/tools/dev/restart_dev_environment.sh +123 -0
- platform/dbops/binaries/weaviate-src/tools/dev/run_debug_server.sh +21 -0
- platform/dbops/binaries/weaviate-src/tools/dev/run_dev_server.sh +1159 -0
- platform/dbops/binaries/weaviate-src/tools/dev/run_dev_server_no_network.sh +13 -0
- platform/dbops/binaries/weaviate-src/tools/dev/run_test_server.sh +11 -0
- platform/dbops/binaries/weaviate-src/tools/dev/vector_search.sh +15 -0
- platform/dbops/binaries/weaviate-src/tools/dev/windows/create_checksums.sh +88 -0
- platform/dbops/binaries/weaviate-src/tools/license_headers/header.txt +10 -0
- platform/dbops/binaries/weaviate-src/tools/license_headers/main.go +132 -0
- platform/dbops/binaries/weaviate-src/tools/release_template/main.go +154 -0
- platform/dbops/binaries/weaviate-src/tools/swagger_custom_code/main.go +72 -0
- platform/dbops/binaries/weaviate-src/tools/test/run_ci_server.sh +70 -0
- platform/dbops/binaries/weaviate-src/usecases/backup/auth_test.go +205 -0
- platform/dbops/binaries/weaviate-src/usecases/backup/backend.go +702 -0
- platform/dbops/binaries/weaviate-src/usecases/backup/backend_test.go +73 -0
- platform/dbops/binaries/weaviate-src/usecases/backup/backupper.go +190 -0
platform/dbops/binaries/weaviate-src/tools/dev/bench/bench_test.go
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
| 11 |
+
|
| 12 |
+
package main
|
| 13 |
+
|
| 14 |
+
import (
|
| 15 |
+
"fmt"
|
| 16 |
+
"testing"
|
| 17 |
+
"time"
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
var size = int(1e7)
|
| 21 |
+
|
| 22 |
+
func TestVisitedMap(t *testing.T) {
|
| 23 |
+
numbers := make([]int, size)
|
| 24 |
+
for i := range numbers {
|
| 25 |
+
numbers[i] = i
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
before := time.Now()
|
| 29 |
+
numbersContained := map[int]struct{}{}
|
| 30 |
+
fmt.Printf("init map took %s\n", time.Since(before))
|
| 31 |
+
|
| 32 |
+
before = time.Now()
|
| 33 |
+
for i := range numbers {
|
| 34 |
+
_, ok := numbersContained[i]
|
| 35 |
+
_ = ok
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
fmt.Printf("map lookups took %s\n", time.Since(before))
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
func TestVisitedList(t *testing.T) {
|
| 42 |
+
numbers := make([]int, size)
|
| 43 |
+
for i := range numbers {
|
| 44 |
+
numbers[i] = i
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
before := time.Now()
|
| 48 |
+
numbersContained := make([]bool, size)
|
| 49 |
+
fmt.Printf("init slice took %s\n", time.Since(before))
|
| 50 |
+
|
| 51 |
+
for i := range numbers {
|
| 52 |
+
if i%150 == 0 {
|
| 53 |
+
// contained := true
|
| 54 |
+
numbersContained[i] = true
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
before = time.Now()
|
| 59 |
+
for i := range numbers {
|
| 60 |
+
el := numbersContained[i]
|
| 61 |
+
_ = el
|
| 62 |
+
}
|
| 63 |
+
fmt.Printf("slice lookups took %s\n", time.Since(before))
|
| 64 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/bench/measure_start_time.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
import time
|
| 3 |
+
|
| 4 |
+
# This measures the start time of weaviate
|
| 5 |
+
#
|
| 6 |
+
# How to use:
|
| 7 |
+
# - Build a container of the weaviate code that you want to benchmark, this script assumes that you use
|
| 8 |
+
# ./tools/test/run_ci_server.sh
|
| 9 |
+
# - Import objects
|
| 10 |
+
# - Run this script, it will automatically stop/start the weaviate docker container multiple times and measure how long
|
| 11 |
+
# it takes
|
| 12 |
+
|
| 13 |
+
runs = 10
|
| 14 |
+
container_name = "weaviate-weaviate-1"
|
| 15 |
+
total_time = 0
|
| 16 |
+
|
| 17 |
+
# stop any running weaviate containers
|
| 18 |
+
subprocess.run(["docker", "stop", container_name])
|
| 19 |
+
|
| 20 |
+
for _ in range(runs):
|
| 21 |
+
start = time.time()
|
| 22 |
+
subprocess.run(["docker", "start", container_name])
|
| 23 |
+
|
| 24 |
+
# Loop until weaviate is responding
|
| 25 |
+
while True:
|
| 26 |
+
n = subprocess.run(["curl", "-s", "http://localhost:8080"])
|
| 27 |
+
if n.returncode == 0:
|
| 28 |
+
total_time += time.time()-start
|
| 29 |
+
subprocess.run(["docker", "stop", container_name])
|
| 30 |
+
break
|
| 31 |
+
|
| 32 |
+
print("Average time until weaviate responds: ", total_time/runs)
|
platform/dbops/binaries/weaviate-src/tools/dev/generate_release_notes/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Generate release notes
|
| 2 |
+
|
| 3 |
+
This project generates github release notes.
|
| 4 |
+
|
| 5 |
+
Example usage:
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
GITHUB_TOKEN="<token>" CURRENT_VERSION=v1.26.12 PREVIOUS_VERSION=v1.26.11 go run .
|
| 9 |
+
```
|
platform/dbops/binaries/weaviate-src/tools/dev/generate_release_notes/generate_changes.sh
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
CURRENT_VERSION=${1:-""}
|
| 5 |
+
PREVIOUS_VERSION=${2:-""}
|
| 6 |
+
|
| 7 |
+
if [ -z "$CURRENT_VERSION" ]; then
|
| 8 |
+
echo "<current-version> <previous-version> are missing. Usage: ./generate_changes.sh <current-version> <previous-version>"
|
| 9 |
+
exit 1
|
| 10 |
+
fi
|
| 11 |
+
if [ -z "$PREVIOUS_VERSION" ]; then
|
| 12 |
+
echo "<previous-version> is missing. Usage: ./generate_changes.sh <current-version> <previous-version>"
|
| 13 |
+
exit 1
|
| 14 |
+
fi
|
| 15 |
+
|
| 16 |
+
git --no-pager log $CURRENT_VERSION...$PREVIOUS_VERSION -P --grep="^(Merge pull request.*|.* \(\#[0-9]+\)$)" --pretty=format:'%s'
|
platform/dbops/binaries/weaviate-src/tools/dev/generate_release_notes/main.go
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
| 11 |
+
|
| 12 |
+
package main
|
| 13 |
+
|
| 14 |
+
import (
|
| 15 |
+
"encoding/json"
|
| 16 |
+
"fmt"
|
| 17 |
+
"io"
|
| 18 |
+
"log"
|
| 19 |
+
"net/http"
|
| 20 |
+
"os"
|
| 21 |
+
"os/exec"
|
| 22 |
+
"strings"
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
type pullRequest struct {
|
| 26 |
+
Number int64 `json:"number"`
|
| 27 |
+
Title string `json:"title"`
|
| 28 |
+
User githubUser `json:"user"`
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
type githubUser struct {
|
| 32 |
+
Login string `json:"login"`
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
func main() {
|
| 36 |
+
githubToken := os.Getenv("GITHUB_TOKEN")
|
| 37 |
+
if githubToken == "" {
|
| 38 |
+
fmt.Println("You need to pass GitHub token using GITHUB_TOKEN environment variable.")
|
| 39 |
+
fmt.Println("How to create a Personal Access Token:")
|
| 40 |
+
fmt.Println(" 1. Go to GitHub settings (https://github.com/settings/tokens).")
|
| 41 |
+
fmt.Println(" 2. Generate a new token with at least the repo scope for accessing pull request information.")
|
| 42 |
+
printUsage()
|
| 43 |
+
return
|
| 44 |
+
}
|
| 45 |
+
currentVersion := os.Getenv("CURRENT_VERSION")
|
| 46 |
+
if currentVersion == "" {
|
| 47 |
+
fmt.Println("You need to pass current version using CURRENT_VERSION environment variable.")
|
| 48 |
+
printUsage()
|
| 49 |
+
return
|
| 50 |
+
}
|
| 51 |
+
previousVersion := os.Getenv("PREVIOUS_VERSION")
|
| 52 |
+
if previousVersion == "" {
|
| 53 |
+
fmt.Println("You need to pass previous version using PREVIOUS_VERSION environment variable.")
|
| 54 |
+
printUsage()
|
| 55 |
+
return
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
printReleaseNotes(currentVersion, previousVersion, githubToken)
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
func printReleaseNotes(currentTag, previousTag, githubToken string) {
|
| 62 |
+
fmt.Printf("\n## Breaking Changes\n*none*\n")
|
| 63 |
+
fmt.Printf("\n## New Features\n*none*\n")
|
| 64 |
+
fmt.Printf("\n## Fixes\n")
|
| 65 |
+
printPullRequests(currentTag, previousTag, githubToken)
|
| 66 |
+
fmt.Printf("\n**Full Changelog**: https://github.com/weaviate/weaviate/compare/%s...%s\n", previousTag, currentTag)
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
func printPullRequests(currentTag, previousTag, githubToken string) {
|
| 70 |
+
cmd := exec.Command("bash", getScriptPath(), getProperTag(currentTag), getProperTag(previousTag))
|
| 71 |
+
out, err := cmd.Output()
|
| 72 |
+
fatal(err)
|
| 73 |
+
|
| 74 |
+
for _, line := range strings.Split(string(out), "\n") {
|
| 75 |
+
pr := getPullRequest(parsePullRequestNumber(line), githubToken)
|
| 76 |
+
fmt.Printf("* %s by @%s in https://github.com/weaviate/weaviate/pull/%d\n", pr.Title, pr.User.Login, pr.Number)
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
func getScriptPath() string {
|
| 81 |
+
cwd, err := os.Getwd()
|
| 82 |
+
fatal(err)
|
| 83 |
+
|
| 84 |
+
if strings.Contains(cwd, "/tools") {
|
| 85 |
+
cwd = cwd[:strings.Index(cwd, "/tools")]
|
| 86 |
+
}
|
| 87 |
+
return fmt.Sprintf("%s/tools/dev/generate_release_notes/generate_changes.sh", cwd)
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
func parsePullRequestNumber(commitTitle string) string {
|
| 91 |
+
if strings.HasPrefix(commitTitle, "Merge pull request #") {
|
| 92 |
+
parts := strings.Split(commitTitle, " ")
|
| 93 |
+
pr := strings.ReplaceAll(parts[3], "#", "")
|
| 94 |
+
return pr
|
| 95 |
+
} else {
|
| 96 |
+
parts := strings.Split(commitTitle, " (#")
|
| 97 |
+
pr := strings.ReplaceAll(parts[len(parts)-1], ")", "")
|
| 98 |
+
return pr
|
| 99 |
+
}
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
func getPullRequest(pr, githubToken string) pullRequest {
|
| 103 |
+
url := fmt.Sprintf("https://api.github.com/repos/weaviate/weaviate/pulls/%s", pr)
|
| 104 |
+
req, err := http.NewRequest("GET", url, nil)
|
| 105 |
+
fatal(err)
|
| 106 |
+
|
| 107 |
+
req.Header.Add("Accept", "application/vnd.github.v3+json")
|
| 108 |
+
req.Header.Add("Authorization", fmt.Sprintf("token %s", githubToken))
|
| 109 |
+
client := &http.Client{}
|
| 110 |
+
res, err := client.Do(req)
|
| 111 |
+
fatal(err)
|
| 112 |
+
defer res.Body.Close()
|
| 113 |
+
|
| 114 |
+
bodyBytes, err := io.ReadAll(res.Body)
|
| 115 |
+
fatal(err)
|
| 116 |
+
|
| 117 |
+
var resp pullRequest
|
| 118 |
+
err = json.Unmarshal(bodyBytes, &resp)
|
| 119 |
+
fatal(err)
|
| 120 |
+
|
| 121 |
+
return resp
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
func getProperTag(version string) string {
|
| 125 |
+
if !strings.HasPrefix(version, "v") {
|
| 126 |
+
return fmt.Sprintf("v%s", version)
|
| 127 |
+
}
|
| 128 |
+
return version
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
func fatal(err error) {
|
| 132 |
+
if err != nil {
|
| 133 |
+
log.Fatal(err)
|
| 134 |
+
}
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
func printUsage() {
|
| 138 |
+
fmt.Printf("\nExample usage:\n")
|
| 139 |
+
fmt.Printf("GITHUB_TOKEN=\"<token>\" CURRENT_VERSION=v1.26.12 PREVIOUS_VERSION=v1.26.11 go run .\n")
|
| 140 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboard_provider.yml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
apiVersion: 1
|
| 2 |
+
|
| 3 |
+
providers:
|
| 4 |
+
# <string> an unique provider name. Required
|
| 5 |
+
- name: 'weaviate dashboard provider'
|
| 6 |
+
# <int> Org id. Default to 1
|
| 7 |
+
orgId: 1
|
| 8 |
+
# <string> name of the dashboard folder.
|
| 9 |
+
folder: ''
|
| 10 |
+
# <string> folder UID. will be automatically generated if not specified
|
| 11 |
+
folderUid: ''
|
| 12 |
+
# <string> provider type. Default to 'file'
|
| 13 |
+
type: file
|
| 14 |
+
# <bool> disable dashboard deletion
|
| 15 |
+
disableDeletion: true
|
| 16 |
+
# <int> how often Grafana will scan for changed dashboards
|
| 17 |
+
updateIntervalSeconds: 10
|
| 18 |
+
# <bool> allow updating provisioned dashboards from the UI
|
| 19 |
+
allowUiUpdates: false
|
| 20 |
+
options:
|
| 21 |
+
# <string, required> path to dashboard files on disk. Required when using the 'file' type
|
| 22 |
+
path: /var/lib/grafana/dashboards
|
| 23 |
+
# <bool> use folder names from filesystem to create folders in Grafana
|
| 24 |
+
foldersFromFilesStructure: true
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/auto_tenant.json
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"type": "dashboard"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
"editable": true,
|
| 19 |
+
"fiscalYearStartMonth": 0,
|
| 20 |
+
"graphTooltip": 0,
|
| 21 |
+
"id": 15,
|
| 22 |
+
"links": [],
|
| 23 |
+
"panels": [
|
| 24 |
+
{
|
| 25 |
+
"datasource": {
|
| 26 |
+
"type": "prometheus",
|
| 27 |
+
"uid": "prometheus"
|
| 28 |
+
},
|
| 29 |
+
"fieldConfig": {
|
| 30 |
+
"defaults": {
|
| 31 |
+
"color": {
|
| 32 |
+
"mode": "palette-classic"
|
| 33 |
+
},
|
| 34 |
+
"custom": {
|
| 35 |
+
"axisBorderShow": false,
|
| 36 |
+
"axisCenteredZero": false,
|
| 37 |
+
"axisColorMode": "text",
|
| 38 |
+
"axisLabel": "",
|
| 39 |
+
"axisPlacement": "auto",
|
| 40 |
+
"barAlignment": 0,
|
| 41 |
+
"barWidthFactor": 0.6,
|
| 42 |
+
"drawStyle": "line",
|
| 43 |
+
"fillOpacity": 0,
|
| 44 |
+
"gradientMode": "none",
|
| 45 |
+
"hideFrom": {
|
| 46 |
+
"legend": false,
|
| 47 |
+
"tooltip": false,
|
| 48 |
+
"viz": false
|
| 49 |
+
},
|
| 50 |
+
"insertNulls": false,
|
| 51 |
+
"lineInterpolation": "linear",
|
| 52 |
+
"lineWidth": 1,
|
| 53 |
+
"pointSize": 5,
|
| 54 |
+
"scaleDistribution": {
|
| 55 |
+
"type": "linear"
|
| 56 |
+
},
|
| 57 |
+
"showPoints": "auto",
|
| 58 |
+
"spanNulls": false,
|
| 59 |
+
"stacking": {
|
| 60 |
+
"group": "A",
|
| 61 |
+
"mode": "none"
|
| 62 |
+
},
|
| 63 |
+
"thresholdsStyle": {
|
| 64 |
+
"mode": "off"
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
"mappings": [],
|
| 68 |
+
"thresholds": {
|
| 69 |
+
"mode": "absolute",
|
| 70 |
+
"steps": [
|
| 71 |
+
{
|
| 72 |
+
"color": "green",
|
| 73 |
+
"value": null
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"color": "red",
|
| 77 |
+
"value": 80
|
| 78 |
+
}
|
| 79 |
+
]
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
"overrides": []
|
| 83 |
+
},
|
| 84 |
+
"gridPos": {
|
| 85 |
+
"h": 8,
|
| 86 |
+
"w": 11,
|
| 87 |
+
"x": 0,
|
| 88 |
+
"y": 0
|
| 89 |
+
},
|
| 90 |
+
"id": 2,
|
| 91 |
+
"options": {
|
| 92 |
+
"legend": {
|
| 93 |
+
"calcs": [],
|
| 94 |
+
"displayMode": "list",
|
| 95 |
+
"placement": "bottom",
|
| 96 |
+
"showLegend": true
|
| 97 |
+
},
|
| 98 |
+
"tooltip": {
|
| 99 |
+
"mode": "single",
|
| 100 |
+
"sort": "none"
|
| 101 |
+
}
|
| 102 |
+
},
|
| 103 |
+
"pluginVersion": "11.4.0",
|
| 104 |
+
"targets": [
|
| 105 |
+
{
|
| 106 |
+
"editorMode": "code",
|
| 107 |
+
"expr": "weaviate_auto_tenant_total",
|
| 108 |
+
"legendFormat": "__auto",
|
| 109 |
+
"range": true,
|
| 110 |
+
"refId": "A"
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"title": "tenants count added by autotenant",
|
| 114 |
+
"type": "timeseries"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"datasource": {
|
| 118 |
+
"type": "prometheus",
|
| 119 |
+
"uid": "prometheus"
|
| 120 |
+
},
|
| 121 |
+
"fieldConfig": {
|
| 122 |
+
"defaults": {
|
| 123 |
+
"color": {
|
| 124 |
+
"mode": "palette-classic"
|
| 125 |
+
},
|
| 126 |
+
"custom": {
|
| 127 |
+
"axisBorderShow": false,
|
| 128 |
+
"axisCenteredZero": false,
|
| 129 |
+
"axisColorMode": "text",
|
| 130 |
+
"axisLabel": "",
|
| 131 |
+
"axisPlacement": "auto",
|
| 132 |
+
"barAlignment": 0,
|
| 133 |
+
"barWidthFactor": 0.6,
|
| 134 |
+
"drawStyle": "line",
|
| 135 |
+
"fillOpacity": 0,
|
| 136 |
+
"gradientMode": "none",
|
| 137 |
+
"hideFrom": {
|
| 138 |
+
"legend": false,
|
| 139 |
+
"tooltip": false,
|
| 140 |
+
"viz": false
|
| 141 |
+
},
|
| 142 |
+
"insertNulls": false,
|
| 143 |
+
"lineInterpolation": "linear",
|
| 144 |
+
"lineWidth": 1,
|
| 145 |
+
"pointSize": 5,
|
| 146 |
+
"scaleDistribution": {
|
| 147 |
+
"type": "linear"
|
| 148 |
+
},
|
| 149 |
+
"showPoints": "auto",
|
| 150 |
+
"spanNulls": false,
|
| 151 |
+
"stacking": {
|
| 152 |
+
"group": "A",
|
| 153 |
+
"mode": "none"
|
| 154 |
+
},
|
| 155 |
+
"thresholdsStyle": {
|
| 156 |
+
"mode": "off"
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
"mappings": [],
|
| 160 |
+
"thresholds": {
|
| 161 |
+
"mode": "absolute",
|
| 162 |
+
"steps": [
|
| 163 |
+
{
|
| 164 |
+
"color": "green",
|
| 165 |
+
"value": null
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"color": "red",
|
| 169 |
+
"value": 80
|
| 170 |
+
}
|
| 171 |
+
]
|
| 172 |
+
},
|
| 173 |
+
"unit": "s"
|
| 174 |
+
},
|
| 175 |
+
"overrides": []
|
| 176 |
+
},
|
| 177 |
+
"gridPos": {
|
| 178 |
+
"h": 8,
|
| 179 |
+
"w": 12,
|
| 180 |
+
"x": 11,
|
| 181 |
+
"y": 0
|
| 182 |
+
},
|
| 183 |
+
"id": 1,
|
| 184 |
+
"options": {
|
| 185 |
+
"legend": {
|
| 186 |
+
"calcs": [],
|
| 187 |
+
"displayMode": "list",
|
| 188 |
+
"placement": "bottom",
|
| 189 |
+
"showLegend": true
|
| 190 |
+
},
|
| 191 |
+
"tooltip": {
|
| 192 |
+
"mode": "single",
|
| 193 |
+
"sort": "none"
|
| 194 |
+
}
|
| 195 |
+
},
|
| 196 |
+
"pluginVersion": "11.4.0",
|
| 197 |
+
"targets": [
|
| 198 |
+
{
|
| 199 |
+
"datasource": {
|
| 200 |
+
"type": "prometheus",
|
| 201 |
+
"uid": "prometheus"
|
| 202 |
+
},
|
| 203 |
+
"editorMode": "code",
|
| 204 |
+
"exemplar": false,
|
| 205 |
+
"expr": "weaviate_auto_tenant_duration_seconds_sum/weaviate_auto_tenant_duration_seconds_count",
|
| 206 |
+
"instant": false,
|
| 207 |
+
"legendFormat": "__auto",
|
| 208 |
+
"range": true,
|
| 209 |
+
"refId": "A"
|
| 210 |
+
}
|
| 211 |
+
],
|
| 212 |
+
"title": "auto tenant durations",
|
| 213 |
+
"type": "timeseries"
|
| 214 |
+
}
|
| 215 |
+
],
|
| 216 |
+
"preload": false,
|
| 217 |
+
"schemaVersion": 40,
|
| 218 |
+
"tags": [],
|
| 219 |
+
"templating": {
|
| 220 |
+
"list": []
|
| 221 |
+
},
|
| 222 |
+
"time": {
|
| 223 |
+
"from": "now-1h",
|
| 224 |
+
"to": "now"
|
| 225 |
+
},
|
| 226 |
+
"timepicker": {},
|
| 227 |
+
"timezone": "browser",
|
| 228 |
+
"title": "New dashboard",
|
| 229 |
+
"uid": "fej6ecfjn203kf",
|
| 230 |
+
"version": 5,
|
| 231 |
+
"weekStart": ""
|
| 232 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/backup.json
ADDED
|
@@ -0,0 +1,446 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"target": {
|
| 15 |
+
"limit": 100,
|
| 16 |
+
"matchAny": false,
|
| 17 |
+
"tags": [],
|
| 18 |
+
"type": "dashboard"
|
| 19 |
+
},
|
| 20 |
+
"type": "dashboard"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"editable": true,
|
| 25 |
+
"fiscalYearStartMonth": 0,
|
| 26 |
+
"graphTooltip": 0,
|
| 27 |
+
"links": [],
|
| 28 |
+
"liveNow": false,
|
| 29 |
+
"panels": [
|
| 30 |
+
{
|
| 31 |
+
"collapsed": true,
|
| 32 |
+
"gridPos": {
|
| 33 |
+
"h": 1,
|
| 34 |
+
"w": 24,
|
| 35 |
+
"x": 0,
|
| 36 |
+
"y": 0
|
| 37 |
+
},
|
| 38 |
+
"id": 12,
|
| 39 |
+
"panels": [],
|
| 40 |
+
"title": "Times",
|
| 41 |
+
"type": "row"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"datasource": {
|
| 45 |
+
"type": "prometheus",
|
| 46 |
+
"uid": "Prometheus"
|
| 47 |
+
},
|
| 48 |
+
"fieldConfig": {
|
| 49 |
+
"defaults": {
|
| 50 |
+
"color": {
|
| 51 |
+
"mode": "palette-classic"
|
| 52 |
+
},
|
| 53 |
+
"custom": {
|
| 54 |
+
"axisCenteredZero": false,
|
| 55 |
+
"axisColorMode": "text",
|
| 56 |
+
"axisLabel": "",
|
| 57 |
+
"axisPlacement": "auto",
|
| 58 |
+
"barAlignment": 0,
|
| 59 |
+
"drawStyle": "line",
|
| 60 |
+
"fillOpacity": 0,
|
| 61 |
+
"gradientMode": "none",
|
| 62 |
+
"hideFrom": {
|
| 63 |
+
"legend": false,
|
| 64 |
+
"tooltip": false,
|
| 65 |
+
"viz": false
|
| 66 |
+
},
|
| 67 |
+
"lineInterpolation": "linear",
|
| 68 |
+
"lineWidth": 1,
|
| 69 |
+
"pointSize": 5,
|
| 70 |
+
"scaleDistribution": {
|
| 71 |
+
"type": "linear"
|
| 72 |
+
},
|
| 73 |
+
"showPoints": "auto",
|
| 74 |
+
"spanNulls": false,
|
| 75 |
+
"stacking": {
|
| 76 |
+
"group": "A",
|
| 77 |
+
"mode": "none"
|
| 78 |
+
},
|
| 79 |
+
"thresholdsStyle": {
|
| 80 |
+
"mode": "off"
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"mappings": [],
|
| 84 |
+
"thresholds": {
|
| 85 |
+
"mode": "absolute",
|
| 86 |
+
"steps": [
|
| 87 |
+
{
|
| 88 |
+
"color": "green",
|
| 89 |
+
"value": null
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"color": "red",
|
| 93 |
+
"value": 80
|
| 94 |
+
}
|
| 95 |
+
]
|
| 96 |
+
},
|
| 97 |
+
"unit": "s"
|
| 98 |
+
},
|
| 99 |
+
"overrides": []
|
| 100 |
+
},
|
| 101 |
+
"gridPos": {
|
| 102 |
+
"h": 8,
|
| 103 |
+
"w": 12,
|
| 104 |
+
"x": 0,
|
| 105 |
+
"y": 1
|
| 106 |
+
},
|
| 107 |
+
"id": 14,
|
| 108 |
+
"options": {
|
| 109 |
+
"legend": {
|
| 110 |
+
"calcs": [],
|
| 111 |
+
"displayMode": "list",
|
| 112 |
+
"placement": "bottom",
|
| 113 |
+
"showLegend": true
|
| 114 |
+
},
|
| 115 |
+
"tooltip": {
|
| 116 |
+
"mode": "single",
|
| 117 |
+
"sort": "none"
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
"targets": [
|
| 121 |
+
{
|
| 122 |
+
"datasource": {
|
| 123 |
+
"type": "prometheus",
|
| 124 |
+
"uid": "Prometheus"
|
| 125 |
+
},
|
| 126 |
+
"editorMode": "builder",
|
| 127 |
+
"expr": "backup_restore_ms_sum{}",
|
| 128 |
+
"legendFormat": "__auto",
|
| 129 |
+
"range": true,
|
| 130 |
+
"refId": "A"
|
| 131 |
+
}
|
| 132 |
+
],
|
| 133 |
+
"title": "Time spent restoring",
|
| 134 |
+
"type": "timeseries"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"datasource": {
|
| 138 |
+
"type": "prometheus",
|
| 139 |
+
"uid": "Prometheus"
|
| 140 |
+
},
|
| 141 |
+
"fieldConfig": {
|
| 142 |
+
"defaults": {
|
| 143 |
+
"color": {
|
| 144 |
+
"mode": "palette-classic"
|
| 145 |
+
},
|
| 146 |
+
"custom": {
|
| 147 |
+
"axisCenteredZero": false,
|
| 148 |
+
"axisColorMode": "text",
|
| 149 |
+
"axisLabel": "",
|
| 150 |
+
"axisPlacement": "auto",
|
| 151 |
+
"barAlignment": 0,
|
| 152 |
+
"drawStyle": "line",
|
| 153 |
+
"fillOpacity": 0,
|
| 154 |
+
"gradientMode": "none",
|
| 155 |
+
"hideFrom": {
|
| 156 |
+
"legend": false,
|
| 157 |
+
"tooltip": false,
|
| 158 |
+
"viz": false
|
| 159 |
+
},
|
| 160 |
+
"lineInterpolation": "linear",
|
| 161 |
+
"lineWidth": 1,
|
| 162 |
+
"pointSize": 5,
|
| 163 |
+
"scaleDistribution": {
|
| 164 |
+
"type": "linear"
|
| 165 |
+
},
|
| 166 |
+
"showPoints": "auto",
|
| 167 |
+
"spanNulls": false,
|
| 168 |
+
"stacking": {
|
| 169 |
+
"group": "A",
|
| 170 |
+
"mode": "none"
|
| 171 |
+
},
|
| 172 |
+
"thresholdsStyle": {
|
| 173 |
+
"mode": "off"
|
| 174 |
+
}
|
| 175 |
+
},
|
| 176 |
+
"mappings": [],
|
| 177 |
+
"thresholds": {
|
| 178 |
+
"mode": "absolute",
|
| 179 |
+
"steps": [
|
| 180 |
+
{
|
| 181 |
+
"color": "green",
|
| 182 |
+
"value": null
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"color": "red",
|
| 186 |
+
"value": 80
|
| 187 |
+
}
|
| 188 |
+
]
|
| 189 |
+
},
|
| 190 |
+
"unit": "s"
|
| 191 |
+
},
|
| 192 |
+
"overrides": []
|
| 193 |
+
},
|
| 194 |
+
"gridPos": {
|
| 195 |
+
"h": 8,
|
| 196 |
+
"w": 12,
|
| 197 |
+
"x": 12,
|
| 198 |
+
"y": 1
|
| 199 |
+
},
|
| 200 |
+
"id": 16,
|
| 201 |
+
"options": {
|
| 202 |
+
"legend": {
|
| 203 |
+
"calcs": [],
|
| 204 |
+
"displayMode": "list",
|
| 205 |
+
"placement": "bottom",
|
| 206 |
+
"showLegend": true
|
| 207 |
+
},
|
| 208 |
+
"tooltip": {
|
| 209 |
+
"mode": "single",
|
| 210 |
+
"sort": "none"
|
| 211 |
+
}
|
| 212 |
+
},
|
| 213 |
+
"targets": [
|
| 214 |
+
{
|
| 215 |
+
"datasource": {
|
| 216 |
+
"type": "prometheus",
|
| 217 |
+
"uid": "Prometheus"
|
| 218 |
+
},
|
| 219 |
+
"editorMode": "builder",
|
| 220 |
+
"expr": "backup_store_to_backend_ms_sum{}",
|
| 221 |
+
"legendFormat": "__auto",
|
| 222 |
+
"range": true,
|
| 223 |
+
"refId": "A"
|
| 224 |
+
}
|
| 225 |
+
],
|
| 226 |
+
"title": "Time spent storing",
|
| 227 |
+
"type": "timeseries"
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"collapsed": false,
|
| 231 |
+
"gridPos": {
|
| 232 |
+
"h": 1,
|
| 233 |
+
"w": 24,
|
| 234 |
+
"x": 0,
|
| 235 |
+
"y": 9
|
| 236 |
+
},
|
| 237 |
+
"id": 6,
|
| 238 |
+
"panels": [],
|
| 239 |
+
"title": "Data",
|
| 240 |
+
"type": "row"
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"datasource": {
|
| 244 |
+
"type": "prometheus",
|
| 245 |
+
"uid": "Prometheus"
|
| 246 |
+
},
|
| 247 |
+
"fieldConfig": {
|
| 248 |
+
"defaults": {
|
| 249 |
+
"color": {
|
| 250 |
+
"mode": "palette-classic"
|
| 251 |
+
},
|
| 252 |
+
"custom": {
|
| 253 |
+
"axisCenteredZero": false,
|
| 254 |
+
"axisColorMode": "text",
|
| 255 |
+
"axisLabel": "",
|
| 256 |
+
"axisPlacement": "auto",
|
| 257 |
+
"barAlignment": 0,
|
| 258 |
+
"drawStyle": "line",
|
| 259 |
+
"fillOpacity": 0,
|
| 260 |
+
"gradientMode": "none",
|
| 261 |
+
"hideFrom": {
|
| 262 |
+
"legend": false,
|
| 263 |
+
"tooltip": false,
|
| 264 |
+
"viz": false
|
| 265 |
+
},
|
| 266 |
+
"lineInterpolation": "linear",
|
| 267 |
+
"lineWidth": 1,
|
| 268 |
+
"pointSize": 5,
|
| 269 |
+
"scaleDistribution": {
|
| 270 |
+
"type": "linear"
|
| 271 |
+
},
|
| 272 |
+
"showPoints": "auto",
|
| 273 |
+
"spanNulls": false,
|
| 274 |
+
"stacking": {
|
| 275 |
+
"group": "A",
|
| 276 |
+
"mode": "none"
|
| 277 |
+
},
|
| 278 |
+
"thresholdsStyle": {
|
| 279 |
+
"mode": "off"
|
| 280 |
+
}
|
| 281 |
+
},
|
| 282 |
+
"mappings": [],
|
| 283 |
+
"thresholds": {
|
| 284 |
+
"mode": "absolute",
|
| 285 |
+
"steps": [
|
| 286 |
+
{
|
| 287 |
+
"color": "green",
|
| 288 |
+
"value": null
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"color": "red",
|
| 292 |
+
"value": 80
|
| 293 |
+
}
|
| 294 |
+
]
|
| 295 |
+
},
|
| 296 |
+
"unit": "decbytes"
|
| 297 |
+
},
|
| 298 |
+
"overrides": []
|
| 299 |
+
},
|
| 300 |
+
"gridPos": {
|
| 301 |
+
"h": 8,
|
| 302 |
+
"w": 12,
|
| 303 |
+
"x": 0,
|
| 304 |
+
"y": 10
|
| 305 |
+
},
|
| 306 |
+
"id": 10,
|
| 307 |
+
"options": {
|
| 308 |
+
"legend": {
|
| 309 |
+
"calcs": [],
|
| 310 |
+
"displayMode": "list",
|
| 311 |
+
"placement": "bottom",
|
| 312 |
+
"showLegend": true
|
| 313 |
+
},
|
| 314 |
+
"tooltip": {
|
| 315 |
+
"mode": "single",
|
| 316 |
+
"sort": "none"
|
| 317 |
+
}
|
| 318 |
+
},
|
| 319 |
+
"targets": [
|
| 320 |
+
{
|
| 321 |
+
"datasource": {
|
| 322 |
+
"type": "prometheus",
|
| 323 |
+
"uid": "Prometheus"
|
| 324 |
+
},
|
| 325 |
+
"editorMode": "builder",
|
| 326 |
+
"expr": "backup_store_data_transferred{}",
|
| 327 |
+
"legendFormat": "__auto",
|
| 328 |
+
"range": true,
|
| 329 |
+
"refId": "A"
|
| 330 |
+
}
|
| 331 |
+
],
|
| 332 |
+
"title": "Total data backed up",
|
| 333 |
+
"type": "timeseries"
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"datasource": {
|
| 337 |
+
"type": "prometheus",
|
| 338 |
+
"uid": "Prometheus"
|
| 339 |
+
},
|
| 340 |
+
"fieldConfig": {
|
| 341 |
+
"defaults": {
|
| 342 |
+
"color": {
|
| 343 |
+
"mode": "palette-classic"
|
| 344 |
+
},
|
| 345 |
+
"custom": {
|
| 346 |
+
"axisCenteredZero": false,
|
| 347 |
+
"axisColorMode": "text",
|
| 348 |
+
"axisLabel": "",
|
| 349 |
+
"axisPlacement": "auto",
|
| 350 |
+
"barAlignment": 0,
|
| 351 |
+
"drawStyle": "line",
|
| 352 |
+
"fillOpacity": 0,
|
| 353 |
+
"gradientMode": "none",
|
| 354 |
+
"hideFrom": {
|
| 355 |
+
"legend": false,
|
| 356 |
+
"tooltip": false,
|
| 357 |
+
"viz": false
|
| 358 |
+
},
|
| 359 |
+
"lineInterpolation": "linear",
|
| 360 |
+
"lineWidth": 1,
|
| 361 |
+
"pointSize": 5,
|
| 362 |
+
"scaleDistribution": {
|
| 363 |
+
"type": "linear"
|
| 364 |
+
},
|
| 365 |
+
"showPoints": "auto",
|
| 366 |
+
"spanNulls": false,
|
| 367 |
+
"stacking": {
|
| 368 |
+
"group": "A",
|
| 369 |
+
"mode": "none"
|
| 370 |
+
},
|
| 371 |
+
"thresholdsStyle": {
|
| 372 |
+
"mode": "off"
|
| 373 |
+
}
|
| 374 |
+
},
|
| 375 |
+
"mappings": [],
|
| 376 |
+
"thresholds": {
|
| 377 |
+
"mode": "absolute",
|
| 378 |
+
"steps": [
|
| 379 |
+
{
|
| 380 |
+
"color": "green",
|
| 381 |
+
"value": null
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"color": "red",
|
| 385 |
+
"value": 80
|
| 386 |
+
}
|
| 387 |
+
]
|
| 388 |
+
},
|
| 389 |
+
"unit": "decbytes"
|
| 390 |
+
},
|
| 391 |
+
"overrides": []
|
| 392 |
+
},
|
| 393 |
+
"gridPos": {
|
| 394 |
+
"h": 8,
|
| 395 |
+
"w": 12,
|
| 396 |
+
"x": 12,
|
| 397 |
+
"y": 10
|
| 398 |
+
},
|
| 399 |
+
"id": 8,
|
| 400 |
+
"options": {
|
| 401 |
+
"legend": {
|
| 402 |
+
"calcs": [],
|
| 403 |
+
"displayMode": "list",
|
| 404 |
+
"placement": "bottom",
|
| 405 |
+
"showLegend": true
|
| 406 |
+
},
|
| 407 |
+
"tooltip": {
|
| 408 |
+
"mode": "single",
|
| 409 |
+
"sort": "none"
|
| 410 |
+
}
|
| 411 |
+
},
|
| 412 |
+
"targets": [
|
| 413 |
+
{
|
| 414 |
+
"datasource": {
|
| 415 |
+
"type": "prometheus",
|
| 416 |
+
"uid": "Prometheus"
|
| 417 |
+
},
|
| 418 |
+
"editorMode": "builder",
|
| 419 |
+
"expr": "backup_restore_data_transferred{}",
|
| 420 |
+
"legendFormat": "__auto",
|
| 421 |
+
"range": true,
|
| 422 |
+
"refId": "A"
|
| 423 |
+
}
|
| 424 |
+
],
|
| 425 |
+
"title": "Total data restored",
|
| 426 |
+
"type": "timeseries"
|
| 427 |
+
}
|
| 428 |
+
],
|
| 429 |
+
"refresh": false,
|
| 430 |
+
"schemaVersion": 37,
|
| 431 |
+
"style": "dark",
|
| 432 |
+
"tags": [],
|
| 433 |
+
"templating": {
|
| 434 |
+
"list": []
|
| 435 |
+
},
|
| 436 |
+
"time": {
|
| 437 |
+
"from": "2022-09-07T09:00:22.615Z",
|
| 438 |
+
"to": "2022-09-07T12:24:45.564Z"
|
| 439 |
+
},
|
| 440 |
+
"timepicker": {},
|
| 441 |
+
"timezone": "",
|
| 442 |
+
"title": "Snapshots",
|
| 443 |
+
"uid": "juk0lQZ4z",
|
| 444 |
+
"version": 1,
|
| 445 |
+
"weekStart": ""
|
| 446 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/dashboard.yml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
apiVersion: 1
|
| 2 |
+
providers:
|
| 3 |
+
- name: 'default'
|
| 4 |
+
orgId: 1
|
| 5 |
+
folder: ''
|
| 6 |
+
type: file
|
| 7 |
+
disableDeletion: false
|
| 8 |
+
updateIntervalSeconds: 10
|
| 9 |
+
allowUiUpdates: true
|
| 10 |
+
options:
|
| 11 |
+
path: /etc/grafana/dashboards
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/db_shards.json
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"type": "dashboard"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
"editable": true,
|
| 19 |
+
"fiscalYearStartMonth": 0,
|
| 20 |
+
"graphTooltip": 0,
|
| 21 |
+
"id": 15,
|
| 22 |
+
"links": [],
|
| 23 |
+
"panels": [
|
| 24 |
+
{
|
| 25 |
+
"datasource": {
|
| 26 |
+
"type": "prometheus",
|
| 27 |
+
"uid": "prometheus"
|
| 28 |
+
},
|
| 29 |
+
"fieldConfig": {
|
| 30 |
+
"defaults": {
|
| 31 |
+
"color": {
|
| 32 |
+
"mode": "palette-classic"
|
| 33 |
+
},
|
| 34 |
+
"custom": {
|
| 35 |
+
"axisBorderShow": false,
|
| 36 |
+
"axisCenteredZero": false,
|
| 37 |
+
"axisColorMode": "text",
|
| 38 |
+
"axisLabel": "",
|
| 39 |
+
"axisPlacement": "auto",
|
| 40 |
+
"barAlignment": 0,
|
| 41 |
+
"barWidthFactor": 0.6,
|
| 42 |
+
"drawStyle": "line",
|
| 43 |
+
"fillOpacity": 0,
|
| 44 |
+
"gradientMode": "none",
|
| 45 |
+
"hideFrom": {
|
| 46 |
+
"legend": false,
|
| 47 |
+
"tooltip": false,
|
| 48 |
+
"viz": false
|
| 49 |
+
},
|
| 50 |
+
"insertNulls": false,
|
| 51 |
+
"lineInterpolation": "linear",
|
| 52 |
+
"lineWidth": 1,
|
| 53 |
+
"pointSize": 5,
|
| 54 |
+
"scaleDistribution": {
|
| 55 |
+
"type": "linear"
|
| 56 |
+
},
|
| 57 |
+
"showPoints": "auto",
|
| 58 |
+
"spanNulls": false,
|
| 59 |
+
"stacking": {
|
| 60 |
+
"group": "A",
|
| 61 |
+
"mode": "none"
|
| 62 |
+
},
|
| 63 |
+
"thresholdsStyle": {
|
| 64 |
+
"mode": "off"
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
"mappings": [],
|
| 68 |
+
"thresholds": {
|
| 69 |
+
"mode": "absolute",
|
| 70 |
+
"steps": [
|
| 71 |
+
{
|
| 72 |
+
"color": "green",
|
| 73 |
+
"value": null
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"color": "red",
|
| 77 |
+
"value": 80
|
| 78 |
+
}
|
| 79 |
+
]
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
"overrides": []
|
| 83 |
+
},
|
| 84 |
+
"gridPos": {
|
| 85 |
+
"h": 8,
|
| 86 |
+
"w": 12,
|
| 87 |
+
"x": 0,
|
| 88 |
+
"y": 0
|
| 89 |
+
},
|
| 90 |
+
"id": 4,
|
| 91 |
+
"options": {
|
| 92 |
+
"legend": {
|
| 93 |
+
"calcs": [],
|
| 94 |
+
"displayMode": "list",
|
| 95 |
+
"placement": "bottom",
|
| 96 |
+
"showLegend": true
|
| 97 |
+
},
|
| 98 |
+
"tooltip": {
|
| 99 |
+
"mode": "single",
|
| 100 |
+
"sort": "none"
|
| 101 |
+
}
|
| 102 |
+
},
|
| 103 |
+
"pluginVersion": "11.4.0",
|
| 104 |
+
"targets": [
|
| 105 |
+
{
|
| 106 |
+
"editorMode": "code",
|
| 107 |
+
"expr": "sum(weaviate_schema_shards) by (status, class_name)",
|
| 108 |
+
"legendFormat": "__auto",
|
| 109 |
+
"range": true,
|
| 110 |
+
"refId": "A"
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"title": "Schema shards per collection",
|
| 114 |
+
"type": "timeseries"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"datasource": {
|
| 118 |
+
"type": "prometheus",
|
| 119 |
+
"uid": "prometheus"
|
| 120 |
+
},
|
| 121 |
+
"fieldConfig": {
|
| 122 |
+
"defaults": {
|
| 123 |
+
"color": {
|
| 124 |
+
"mode": "palette-classic"
|
| 125 |
+
},
|
| 126 |
+
"custom": {
|
| 127 |
+
"axisBorderShow": false,
|
| 128 |
+
"axisCenteredZero": false,
|
| 129 |
+
"axisColorMode": "text",
|
| 130 |
+
"axisLabel": "",
|
| 131 |
+
"axisPlacement": "auto",
|
| 132 |
+
"barAlignment": 0,
|
| 133 |
+
"barWidthFactor": 0.6,
|
| 134 |
+
"drawStyle": "line",
|
| 135 |
+
"fillOpacity": 0,
|
| 136 |
+
"gradientMode": "none",
|
| 137 |
+
"hideFrom": {
|
| 138 |
+
"legend": false,
|
| 139 |
+
"tooltip": false,
|
| 140 |
+
"viz": false
|
| 141 |
+
},
|
| 142 |
+
"insertNulls": false,
|
| 143 |
+
"lineInterpolation": "linear",
|
| 144 |
+
"lineWidth": 1,
|
| 145 |
+
"pointSize": 5,
|
| 146 |
+
"scaleDistribution": {
|
| 147 |
+
"type": "linear"
|
| 148 |
+
},
|
| 149 |
+
"showPoints": "auto",
|
| 150 |
+
"spanNulls": false,
|
| 151 |
+
"stacking": {
|
| 152 |
+
"group": "A",
|
| 153 |
+
"mode": "none"
|
| 154 |
+
},
|
| 155 |
+
"thresholdsStyle": {
|
| 156 |
+
"mode": "off"
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
"mappings": [],
|
| 160 |
+
"thresholds": {
|
| 161 |
+
"mode": "absolute",
|
| 162 |
+
"steps": [
|
| 163 |
+
{
|
| 164 |
+
"color": "green",
|
| 165 |
+
"value": null
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"color": "red",
|
| 169 |
+
"value": 80
|
| 170 |
+
}
|
| 171 |
+
]
|
| 172 |
+
}
|
| 173 |
+
},
|
| 174 |
+
"overrides": []
|
| 175 |
+
},
|
| 176 |
+
"gridPos": {
|
| 177 |
+
"h": 8,
|
| 178 |
+
"w": 12,
|
| 179 |
+
"x": 12,
|
| 180 |
+
"y": 0
|
| 181 |
+
},
|
| 182 |
+
"id": 1,
|
| 183 |
+
"options": {
|
| 184 |
+
"legend": {
|
| 185 |
+
"calcs": [],
|
| 186 |
+
"displayMode": "list",
|
| 187 |
+
"placement": "bottom",
|
| 188 |
+
"showLegend": true
|
| 189 |
+
},
|
| 190 |
+
"tooltip": {
|
| 191 |
+
"mode": "single",
|
| 192 |
+
"sort": "none"
|
| 193 |
+
}
|
| 194 |
+
},
|
| 195 |
+
"pluginVersion": "11.4.0",
|
| 196 |
+
"targets": [
|
| 197 |
+
{
|
| 198 |
+
"datasource": {
|
| 199 |
+
"type": "prometheus",
|
| 200 |
+
"uid": "prometheus"
|
| 201 |
+
},
|
| 202 |
+
"disableTextWrap": false,
|
| 203 |
+
"editorMode": "code",
|
| 204 |
+
"expr": "weaviate_index_shards_total",
|
| 205 |
+
"fullMetaSearch": false,
|
| 206 |
+
"hide": false,
|
| 207 |
+
"includeNullMetadata": false,
|
| 208 |
+
"instant": false,
|
| 209 |
+
"legendFormat": "__auto",
|
| 210 |
+
"range": true,
|
| 211 |
+
"refId": "B",
|
| 212 |
+
"useBackend": false
|
| 213 |
+
}
|
| 214 |
+
],
|
| 215 |
+
"title": "Database shards per collection",
|
| 216 |
+
"type": "timeseries"
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"datasource": {
|
| 220 |
+
"type": "prometheus",
|
| 221 |
+
"uid": "prometheus"
|
| 222 |
+
},
|
| 223 |
+
"fieldConfig": {
|
| 224 |
+
"defaults": {
|
| 225 |
+
"color": {
|
| 226 |
+
"mode": "palette-classic"
|
| 227 |
+
},
|
| 228 |
+
"custom": {
|
| 229 |
+
"axisBorderShow": false,
|
| 230 |
+
"axisCenteredZero": false,
|
| 231 |
+
"axisColorMode": "text",
|
| 232 |
+
"axisLabel": "",
|
| 233 |
+
"axisPlacement": "auto",
|
| 234 |
+
"barAlignment": 0,
|
| 235 |
+
"barWidthFactor": 0.6,
|
| 236 |
+
"drawStyle": "line",
|
| 237 |
+
"fillOpacity": 0,
|
| 238 |
+
"gradientMode": "none",
|
| 239 |
+
"hideFrom": {
|
| 240 |
+
"legend": false,
|
| 241 |
+
"tooltip": false,
|
| 242 |
+
"viz": false
|
| 243 |
+
},
|
| 244 |
+
"insertNulls": false,
|
| 245 |
+
"lineInterpolation": "linear",
|
| 246 |
+
"lineWidth": 1,
|
| 247 |
+
"pointSize": 5,
|
| 248 |
+
"scaleDistribution": {
|
| 249 |
+
"type": "linear"
|
| 250 |
+
},
|
| 251 |
+
"showPoints": "auto",
|
| 252 |
+
"spanNulls": false,
|
| 253 |
+
"stacking": {
|
| 254 |
+
"group": "A",
|
| 255 |
+
"mode": "none"
|
| 256 |
+
},
|
| 257 |
+
"thresholdsStyle": {
|
| 258 |
+
"mode": "off"
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
"mappings": [],
|
| 262 |
+
"thresholds": {
|
| 263 |
+
"mode": "absolute",
|
| 264 |
+
"steps": [
|
| 265 |
+
{
|
| 266 |
+
"color": "green",
|
| 267 |
+
"value": null
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"color": "red",
|
| 271 |
+
"value": 80
|
| 272 |
+
}
|
| 273 |
+
]
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
"overrides": []
|
| 277 |
+
},
|
| 278 |
+
"gridPos": {
|
| 279 |
+
"h": 8,
|
| 280 |
+
"w": 12,
|
| 281 |
+
"x": 0,
|
| 282 |
+
"y": 8
|
| 283 |
+
},
|
| 284 |
+
"id": 2,
|
| 285 |
+
"options": {
|
| 286 |
+
"legend": {
|
| 287 |
+
"calcs": [],
|
| 288 |
+
"displayMode": "list",
|
| 289 |
+
"placement": "bottom",
|
| 290 |
+
"showLegend": true
|
| 291 |
+
},
|
| 292 |
+
"tooltip": {
|
| 293 |
+
"mode": "single",
|
| 294 |
+
"sort": "none"
|
| 295 |
+
}
|
| 296 |
+
},
|
| 297 |
+
"pluginVersion": "11.4.0",
|
| 298 |
+
"targets": [
|
| 299 |
+
{
|
| 300 |
+
"disableTextWrap": false,
|
| 301 |
+
"editorMode": "code",
|
| 302 |
+
"expr": "sum by (status) (rate(weaviate_index_shard_status_update_duration_seconds_sum[$__rate_interval])/rate(weaviate_index_shard_status_update_duration_seconds_count[$__rate_interval]))",
|
| 303 |
+
"fullMetaSearch": false,
|
| 304 |
+
"includeNullMetadata": true,
|
| 305 |
+
"legendFormat": "__auto",
|
| 306 |
+
"range": true,
|
| 307 |
+
"refId": "A",
|
| 308 |
+
"useBackend": false
|
| 309 |
+
}
|
| 310 |
+
],
|
| 311 |
+
"title": "Shard load time",
|
| 312 |
+
"type": "timeseries"
|
| 313 |
+
}
|
| 314 |
+
],
|
| 315 |
+
"preload": false,
|
| 316 |
+
"refresh": "5s",
|
| 317 |
+
"schemaVersion": 40,
|
| 318 |
+
"tags": [],
|
| 319 |
+
"templating": {
|
| 320 |
+
"list": []
|
| 321 |
+
},
|
| 322 |
+
"time": {
|
| 323 |
+
"from": "now-5m",
|
| 324 |
+
"to": "now"
|
| 325 |
+
},
|
| 326 |
+
"timepicker": {},
|
| 327 |
+
"timezone": "browser",
|
| 328 |
+
"title": "DB Shards Status",
|
| 329 |
+
"uid": "dej35ju98g6bke",
|
| 330 |
+
"version": 5,
|
| 331 |
+
"weekStart": ""
|
| 332 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/dynamic.json
ADDED
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": []
|
| 4 |
+
},
|
| 5 |
+
"editable": true,
|
| 6 |
+
"graphTooltip": 0,
|
| 7 |
+
"links": [],
|
| 8 |
+
"panels": [
|
| 9 |
+
{
|
| 10 |
+
"datasource": {
|
| 11 |
+
"type": "prometheus",
|
| 12 |
+
"uid": "prometheus"
|
| 13 |
+
},
|
| 14 |
+
"fieldConfig": {
|
| 15 |
+
"defaults": {
|
| 16 |
+
"custom": {
|
| 17 |
+
"align": "auto",
|
| 18 |
+
"displayMode": "auto",
|
| 19 |
+
"filterable": true,
|
| 20 |
+
"inspect": false
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"gridPos": {
|
| 25 |
+
"h": 8,
|
| 26 |
+
"w": 24,
|
| 27 |
+
"x": 0,
|
| 28 |
+
"y": 0
|
| 29 |
+
},
|
| 30 |
+
"id": 1,
|
| 31 |
+
"options": {
|
| 32 |
+
"showHeader": true,
|
| 33 |
+
"sortBy": [
|
| 34 |
+
{
|
| 35 |
+
"desc": false,
|
| 36 |
+
"displayName": "Metric"
|
| 37 |
+
}
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"targets": [
|
| 41 |
+
{
|
| 42 |
+
"datasource": {
|
| 43 |
+
"type": "prometheus",
|
| 44 |
+
"uid": "prometheus"
|
| 45 |
+
},
|
| 46 |
+
"editorMode": "code",
|
| 47 |
+
"expr": "count by(__name__) ({__name__=~\"$metric_prefix\", job=~\".+\"})",
|
| 48 |
+
"format": "table",
|
| 49 |
+
"instant": true,
|
| 50 |
+
"range": false,
|
| 51 |
+
"refId": "A"
|
| 52 |
+
}
|
| 53 |
+
],
|
| 54 |
+
"title": "Available Metrics",
|
| 55 |
+
"transformations": [
|
| 56 |
+
{
|
| 57 |
+
"id": "organize",
|
| 58 |
+
"options": {
|
| 59 |
+
"excludeByName": {},
|
| 60 |
+
"indexByName": {},
|
| 61 |
+
"renameByName": {
|
| 62 |
+
"__name__": "Metric Name",
|
| 63 |
+
"Value": "Count"
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
],
|
| 68 |
+
"type": "table"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"datasource": {
|
| 72 |
+
"type": "prometheus",
|
| 73 |
+
"uid": "prometheus"
|
| 74 |
+
},
|
| 75 |
+
"fieldConfig": {
|
| 76 |
+
"defaults": {
|
| 77 |
+
"color": {
|
| 78 |
+
"mode": "palette-classic"
|
| 79 |
+
},
|
| 80 |
+
"custom": {
|
| 81 |
+
"axisCenteredZero": false,
|
| 82 |
+
"axisColorMode": "text",
|
| 83 |
+
"axisLabel": "",
|
| 84 |
+
"axisPlacement": "auto",
|
| 85 |
+
"barAlignment": 0,
|
| 86 |
+
"drawStyle": "line",
|
| 87 |
+
"fillOpacity": 10,
|
| 88 |
+
"gradientMode": "none",
|
| 89 |
+
"hideFrom": {
|
| 90 |
+
"legend": false,
|
| 91 |
+
"tooltip": false,
|
| 92 |
+
"viz": false
|
| 93 |
+
},
|
| 94 |
+
"lineInterpolation": "linear",
|
| 95 |
+
"lineWidth": 1,
|
| 96 |
+
"pointSize": 5,
|
| 97 |
+
"scaleDistribution": {
|
| 98 |
+
"type": "linear"
|
| 99 |
+
},
|
| 100 |
+
"showPoints": "auto",
|
| 101 |
+
"spanNulls": false,
|
| 102 |
+
"stacking": {
|
| 103 |
+
"group": "A",
|
| 104 |
+
"mode": "none"
|
| 105 |
+
},
|
| 106 |
+
"thresholdsStyle": {
|
| 107 |
+
"mode": "off"
|
| 108 |
+
}
|
| 109 |
+
},
|
| 110 |
+
"mappings": [],
|
| 111 |
+
"thresholds": {
|
| 112 |
+
"mode": "absolute",
|
| 113 |
+
"steps": [
|
| 114 |
+
{
|
| 115 |
+
"color": "green",
|
| 116 |
+
"value": null
|
| 117 |
+
}
|
| 118 |
+
]
|
| 119 |
+
},
|
| 120 |
+
"unit": "short"
|
| 121 |
+
}
|
| 122 |
+
},
|
| 123 |
+
"gridPos": {
|
| 124 |
+
"h": 8,
|
| 125 |
+
"w": 24,
|
| 126 |
+
"x": 0,
|
| 127 |
+
"y": 8
|
| 128 |
+
},
|
| 129 |
+
"id": 2,
|
| 130 |
+
"options": {
|
| 131 |
+
"legend": {
|
| 132 |
+
"calcs": [
|
| 133 |
+
"lastNotNull",
|
| 134 |
+
"min",
|
| 135 |
+
"max",
|
| 136 |
+
"mean"
|
| 137 |
+
],
|
| 138 |
+
"displayMode": "table",
|
| 139 |
+
"placement": "bottom",
|
| 140 |
+
"showLegend": true
|
| 141 |
+
},
|
| 142 |
+
"tooltip": {
|
| 143 |
+
"mode": "multi",
|
| 144 |
+
"sort": "desc"
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
"targets": [
|
| 148 |
+
{
|
| 149 |
+
"datasource": {
|
| 150 |
+
"type": "prometheus",
|
| 151 |
+
"uid": "prometheus"
|
| 152 |
+
},
|
| 153 |
+
"editorMode": "code",
|
| 154 |
+
"expr": "$metric{job=~\".+\"}",
|
| 155 |
+
"instant": false,
|
| 156 |
+
"legendFormat": "{{__name__}} ({{instance}})",
|
| 157 |
+
"range": true,
|
| 158 |
+
"refId": "A"
|
| 159 |
+
}
|
| 160 |
+
],
|
| 161 |
+
"title": "Selected Metric: $metric",
|
| 162 |
+
"type": "timeseries"
|
| 163 |
+
}
|
| 164 |
+
],
|
| 165 |
+
"refresh": "5s",
|
| 166 |
+
"schemaVersion": 38,
|
| 167 |
+
"style": "dark",
|
| 168 |
+
"templating": {
|
| 169 |
+
"list": [
|
| 170 |
+
{
|
| 171 |
+
"current": {
|
| 172 |
+
"selected": false,
|
| 173 |
+
"text": "All",
|
| 174 |
+
"value": ".+"
|
| 175 |
+
},
|
| 176 |
+
"name": "metric_prefix",
|
| 177 |
+
"options": [
|
| 178 |
+
{
|
| 179 |
+
"selected": true,
|
| 180 |
+
"text": "All",
|
| 181 |
+
"value": ".+"
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"selected": false,
|
| 185 |
+
"text": "Weaviate",
|
| 186 |
+
"value": "weaviate_.+"
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"selected": false,
|
| 190 |
+
"text": "Go",
|
| 191 |
+
"value": "go_.+"
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"selected": false,
|
| 195 |
+
"text": "Process",
|
| 196 |
+
"value": "process_.+"
|
| 197 |
+
}
|
| 198 |
+
],
|
| 199 |
+
"query": "All : .+, Weaviate : weaviate_.+, Go : go_.+, Process : process_.+",
|
| 200 |
+
"queryValue": "",
|
| 201 |
+
"skipUrlSync": false,
|
| 202 |
+
"type": "custom",
|
| 203 |
+
"label": "Metric Prefix"
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"current": {
|
| 207 |
+
"selected": true,
|
| 208 |
+
"text": "up",
|
| 209 |
+
"value": "up"
|
| 210 |
+
},
|
| 211 |
+
"datasource": {
|
| 212 |
+
"type": "prometheus",
|
| 213 |
+
"uid": "prometheus"
|
| 214 |
+
},
|
| 215 |
+
"definition": "label_values({job=~\".+\"}, __name__)",
|
| 216 |
+
"hide": 0,
|
| 217 |
+
"includeAll": false,
|
| 218 |
+
"label": "Metric",
|
| 219 |
+
"multi": false,
|
| 220 |
+
"name": "metric",
|
| 221 |
+
"options": [],
|
| 222 |
+
"query": {
|
| 223 |
+
"query": "label_values({job=~\".+\"}, __name__)",
|
| 224 |
+
"refId": "PrometheusVariableQueryEditor-VariableQuery"
|
| 225 |
+
},
|
| 226 |
+
"refresh": 2,
|
| 227 |
+
"regex": "$metric_prefix",
|
| 228 |
+
"skipUrlSync": false,
|
| 229 |
+
"sort": 1,
|
| 230 |
+
"type": "query"
|
| 231 |
+
}
|
| 232 |
+
]
|
| 233 |
+
},
|
| 234 |
+
"time": {
|
| 235 |
+
"from": "now-15m",
|
| 236 |
+
"to": "now"
|
| 237 |
+
},
|
| 238 |
+
"title": "Dynamic Metrics Explorer",
|
| 239 |
+
"uid": "dynamic-metrics",
|
| 240 |
+
"version": 1
|
| 241 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/host_metrics_mac.json
ADDED
|
@@ -0,0 +1,923 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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{
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"type": "dashboard"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
"description": "A quickstart to setup Prometheus Node Exporter with preconfigured dashboards, alerting rules, and recording rules. Mac OSX.",
|
| 19 |
+
"editable": true,
|
| 20 |
+
"fiscalYearStartMonth": 0,
|
| 21 |
+
"gnetId": 15797,
|
| 22 |
+
"graphTooltip": 0,
|
| 23 |
+
"links": [],
|
| 24 |
+
"liveNow": false,
|
| 25 |
+
"panels": [
|
| 26 |
+
{
|
| 27 |
+
"aliasColors": {},
|
| 28 |
+
"bars": false,
|
| 29 |
+
"dashLength": 10,
|
| 30 |
+
"dashes": false,
|
| 31 |
+
"datasource": {
|
| 32 |
+
"uid": "$datasource"
|
| 33 |
+
},
|
| 34 |
+
"fill": 1,
|
| 35 |
+
"fillGradient": 0,
|
| 36 |
+
"gridPos": {
|
| 37 |
+
"h": 7,
|
| 38 |
+
"w": 12,
|
| 39 |
+
"x": 0,
|
| 40 |
+
"y": 0
|
| 41 |
+
},
|
| 42 |
+
"hiddenSeries": false,
|
| 43 |
+
"id": 2,
|
| 44 |
+
"legend": {
|
| 45 |
+
"alignAsTable": false,
|
| 46 |
+
"avg": false,
|
| 47 |
+
"current": false,
|
| 48 |
+
"max": false,
|
| 49 |
+
"min": false,
|
| 50 |
+
"rightSide": false,
|
| 51 |
+
"show": true,
|
| 52 |
+
"total": false,
|
| 53 |
+
"values": false
|
| 54 |
+
},
|
| 55 |
+
"lines": true,
|
| 56 |
+
"linewidth": 1,
|
| 57 |
+
"links": [],
|
| 58 |
+
"nullPointMode": "null",
|
| 59 |
+
"options": {
|
| 60 |
+
"alertThreshold": true
|
| 61 |
+
},
|
| 62 |
+
"percentage": false,
|
| 63 |
+
"pluginVersion": "10.0.3",
|
| 64 |
+
"pointradius": 5,
|
| 65 |
+
"points": false,
|
| 66 |
+
"renderer": "flot",
|
| 67 |
+
"seriesOverrides": [],
|
| 68 |
+
"spaceLength": 10,
|
| 69 |
+
"stack": true,
|
| 70 |
+
"steppedLine": false,
|
| 71 |
+
"targets": [
|
| 72 |
+
{
|
| 73 |
+
"datasource": {
|
| 74 |
+
"uid": "$datasource"
|
| 75 |
+
},
|
| 76 |
+
"expr": "(\n (1 - rate(node_cpu_seconds_total{job=\"node\", mode=\"idle\", instance=\"$instance\"}[$__interval]))\n/ ignoring(cpu) group_left\n count without (cpu)( node_cpu_seconds_total{job=\"node\", mode=\"idle\", instance=\"$instance\"})\n)\n",
|
| 77 |
+
"format": "time_series",
|
| 78 |
+
"intervalFactor": 5,
|
| 79 |
+
"legendFormat": "{{cpu}}",
|
| 80 |
+
"refId": "A"
|
| 81 |
+
}
|
| 82 |
+
],
|
| 83 |
+
"thresholds": [],
|
| 84 |
+
"timeRegions": [],
|
| 85 |
+
"title": "CPU Usage",
|
| 86 |
+
"tooltip": {
|
| 87 |
+
"shared": true,
|
| 88 |
+
"sort": 0,
|
| 89 |
+
"value_type": "individual"
|
| 90 |
+
},
|
| 91 |
+
"type": "graph",
|
| 92 |
+
"xaxis": {
|
| 93 |
+
"mode": "time",
|
| 94 |
+
"show": true,
|
| 95 |
+
"values": []
|
| 96 |
+
},
|
| 97 |
+
"yaxes": [
|
| 98 |
+
{
|
| 99 |
+
"format": "percentunit",
|
| 100 |
+
"logBase": 1,
|
| 101 |
+
"max": 1,
|
| 102 |
+
"min": 0,
|
| 103 |
+
"show": true
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"format": "percentunit",
|
| 107 |
+
"logBase": 1,
|
| 108 |
+
"max": 1,
|
| 109 |
+
"min": 0,
|
| 110 |
+
"show": true
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"yaxis": {
|
| 114 |
+
"align": false
|
| 115 |
+
}
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"aliasColors": {},
|
| 119 |
+
"bars": false,
|
| 120 |
+
"dashLength": 10,
|
| 121 |
+
"dashes": false,
|
| 122 |
+
"datasource": {
|
| 123 |
+
"uid": "$datasource"
|
| 124 |
+
},
|
| 125 |
+
"fill": 0,
|
| 126 |
+
"fillGradient": 0,
|
| 127 |
+
"gridPos": {
|
| 128 |
+
"h": 7,
|
| 129 |
+
"w": 12,
|
| 130 |
+
"x": 12,
|
| 131 |
+
"y": 0
|
| 132 |
+
},
|
| 133 |
+
"hiddenSeries": false,
|
| 134 |
+
"id": 3,
|
| 135 |
+
"legend": {
|
| 136 |
+
"alignAsTable": false,
|
| 137 |
+
"avg": false,
|
| 138 |
+
"current": false,
|
| 139 |
+
"max": false,
|
| 140 |
+
"min": false,
|
| 141 |
+
"rightSide": false,
|
| 142 |
+
"show": true,
|
| 143 |
+
"total": false,
|
| 144 |
+
"values": false
|
| 145 |
+
},
|
| 146 |
+
"lines": true,
|
| 147 |
+
"linewidth": 1,
|
| 148 |
+
"links": [],
|
| 149 |
+
"nullPointMode": "null",
|
| 150 |
+
"options": {
|
| 151 |
+
"alertThreshold": true
|
| 152 |
+
},
|
| 153 |
+
"percentage": false,
|
| 154 |
+
"pluginVersion": "10.0.3",
|
| 155 |
+
"pointradius": 5,
|
| 156 |
+
"points": false,
|
| 157 |
+
"renderer": "flot",
|
| 158 |
+
"seriesOverrides": [],
|
| 159 |
+
"spaceLength": 10,
|
| 160 |
+
"stack": false,
|
| 161 |
+
"steppedLine": false,
|
| 162 |
+
"targets": [
|
| 163 |
+
{
|
| 164 |
+
"datasource": {
|
| 165 |
+
"uid": "$datasource"
|
| 166 |
+
},
|
| 167 |
+
"expr": "node_load1{job=\"node\", instance=\"$instance\"}",
|
| 168 |
+
"format": "time_series",
|
| 169 |
+
"intervalFactor": 2,
|
| 170 |
+
"legendFormat": "1m load average",
|
| 171 |
+
"refId": "A"
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"datasource": {
|
| 175 |
+
"uid": "$datasource"
|
| 176 |
+
},
|
| 177 |
+
"expr": "node_load5{job=\"node\", instance=\"$instance\"}",
|
| 178 |
+
"format": "time_series",
|
| 179 |
+
"intervalFactor": 2,
|
| 180 |
+
"legendFormat": "5m load average",
|
| 181 |
+
"refId": "B"
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"datasource": {
|
| 185 |
+
"uid": "$datasource"
|
| 186 |
+
},
|
| 187 |
+
"expr": "node_load15{job=\"node\", instance=\"$instance\"}",
|
| 188 |
+
"format": "time_series",
|
| 189 |
+
"intervalFactor": 2,
|
| 190 |
+
"legendFormat": "15m load average",
|
| 191 |
+
"refId": "C"
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"datasource": {
|
| 195 |
+
"uid": "$datasource"
|
| 196 |
+
},
|
| 197 |
+
"expr": "count(node_cpu_seconds_total{job=\"node\", instance=\"$instance\", mode=\"idle\"})",
|
| 198 |
+
"format": "time_series",
|
| 199 |
+
"intervalFactor": 2,
|
| 200 |
+
"legendFormat": "logical cores",
|
| 201 |
+
"refId": "D"
|
| 202 |
+
}
|
| 203 |
+
],
|
| 204 |
+
"thresholds": [],
|
| 205 |
+
"timeRegions": [],
|
| 206 |
+
"title": "Load Average",
|
| 207 |
+
"tooltip": {
|
| 208 |
+
"shared": true,
|
| 209 |
+
"sort": 0,
|
| 210 |
+
"value_type": "individual"
|
| 211 |
+
},
|
| 212 |
+
"type": "graph",
|
| 213 |
+
"xaxis": {
|
| 214 |
+
"mode": "time",
|
| 215 |
+
"show": true,
|
| 216 |
+
"values": []
|
| 217 |
+
},
|
| 218 |
+
"yaxes": [
|
| 219 |
+
{
|
| 220 |
+
"format": "short",
|
| 221 |
+
"logBase": 1,
|
| 222 |
+
"min": 0,
|
| 223 |
+
"show": true
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"format": "short",
|
| 227 |
+
"logBase": 1,
|
| 228 |
+
"min": 0,
|
| 229 |
+
"show": true
|
| 230 |
+
}
|
| 231 |
+
],
|
| 232 |
+
"yaxis": {
|
| 233 |
+
"align": false
|
| 234 |
+
}
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"aliasColors": {},
|
| 238 |
+
"bars": false,
|
| 239 |
+
"dashLength": 10,
|
| 240 |
+
"dashes": false,
|
| 241 |
+
"datasource": {
|
| 242 |
+
"type": "prometheus",
|
| 243 |
+
"uid": "$datasource"
|
| 244 |
+
},
|
| 245 |
+
"fill": 0,
|
| 246 |
+
"fillGradient": 0,
|
| 247 |
+
"gridPos": {
|
| 248 |
+
"h": 7,
|
| 249 |
+
"w": 18,
|
| 250 |
+
"x": 0,
|
| 251 |
+
"y": 7
|
| 252 |
+
},
|
| 253 |
+
"hiddenSeries": false,
|
| 254 |
+
"id": 4,
|
| 255 |
+
"legend": {
|
| 256 |
+
"alignAsTable": false,
|
| 257 |
+
"avg": false,
|
| 258 |
+
"current": false,
|
| 259 |
+
"max": false,
|
| 260 |
+
"min": false,
|
| 261 |
+
"rightSide": false,
|
| 262 |
+
"show": true,
|
| 263 |
+
"total": false,
|
| 264 |
+
"values": false
|
| 265 |
+
},
|
| 266 |
+
"lines": true,
|
| 267 |
+
"linewidth": 1,
|
| 268 |
+
"links": [],
|
| 269 |
+
"nullPointMode": "null",
|
| 270 |
+
"options": {
|
| 271 |
+
"alertThreshold": true
|
| 272 |
+
},
|
| 273 |
+
"percentage": false,
|
| 274 |
+
"pluginVersion": "10.0.3",
|
| 275 |
+
"pointradius": 2,
|
| 276 |
+
"points": true,
|
| 277 |
+
"renderer": "flot",
|
| 278 |
+
"seriesOverrides": [],
|
| 279 |
+
"spaceLength": 10,
|
| 280 |
+
"stack": false,
|
| 281 |
+
"steppedLine": false,
|
| 282 |
+
"targets": [
|
| 283 |
+
{
|
| 284 |
+
"datasource": {
|
| 285 |
+
"uid": "$datasource"
|
| 286 |
+
},
|
| 287 |
+
"editorMode": "code",
|
| 288 |
+
"expr": "node_memory_total_bytes{job=\"node\", instance=\"$instance\"} - node_memory_free_bytes{job=\"node\", instance=\"$instance\"}",
|
| 289 |
+
"format": "time_series",
|
| 290 |
+
"hide": false,
|
| 291 |
+
"intervalFactor": 2,
|
| 292 |
+
"legendFormat": "memory used",
|
| 293 |
+
"range": true,
|
| 294 |
+
"refId": "D"
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"datasource": {
|
| 298 |
+
"uid": "$datasource"
|
| 299 |
+
},
|
| 300 |
+
"editorMode": "code",
|
| 301 |
+
"expr": "node_memory_total_bytes{job=\"node\", instance=\"$instance\"}",
|
| 302 |
+
"format": "time_series",
|
| 303 |
+
"hide": false,
|
| 304 |
+
"intervalFactor": 2,
|
| 305 |
+
"legendFormat": "memory total",
|
| 306 |
+
"range": true,
|
| 307 |
+
"refId": "A"
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"datasource": {
|
| 311 |
+
"uid": "$datasource"
|
| 312 |
+
},
|
| 313 |
+
"editorMode": "code",
|
| 314 |
+
"expr": "node_memory_active_bytes{job=\"node\", instance=\"$instance\"}",
|
| 315 |
+
"format": "time_series",
|
| 316 |
+
"hide": false,
|
| 317 |
+
"intervalFactor": 2,
|
| 318 |
+
"legendFormat": "memory active",
|
| 319 |
+
"range": true,
|
| 320 |
+
"refId": "B"
|
| 321 |
+
}
|
| 322 |
+
],
|
| 323 |
+
"thresholds": [],
|
| 324 |
+
"timeRegions": [],
|
| 325 |
+
"title": "Memory Usage",
|
| 326 |
+
"tooltip": {
|
| 327 |
+
"shared": true,
|
| 328 |
+
"sort": 0,
|
| 329 |
+
"value_type": "individual"
|
| 330 |
+
},
|
| 331 |
+
"type": "graph",
|
| 332 |
+
"xaxis": {
|
| 333 |
+
"mode": "time",
|
| 334 |
+
"show": true,
|
| 335 |
+
"values": []
|
| 336 |
+
},
|
| 337 |
+
"yaxes": [
|
| 338 |
+
{
|
| 339 |
+
"format": "bytes",
|
| 340 |
+
"logBase": 1,
|
| 341 |
+
"min": 0,
|
| 342 |
+
"show": true
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"format": "bytes",
|
| 346 |
+
"logBase": 1,
|
| 347 |
+
"min": 0,
|
| 348 |
+
"show": true
|
| 349 |
+
}
|
| 350 |
+
],
|
| 351 |
+
"yaxis": {
|
| 352 |
+
"align": false
|
| 353 |
+
}
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"datasource": {
|
| 357 |
+
"uid": "$datasource"
|
| 358 |
+
},
|
| 359 |
+
"fieldConfig": {
|
| 360 |
+
"defaults": {
|
| 361 |
+
"color": {
|
| 362 |
+
"mode": "thresholds"
|
| 363 |
+
},
|
| 364 |
+
"mappings": [
|
| 365 |
+
{
|
| 366 |
+
"options": {
|
| 367 |
+
"match": "null",
|
| 368 |
+
"result": {
|
| 369 |
+
"text": "N/A"
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
"type": "special"
|
| 373 |
+
}
|
| 374 |
+
],
|
| 375 |
+
"max": 100,
|
| 376 |
+
"min": 0,
|
| 377 |
+
"thresholds": {
|
| 378 |
+
"mode": "absolute",
|
| 379 |
+
"steps": [
|
| 380 |
+
{
|
| 381 |
+
"color": "rgba(50, 172, 45, 0.97)",
|
| 382 |
+
"value": null
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"color": "rgba(237, 129, 40, 0.89)",
|
| 386 |
+
"value": 80
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"color": "rgba(245, 54, 54, 0.9)",
|
| 390 |
+
"value": 90
|
| 391 |
+
}
|
| 392 |
+
]
|
| 393 |
+
},
|
| 394 |
+
"unit": "percent"
|
| 395 |
+
},
|
| 396 |
+
"overrides": []
|
| 397 |
+
},
|
| 398 |
+
"gridPos": {
|
| 399 |
+
"h": 7,
|
| 400 |
+
"w": 6,
|
| 401 |
+
"x": 18,
|
| 402 |
+
"y": 7
|
| 403 |
+
},
|
| 404 |
+
"id": 5,
|
| 405 |
+
"links": [],
|
| 406 |
+
"maxDataPoints": 100,
|
| 407 |
+
"options": {
|
| 408 |
+
"orientation": "horizontal",
|
| 409 |
+
"reduceOptions": {
|
| 410 |
+
"calcs": [
|
| 411 |
+
"lastNotNull"
|
| 412 |
+
],
|
| 413 |
+
"fields": "",
|
| 414 |
+
"values": false
|
| 415 |
+
},
|
| 416 |
+
"showThresholdLabels": false,
|
| 417 |
+
"showThresholdMarkers": true
|
| 418 |
+
},
|
| 419 |
+
"pluginVersion": "10.0.3",
|
| 420 |
+
"targets": [
|
| 421 |
+
{
|
| 422 |
+
"datasource": {
|
| 423 |
+
"uid": "$datasource"
|
| 424 |
+
},
|
| 425 |
+
"expr": "(\n avg(node_memory_active_bytes{job=\"node\", instance=\"$instance\"})\n/\n avg(node_memory_total_bytes{job=\"node\", instance=\"$instance\"})\n* 100\n)\n",
|
| 426 |
+
"format": "time_series",
|
| 427 |
+
"intervalFactor": 2,
|
| 428 |
+
"legendFormat": "",
|
| 429 |
+
"refId": "A"
|
| 430 |
+
}
|
| 431 |
+
],
|
| 432 |
+
"title": "Memory Usage (active)",
|
| 433 |
+
"type": "gauge"
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"aliasColors": {},
|
| 437 |
+
"bars": false,
|
| 438 |
+
"dashLength": 10,
|
| 439 |
+
"dashes": false,
|
| 440 |
+
"datasource": {
|
| 441 |
+
"uid": "$datasource"
|
| 442 |
+
},
|
| 443 |
+
"fill": 0,
|
| 444 |
+
"fillGradient": 0,
|
| 445 |
+
"gridPos": {
|
| 446 |
+
"h": 7,
|
| 447 |
+
"w": 12,
|
| 448 |
+
"x": 0,
|
| 449 |
+
"y": 14
|
| 450 |
+
},
|
| 451 |
+
"hiddenSeries": false,
|
| 452 |
+
"id": 6,
|
| 453 |
+
"legend": {
|
| 454 |
+
"alignAsTable": false,
|
| 455 |
+
"avg": false,
|
| 456 |
+
"current": false,
|
| 457 |
+
"max": false,
|
| 458 |
+
"min": false,
|
| 459 |
+
"rightSide": false,
|
| 460 |
+
"show": true,
|
| 461 |
+
"total": false,
|
| 462 |
+
"values": false
|
| 463 |
+
},
|
| 464 |
+
"lines": true,
|
| 465 |
+
"linewidth": 1,
|
| 466 |
+
"links": [],
|
| 467 |
+
"nullPointMode": "null",
|
| 468 |
+
"options": {
|
| 469 |
+
"alertThreshold": true
|
| 470 |
+
},
|
| 471 |
+
"percentage": false,
|
| 472 |
+
"pluginVersion": "10.0.3",
|
| 473 |
+
"pointradius": 5,
|
| 474 |
+
"points": false,
|
| 475 |
+
"renderer": "flot",
|
| 476 |
+
"seriesOverrides": [
|
| 477 |
+
{
|
| 478 |
+
"alias": "/ read| written/",
|
| 479 |
+
"yaxis": 1
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"alias": "/ io time/",
|
| 483 |
+
"yaxis": 2
|
| 484 |
+
}
|
| 485 |
+
],
|
| 486 |
+
"spaceLength": 10,
|
| 487 |
+
"stack": false,
|
| 488 |
+
"steppedLine": false,
|
| 489 |
+
"targets": [
|
| 490 |
+
{
|
| 491 |
+
"datasource": {
|
| 492 |
+
"uid": "$datasource"
|
| 493 |
+
},
|
| 494 |
+
"expr": "rate(node_disk_read_bytes_total{job=\"node\", instance=\"$instance\", device!=\"\"}[$__interval])",
|
| 495 |
+
"format": "time_series",
|
| 496 |
+
"intervalFactor": 2,
|
| 497 |
+
"legendFormat": "{{device}} read",
|
| 498 |
+
"refId": "A"
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"datasource": {
|
| 502 |
+
"uid": "$datasource"
|
| 503 |
+
},
|
| 504 |
+
"expr": "rate(node_disk_written_bytes_total{job=\"node\", instance=\"$instance\", device!=\"\"}[$__interval])",
|
| 505 |
+
"format": "time_series",
|
| 506 |
+
"intervalFactor": 2,
|
| 507 |
+
"legendFormat": "{{device}} written",
|
| 508 |
+
"refId": "B"
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"datasource": {
|
| 512 |
+
"uid": "$datasource"
|
| 513 |
+
},
|
| 514 |
+
"expr": "rate(node_disk_io_time_seconds_total{job=\"node\", instance=\"$instance\", device!=\"\"}[$__interval])",
|
| 515 |
+
"format": "time_series",
|
| 516 |
+
"intervalFactor": 2,
|
| 517 |
+
"legendFormat": "{{device}} io time",
|
| 518 |
+
"refId": "C"
|
| 519 |
+
}
|
| 520 |
+
],
|
| 521 |
+
"thresholds": [],
|
| 522 |
+
"timeRegions": [],
|
| 523 |
+
"title": "Disk I/O",
|
| 524 |
+
"tooltip": {
|
| 525 |
+
"shared": true,
|
| 526 |
+
"sort": 0,
|
| 527 |
+
"value_type": "individual"
|
| 528 |
+
},
|
| 529 |
+
"type": "graph",
|
| 530 |
+
"xaxis": {
|
| 531 |
+
"mode": "time",
|
| 532 |
+
"show": true,
|
| 533 |
+
"values": []
|
| 534 |
+
},
|
| 535 |
+
"yaxes": [
|
| 536 |
+
{
|
| 537 |
+
"format": "bytes",
|
| 538 |
+
"logBase": 1,
|
| 539 |
+
"show": true
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"format": "s",
|
| 543 |
+
"logBase": 1,
|
| 544 |
+
"show": true
|
| 545 |
+
}
|
| 546 |
+
],
|
| 547 |
+
"yaxis": {
|
| 548 |
+
"align": false
|
| 549 |
+
}
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"aliasColors": {},
|
| 553 |
+
"bars": false,
|
| 554 |
+
"dashLength": 10,
|
| 555 |
+
"dashes": false,
|
| 556 |
+
"datasource": {
|
| 557 |
+
"uid": "$datasource"
|
| 558 |
+
},
|
| 559 |
+
"fill": 1,
|
| 560 |
+
"fillGradient": 0,
|
| 561 |
+
"gridPos": {
|
| 562 |
+
"h": 7,
|
| 563 |
+
"w": 12,
|
| 564 |
+
"x": 12,
|
| 565 |
+
"y": 14
|
| 566 |
+
},
|
| 567 |
+
"hiddenSeries": false,
|
| 568 |
+
"id": 7,
|
| 569 |
+
"legend": {
|
| 570 |
+
"alignAsTable": false,
|
| 571 |
+
"avg": false,
|
| 572 |
+
"current": false,
|
| 573 |
+
"max": false,
|
| 574 |
+
"min": false,
|
| 575 |
+
"rightSide": false,
|
| 576 |
+
"show": true,
|
| 577 |
+
"total": false,
|
| 578 |
+
"values": false
|
| 579 |
+
},
|
| 580 |
+
"lines": true,
|
| 581 |
+
"linewidth": 1,
|
| 582 |
+
"links": [],
|
| 583 |
+
"nullPointMode": "null",
|
| 584 |
+
"options": {
|
| 585 |
+
"alertThreshold": true
|
| 586 |
+
},
|
| 587 |
+
"percentage": false,
|
| 588 |
+
"pluginVersion": "10.0.3",
|
| 589 |
+
"pointradius": 5,
|
| 590 |
+
"points": false,
|
| 591 |
+
"renderer": "flot",
|
| 592 |
+
"seriesOverrides": [
|
| 593 |
+
{
|
| 594 |
+
"alias": "used",
|
| 595 |
+
"color": "#E0B400"
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"alias": "available",
|
| 599 |
+
"color": "#73BF69"
|
| 600 |
+
}
|
| 601 |
+
],
|
| 602 |
+
"spaceLength": 10,
|
| 603 |
+
"stack": true,
|
| 604 |
+
"steppedLine": false,
|
| 605 |
+
"targets": [
|
| 606 |
+
{
|
| 607 |
+
"datasource": {
|
| 608 |
+
"uid": "$datasource"
|
| 609 |
+
},
|
| 610 |
+
"expr": "sum(\n max by (device) (\n node_filesystem_size_bytes{job=\"node\", instance=\"$instance\", fstype!=\"\"}\n -\n node_filesystem_avail_bytes{job=\"node\", instance=\"$instance\", fstype!=\"\"}\n )\n)\n",
|
| 611 |
+
"format": "time_series",
|
| 612 |
+
"intervalFactor": 2,
|
| 613 |
+
"legendFormat": "used",
|
| 614 |
+
"refId": "A"
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"datasource": {
|
| 618 |
+
"uid": "$datasource"
|
| 619 |
+
},
|
| 620 |
+
"expr": "sum(\n max by (device) (\n node_filesystem_avail_bytes{job=\"node\", instance=\"$instance\", fstype!=\"\"}\n )\n)\n",
|
| 621 |
+
"format": "time_series",
|
| 622 |
+
"intervalFactor": 2,
|
| 623 |
+
"legendFormat": "available",
|
| 624 |
+
"refId": "B"
|
| 625 |
+
}
|
| 626 |
+
],
|
| 627 |
+
"thresholds": [],
|
| 628 |
+
"timeRegions": [],
|
| 629 |
+
"title": "Disk Space Usage",
|
| 630 |
+
"tooltip": {
|
| 631 |
+
"shared": true,
|
| 632 |
+
"sort": 0,
|
| 633 |
+
"value_type": "individual"
|
| 634 |
+
},
|
| 635 |
+
"type": "graph",
|
| 636 |
+
"xaxis": {
|
| 637 |
+
"mode": "time",
|
| 638 |
+
"show": true,
|
| 639 |
+
"values": []
|
| 640 |
+
},
|
| 641 |
+
"yaxes": [
|
| 642 |
+
{
|
| 643 |
+
"format": "bytes",
|
| 644 |
+
"logBase": 1,
|
| 645 |
+
"min": 0,
|
| 646 |
+
"show": true
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"format": "bytes",
|
| 650 |
+
"logBase": 1,
|
| 651 |
+
"min": 0,
|
| 652 |
+
"show": true
|
| 653 |
+
}
|
| 654 |
+
],
|
| 655 |
+
"yaxis": {
|
| 656 |
+
"align": false
|
| 657 |
+
}
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"aliasColors": {},
|
| 661 |
+
"bars": false,
|
| 662 |
+
"dashLength": 10,
|
| 663 |
+
"dashes": false,
|
| 664 |
+
"datasource": {
|
| 665 |
+
"uid": "$datasource"
|
| 666 |
+
},
|
| 667 |
+
"fill": 0,
|
| 668 |
+
"fillGradient": 0,
|
| 669 |
+
"gridPos": {
|
| 670 |
+
"h": 7,
|
| 671 |
+
"w": 12,
|
| 672 |
+
"x": 0,
|
| 673 |
+
"y": 21
|
| 674 |
+
},
|
| 675 |
+
"hiddenSeries": false,
|
| 676 |
+
"id": 8,
|
| 677 |
+
"legend": {
|
| 678 |
+
"alignAsTable": false,
|
| 679 |
+
"avg": false,
|
| 680 |
+
"current": false,
|
| 681 |
+
"max": false,
|
| 682 |
+
"min": false,
|
| 683 |
+
"rightSide": false,
|
| 684 |
+
"show": true,
|
| 685 |
+
"total": false,
|
| 686 |
+
"values": false
|
| 687 |
+
},
|
| 688 |
+
"lines": true,
|
| 689 |
+
"linewidth": 1,
|
| 690 |
+
"links": [],
|
| 691 |
+
"nullPointMode": "null",
|
| 692 |
+
"options": {
|
| 693 |
+
"alertThreshold": true
|
| 694 |
+
},
|
| 695 |
+
"percentage": false,
|
| 696 |
+
"pluginVersion": "10.0.3",
|
| 697 |
+
"pointradius": 5,
|
| 698 |
+
"points": false,
|
| 699 |
+
"renderer": "flot",
|
| 700 |
+
"seriesOverrides": [],
|
| 701 |
+
"spaceLength": 10,
|
| 702 |
+
"stack": false,
|
| 703 |
+
"steppedLine": false,
|
| 704 |
+
"targets": [
|
| 705 |
+
{
|
| 706 |
+
"datasource": {
|
| 707 |
+
"uid": "$datasource"
|
| 708 |
+
},
|
| 709 |
+
"expr": "rate(node_network_receive_bytes_total{job=\"node\", instance=\"$instance\", device!=\"lo\"}[$__interval])",
|
| 710 |
+
"format": "time_series",
|
| 711 |
+
"intervalFactor": 2,
|
| 712 |
+
"legendFormat": "{{device}}",
|
| 713 |
+
"refId": "A"
|
| 714 |
+
}
|
| 715 |
+
],
|
| 716 |
+
"thresholds": [],
|
| 717 |
+
"timeRegions": [],
|
| 718 |
+
"title": "Network Received",
|
| 719 |
+
"tooltip": {
|
| 720 |
+
"shared": true,
|
| 721 |
+
"sort": 0,
|
| 722 |
+
"value_type": "individual"
|
| 723 |
+
},
|
| 724 |
+
"type": "graph",
|
| 725 |
+
"xaxis": {
|
| 726 |
+
"mode": "time",
|
| 727 |
+
"show": true,
|
| 728 |
+
"values": []
|
| 729 |
+
},
|
| 730 |
+
"yaxes": [
|
| 731 |
+
{
|
| 732 |
+
"format": "bytes",
|
| 733 |
+
"logBase": 1,
|
| 734 |
+
"min": 0,
|
| 735 |
+
"show": true
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"format": "bytes",
|
| 739 |
+
"logBase": 1,
|
| 740 |
+
"min": 0,
|
| 741 |
+
"show": true
|
| 742 |
+
}
|
| 743 |
+
],
|
| 744 |
+
"yaxis": {
|
| 745 |
+
"align": false
|
| 746 |
+
}
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"aliasColors": {},
|
| 750 |
+
"bars": false,
|
| 751 |
+
"dashLength": 10,
|
| 752 |
+
"dashes": false,
|
| 753 |
+
"datasource": {
|
| 754 |
+
"uid": "$datasource"
|
| 755 |
+
},
|
| 756 |
+
"fill": 0,
|
| 757 |
+
"fillGradient": 0,
|
| 758 |
+
"gridPos": {
|
| 759 |
+
"h": 7,
|
| 760 |
+
"w": 12,
|
| 761 |
+
"x": 12,
|
| 762 |
+
"y": 21
|
| 763 |
+
},
|
| 764 |
+
"hiddenSeries": false,
|
| 765 |
+
"id": 9,
|
| 766 |
+
"legend": {
|
| 767 |
+
"alignAsTable": false,
|
| 768 |
+
"avg": false,
|
| 769 |
+
"current": false,
|
| 770 |
+
"max": false,
|
| 771 |
+
"min": false,
|
| 772 |
+
"rightSide": false,
|
| 773 |
+
"show": true,
|
| 774 |
+
"total": false,
|
| 775 |
+
"values": false
|
| 776 |
+
},
|
| 777 |
+
"lines": true,
|
| 778 |
+
"linewidth": 1,
|
| 779 |
+
"links": [],
|
| 780 |
+
"nullPointMode": "null",
|
| 781 |
+
"options": {
|
| 782 |
+
"alertThreshold": true
|
| 783 |
+
},
|
| 784 |
+
"percentage": false,
|
| 785 |
+
"pluginVersion": "10.0.3",
|
| 786 |
+
"pointradius": 5,
|
| 787 |
+
"points": false,
|
| 788 |
+
"renderer": "flot",
|
| 789 |
+
"seriesOverrides": [],
|
| 790 |
+
"spaceLength": 10,
|
| 791 |
+
"stack": false,
|
| 792 |
+
"steppedLine": false,
|
| 793 |
+
"targets": [
|
| 794 |
+
{
|
| 795 |
+
"datasource": {
|
| 796 |
+
"uid": "$datasource"
|
| 797 |
+
},
|
| 798 |
+
"expr": "rate(node_network_transmit_bytes_total{job=\"node\", instance=\"$instance\", device!=\"lo\"}[$__interval])",
|
| 799 |
+
"format": "time_series",
|
| 800 |
+
"intervalFactor": 2,
|
| 801 |
+
"legendFormat": "{{device}}",
|
| 802 |
+
"refId": "A"
|
| 803 |
+
}
|
| 804 |
+
],
|
| 805 |
+
"thresholds": [],
|
| 806 |
+
"timeRegions": [],
|
| 807 |
+
"title": "Network Transmitted",
|
| 808 |
+
"tooltip": {
|
| 809 |
+
"shared": true,
|
| 810 |
+
"sort": 0,
|
| 811 |
+
"value_type": "individual"
|
| 812 |
+
},
|
| 813 |
+
"type": "graph",
|
| 814 |
+
"xaxis": {
|
| 815 |
+
"mode": "time",
|
| 816 |
+
"show": true,
|
| 817 |
+
"values": []
|
| 818 |
+
},
|
| 819 |
+
"yaxes": [
|
| 820 |
+
{
|
| 821 |
+
"format": "bytes",
|
| 822 |
+
"logBase": 1,
|
| 823 |
+
"min": 0,
|
| 824 |
+
"show": true
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"format": "bytes",
|
| 828 |
+
"logBase": 1,
|
| 829 |
+
"min": 0,
|
| 830 |
+
"show": true
|
| 831 |
+
}
|
| 832 |
+
],
|
| 833 |
+
"yaxis": {
|
| 834 |
+
"align": false
|
| 835 |
+
}
|
| 836 |
+
}
|
| 837 |
+
],
|
| 838 |
+
"refresh": "",
|
| 839 |
+
"schemaVersion": 38,
|
| 840 |
+
"style": "dark",
|
| 841 |
+
"tags": [],
|
| 842 |
+
"templating": {
|
| 843 |
+
"list": [
|
| 844 |
+
{
|
| 845 |
+
"current": {
|
| 846 |
+
"selected": false,
|
| 847 |
+
"text": "Prometheus",
|
| 848 |
+
"value": "Prometheus"
|
| 849 |
+
},
|
| 850 |
+
"hide": 0,
|
| 851 |
+
"includeAll": false,
|
| 852 |
+
"multi": false,
|
| 853 |
+
"name": "datasource",
|
| 854 |
+
"options": [],
|
| 855 |
+
"query": "prometheus",
|
| 856 |
+
"refresh": 1,
|
| 857 |
+
"regex": "",
|
| 858 |
+
"skipUrlSync": false,
|
| 859 |
+
"type": "datasource"
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"current": {
|
| 863 |
+
"selected": false,
|
| 864 |
+
"text": "host.docker.internal:9100",
|
| 865 |
+
"value": "host.docker.internal:9100"
|
| 866 |
+
},
|
| 867 |
+
"datasource": {
|
| 868 |
+
"type": "prometheus",
|
| 869 |
+
"uid": "$datasource"
|
| 870 |
+
},
|
| 871 |
+
"definition": "",
|
| 872 |
+
"hide": 0,
|
| 873 |
+
"includeAll": false,
|
| 874 |
+
"multi": false,
|
| 875 |
+
"name": "instance",
|
| 876 |
+
"options": [],
|
| 877 |
+
"query": "label_values(node_exporter_build_info{job=\"node\"}, instance)",
|
| 878 |
+
"refresh": 2,
|
| 879 |
+
"regex": "",
|
| 880 |
+
"skipUrlSync": false,
|
| 881 |
+
"sort": 0,
|
| 882 |
+
"tagValuesQuery": "",
|
| 883 |
+
"tagsQuery": "",
|
| 884 |
+
"type": "query",
|
| 885 |
+
"useTags": false
|
| 886 |
+
}
|
| 887 |
+
]
|
| 888 |
+
},
|
| 889 |
+
"time": {
|
| 890 |
+
"from": "now-15m",
|
| 891 |
+
"to": "now"
|
| 892 |
+
},
|
| 893 |
+
"timepicker": {
|
| 894 |
+
"refresh_intervals": [
|
| 895 |
+
"5s",
|
| 896 |
+
"10s",
|
| 897 |
+
"30s",
|
| 898 |
+
"1m",
|
| 899 |
+
"5m",
|
| 900 |
+
"15m",
|
| 901 |
+
"30m",
|
| 902 |
+
"1h",
|
| 903 |
+
"2h",
|
| 904 |
+
"1d"
|
| 905 |
+
],
|
| 906 |
+
"time_options": [
|
| 907 |
+
"5m",
|
| 908 |
+
"15m",
|
| 909 |
+
"1h",
|
| 910 |
+
"6h",
|
| 911 |
+
"12h",
|
| 912 |
+
"24h",
|
| 913 |
+
"2d",
|
| 914 |
+
"7d",
|
| 915 |
+
"30d"
|
| 916 |
+
]
|
| 917 |
+
},
|
| 918 |
+
"timezone": "browser",
|
| 919 |
+
"title": "Host Metrics Mac",
|
| 920 |
+
"uid": "node-exporter-mac",
|
| 921 |
+
"version": 1,
|
| 922 |
+
"weekStart": ""
|
| 923 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/importing.json
ADDED
|
@@ -0,0 +1,1155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "datasource",
|
| 8 |
+
"uid": "grafana"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"target": {
|
| 15 |
+
"limit": 100,
|
| 16 |
+
"matchAny": false,
|
| 17 |
+
"tags": [],
|
| 18 |
+
"type": "dashboard"
|
| 19 |
+
},
|
| 20 |
+
"type": "dashboard"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"editable": true,
|
| 25 |
+
"fiscalYearStartMonth": 0,
|
| 26 |
+
"graphTooltip": 0,
|
| 27 |
+
"links": [],
|
| 28 |
+
"liveNow": false,
|
| 29 |
+
"panels": [
|
| 30 |
+
{
|
| 31 |
+
"datasource": {
|
| 32 |
+
"type": "prometheus",
|
| 33 |
+
"uid": "Prometheus"
|
| 34 |
+
},
|
| 35 |
+
"fieldConfig": {
|
| 36 |
+
"defaults": {
|
| 37 |
+
"color": {
|
| 38 |
+
"mode": "palette-classic"
|
| 39 |
+
},
|
| 40 |
+
"custom": {
|
| 41 |
+
"axisBorderShow": false,
|
| 42 |
+
"axisCenteredZero": false,
|
| 43 |
+
"axisColorMode": "text",
|
| 44 |
+
"axisLabel": "",
|
| 45 |
+
"axisPlacement": "auto",
|
| 46 |
+
"barAlignment": 0,
|
| 47 |
+
"drawStyle": "line",
|
| 48 |
+
"fillOpacity": 0,
|
| 49 |
+
"gradientMode": "none",
|
| 50 |
+
"hideFrom": {
|
| 51 |
+
"legend": false,
|
| 52 |
+
"tooltip": false,
|
| 53 |
+
"viz": false
|
| 54 |
+
},
|
| 55 |
+
"insertNulls": false,
|
| 56 |
+
"lineInterpolation": "linear",
|
| 57 |
+
"lineWidth": 1,
|
| 58 |
+
"pointSize": 5,
|
| 59 |
+
"scaleDistribution": {
|
| 60 |
+
"type": "linear"
|
| 61 |
+
},
|
| 62 |
+
"showPoints": "auto",
|
| 63 |
+
"spanNulls": false,
|
| 64 |
+
"stacking": {
|
| 65 |
+
"group": "A",
|
| 66 |
+
"mode": "none"
|
| 67 |
+
},
|
| 68 |
+
"thresholdsStyle": {
|
| 69 |
+
"mode": "off"
|
| 70 |
+
}
|
| 71 |
+
},
|
| 72 |
+
"mappings": [],
|
| 73 |
+
"thresholds": {
|
| 74 |
+
"mode": "absolute",
|
| 75 |
+
"steps": [
|
| 76 |
+
{
|
| 77 |
+
"color": "green",
|
| 78 |
+
"value": null
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"color": "red",
|
| 82 |
+
"value": 80
|
| 83 |
+
}
|
| 84 |
+
]
|
| 85 |
+
},
|
| 86 |
+
"unit": "ms"
|
| 87 |
+
},
|
| 88 |
+
"overrides": []
|
| 89 |
+
},
|
| 90 |
+
"gridPos": {
|
| 91 |
+
"h": 9,
|
| 92 |
+
"w": 12,
|
| 93 |
+
"x": 0,
|
| 94 |
+
"y": 0
|
| 95 |
+
},
|
| 96 |
+
"id": 2,
|
| 97 |
+
"interval": "3",
|
| 98 |
+
"options": {
|
| 99 |
+
"legend": {
|
| 100 |
+
"calcs": [],
|
| 101 |
+
"displayMode": "list",
|
| 102 |
+
"placement": "bottom",
|
| 103 |
+
"showLegend": true
|
| 104 |
+
},
|
| 105 |
+
"tooltip": {
|
| 106 |
+
"maxHeight": 600,
|
| 107 |
+
"mode": "single",
|
| 108 |
+
"sort": "none"
|
| 109 |
+
}
|
| 110 |
+
},
|
| 111 |
+
"targets": [
|
| 112 |
+
{
|
| 113 |
+
"datasource": {
|
| 114 |
+
"type": "prometheus",
|
| 115 |
+
"uid": "Prometheus"
|
| 116 |
+
},
|
| 117 |
+
"exemplar": true,
|
| 118 |
+
"expr": "rate(batch_durations_ms_sum{class_name=\"n/a\"}[$__interval])/rate(batch_durations_ms_count{class_name=\"n/a\"}[$__interval])",
|
| 119 |
+
"interval": "",
|
| 120 |
+
"legendFormat": "{{operation}}",
|
| 121 |
+
"refId": "A"
|
| 122 |
+
}
|
| 123 |
+
],
|
| 124 |
+
"title": "Batch Objects Latency (Components & Totals)",
|
| 125 |
+
"type": "timeseries"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"datasource": {
|
| 129 |
+
"type": "prometheus",
|
| 130 |
+
"uid": "Prometheus"
|
| 131 |
+
},
|
| 132 |
+
"description": "",
|
| 133 |
+
"fieldConfig": {
|
| 134 |
+
"defaults": {
|
| 135 |
+
"color": {
|
| 136 |
+
"mode": "palette-classic"
|
| 137 |
+
},
|
| 138 |
+
"custom": {
|
| 139 |
+
"axisBorderShow": false,
|
| 140 |
+
"axisCenteredZero": false,
|
| 141 |
+
"axisColorMode": "text",
|
| 142 |
+
"axisLabel": "",
|
| 143 |
+
"axisPlacement": "auto",
|
| 144 |
+
"barAlignment": 0,
|
| 145 |
+
"drawStyle": "line",
|
| 146 |
+
"fillOpacity": 0,
|
| 147 |
+
"gradientMode": "none",
|
| 148 |
+
"hideFrom": {
|
| 149 |
+
"legend": false,
|
| 150 |
+
"tooltip": false,
|
| 151 |
+
"viz": false
|
| 152 |
+
},
|
| 153 |
+
"insertNulls": false,
|
| 154 |
+
"lineInterpolation": "linear",
|
| 155 |
+
"lineWidth": 1,
|
| 156 |
+
"pointSize": 5,
|
| 157 |
+
"scaleDistribution": {
|
| 158 |
+
"type": "linear"
|
| 159 |
+
},
|
| 160 |
+
"showPoints": "auto",
|
| 161 |
+
"spanNulls": false,
|
| 162 |
+
"stacking": {
|
| 163 |
+
"group": "A",
|
| 164 |
+
"mode": "none"
|
| 165 |
+
},
|
| 166 |
+
"thresholdsStyle": {
|
| 167 |
+
"mode": "off"
|
| 168 |
+
}
|
| 169 |
+
},
|
| 170 |
+
"mappings": [],
|
| 171 |
+
"thresholds": {
|
| 172 |
+
"mode": "absolute",
|
| 173 |
+
"steps": [
|
| 174 |
+
{
|
| 175 |
+
"color": "green",
|
| 176 |
+
"value": null
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"color": "red",
|
| 180 |
+
"value": 80
|
| 181 |
+
}
|
| 182 |
+
]
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
"overrides": []
|
| 186 |
+
},
|
| 187 |
+
"gridPos": {
|
| 188 |
+
"h": 9,
|
| 189 |
+
"w": 9,
|
| 190 |
+
"x": 12,
|
| 191 |
+
"y": 0
|
| 192 |
+
},
|
| 193 |
+
"id": 9,
|
| 194 |
+
"interval": "1",
|
| 195 |
+
"options": {
|
| 196 |
+
"legend": {
|
| 197 |
+
"calcs": [],
|
| 198 |
+
"displayMode": "list",
|
| 199 |
+
"placement": "bottom",
|
| 200 |
+
"showLegend": true
|
| 201 |
+
},
|
| 202 |
+
"tooltip": {
|
| 203 |
+
"maxHeight": 600,
|
| 204 |
+
"mode": "single",
|
| 205 |
+
"sort": "none"
|
| 206 |
+
}
|
| 207 |
+
},
|
| 208 |
+
"targets": [
|
| 209 |
+
{
|
| 210 |
+
"datasource": {
|
| 211 |
+
"type": "prometheus",
|
| 212 |
+
"uid": "Prometheus"
|
| 213 |
+
},
|
| 214 |
+
"exemplar": true,
|
| 215 |
+
"expr": "vector_index_tombstones{}",
|
| 216 |
+
"instant": false,
|
| 217 |
+
"interval": "",
|
| 218 |
+
"intervalFactor": 1,
|
| 219 |
+
"legendFormat": "{{class_name}} - {{shard_name}}",
|
| 220 |
+
"refId": "A"
|
| 221 |
+
}
|
| 222 |
+
],
|
| 223 |
+
"title": "Active Tombstones in HNSW index",
|
| 224 |
+
"type": "timeseries"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"datasource": {
|
| 228 |
+
"type": "prometheus",
|
| 229 |
+
"uid": "Prometheus"
|
| 230 |
+
},
|
| 231 |
+
"fieldConfig": {
|
| 232 |
+
"defaults": {
|
| 233 |
+
"color": {
|
| 234 |
+
"mode": "thresholds"
|
| 235 |
+
},
|
| 236 |
+
"mappings": [],
|
| 237 |
+
"thresholds": {
|
| 238 |
+
"mode": "absolute",
|
| 239 |
+
"steps": [
|
| 240 |
+
{
|
| 241 |
+
"color": "green",
|
| 242 |
+
"value": null
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"color": "red",
|
| 246 |
+
"value": 100000
|
| 247 |
+
}
|
| 248 |
+
]
|
| 249 |
+
}
|
| 250 |
+
},
|
| 251 |
+
"overrides": []
|
| 252 |
+
},
|
| 253 |
+
"gridPos": {
|
| 254 |
+
"h": 9,
|
| 255 |
+
"w": 3,
|
| 256 |
+
"x": 21,
|
| 257 |
+
"y": 0
|
| 258 |
+
},
|
| 259 |
+
"id": 11,
|
| 260 |
+
"options": {
|
| 261 |
+
"minVizHeight": 75,
|
| 262 |
+
"minVizWidth": 75,
|
| 263 |
+
"orientation": "auto",
|
| 264 |
+
"reduceOptions": {
|
| 265 |
+
"calcs": [
|
| 266 |
+
"lastNotNull"
|
| 267 |
+
],
|
| 268 |
+
"fields": "",
|
| 269 |
+
"values": false
|
| 270 |
+
},
|
| 271 |
+
"showThresholdLabels": false,
|
| 272 |
+
"showThresholdMarkers": true,
|
| 273 |
+
"sizing": "auto"
|
| 274 |
+
},
|
| 275 |
+
"pluginVersion": "11.0.1",
|
| 276 |
+
"targets": [
|
| 277 |
+
{
|
| 278 |
+
"datasource": {
|
| 279 |
+
"type": "prometheus",
|
| 280 |
+
"uid": "Prometheus"
|
| 281 |
+
},
|
| 282 |
+
"exemplar": true,
|
| 283 |
+
"expr": "sum(vector_index_tombstones{})",
|
| 284 |
+
"interval": "",
|
| 285 |
+
"legendFormat": "",
|
| 286 |
+
"refId": "A"
|
| 287 |
+
}
|
| 288 |
+
],
|
| 289 |
+
"title": "Currently active HNSW tombstones",
|
| 290 |
+
"type": "gauge"
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"datasource": {
|
| 294 |
+
"type": "prometheus",
|
| 295 |
+
"uid": "Prometheus"
|
| 296 |
+
},
|
| 297 |
+
"fieldConfig": {
|
| 298 |
+
"defaults": {
|
| 299 |
+
"color": {
|
| 300 |
+
"mode": "palette-classic"
|
| 301 |
+
},
|
| 302 |
+
"custom": {
|
| 303 |
+
"axisBorderShow": false,
|
| 304 |
+
"axisCenteredZero": false,
|
| 305 |
+
"axisColorMode": "text",
|
| 306 |
+
"axisLabel": "",
|
| 307 |
+
"axisPlacement": "auto",
|
| 308 |
+
"barAlignment": 0,
|
| 309 |
+
"drawStyle": "line",
|
| 310 |
+
"fillOpacity": 0,
|
| 311 |
+
"gradientMode": "none",
|
| 312 |
+
"hideFrom": {
|
| 313 |
+
"legend": false,
|
| 314 |
+
"tooltip": false,
|
| 315 |
+
"viz": false
|
| 316 |
+
},
|
| 317 |
+
"insertNulls": false,
|
| 318 |
+
"lineInterpolation": "linear",
|
| 319 |
+
"lineWidth": 1,
|
| 320 |
+
"pointSize": 5,
|
| 321 |
+
"scaleDistribution": {
|
| 322 |
+
"type": "linear"
|
| 323 |
+
},
|
| 324 |
+
"showPoints": "auto",
|
| 325 |
+
"spanNulls": false,
|
| 326 |
+
"stacking": {
|
| 327 |
+
"group": "A",
|
| 328 |
+
"mode": "none"
|
| 329 |
+
},
|
| 330 |
+
"thresholdsStyle": {
|
| 331 |
+
"mode": "off"
|
| 332 |
+
}
|
| 333 |
+
},
|
| 334 |
+
"mappings": [],
|
| 335 |
+
"thresholds": {
|
| 336 |
+
"mode": "absolute",
|
| 337 |
+
"steps": [
|
| 338 |
+
{
|
| 339 |
+
"color": "green",
|
| 340 |
+
"value": null
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"color": "red",
|
| 344 |
+
"value": 80
|
| 345 |
+
}
|
| 346 |
+
]
|
| 347 |
+
},
|
| 348 |
+
"unit": "ms"
|
| 349 |
+
},
|
| 350 |
+
"overrides": []
|
| 351 |
+
},
|
| 352 |
+
"gridPos": {
|
| 353 |
+
"h": 9,
|
| 354 |
+
"w": 12,
|
| 355 |
+
"x": 0,
|
| 356 |
+
"y": 9
|
| 357 |
+
},
|
| 358 |
+
"id": 5,
|
| 359 |
+
"interval": "3",
|
| 360 |
+
"options": {
|
| 361 |
+
"legend": {
|
| 362 |
+
"calcs": [],
|
| 363 |
+
"displayMode": "table",
|
| 364 |
+
"placement": "bottom",
|
| 365 |
+
"showLegend": true
|
| 366 |
+
},
|
| 367 |
+
"tooltip": {
|
| 368 |
+
"maxHeight": 600,
|
| 369 |
+
"mode": "single",
|
| 370 |
+
"sort": "none"
|
| 371 |
+
}
|
| 372 |
+
},
|
| 373 |
+
"targets": [
|
| 374 |
+
{
|
| 375 |
+
"datasource": {
|
| 376 |
+
"type": "prometheus",
|
| 377 |
+
"uid": "Prometheus"
|
| 378 |
+
},
|
| 379 |
+
"exemplar": true,
|
| 380 |
+
"expr": "rate(batch_durations_ms_sum{operation=\"object_storage\"}[$__interval])/rate(batch_durations_ms_count{operation=\"object_storage\"}[$__interval])",
|
| 381 |
+
"interval": "",
|
| 382 |
+
"legendFormat": "Object Storage ({{class_name}} - {{shard_name}})",
|
| 383 |
+
"refId": "A"
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"datasource": {
|
| 387 |
+
"type": "prometheus",
|
| 388 |
+
"uid": "Prometheus"
|
| 389 |
+
},
|
| 390 |
+
"exemplar": true,
|
| 391 |
+
"expr": "rate(batch_durations_ms_sum{operation=\"vector_storage\"}[$__interval])/rate(batch_durations_ms_count{operation=\"vector_storage\"}[$__interval])",
|
| 392 |
+
"hide": false,
|
| 393 |
+
"interval": "",
|
| 394 |
+
"legendFormat": "Vector Storage ({{class_name}} - {{shard_name}})",
|
| 395 |
+
"refId": "B"
|
| 396 |
+
}
|
| 397 |
+
],
|
| 398 |
+
"title": "Persistence Tasks (Object, Vector)",
|
| 399 |
+
"type": "timeseries"
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"datasource": {
|
| 403 |
+
"type": "prometheus",
|
| 404 |
+
"uid": "Prometheus"
|
| 405 |
+
},
|
| 406 |
+
"fieldConfig": {
|
| 407 |
+
"defaults": {
|
| 408 |
+
"color": {
|
| 409 |
+
"mode": "palette-classic"
|
| 410 |
+
},
|
| 411 |
+
"custom": {
|
| 412 |
+
"axisBorderShow": false,
|
| 413 |
+
"axisCenteredZero": false,
|
| 414 |
+
"axisColorMode": "text",
|
| 415 |
+
"axisLabel": "",
|
| 416 |
+
"axisPlacement": "auto",
|
| 417 |
+
"barAlignment": 0,
|
| 418 |
+
"drawStyle": "line",
|
| 419 |
+
"fillOpacity": 0,
|
| 420 |
+
"gradientMode": "none",
|
| 421 |
+
"hideFrom": {
|
| 422 |
+
"legend": false,
|
| 423 |
+
"tooltip": false,
|
| 424 |
+
"viz": false
|
| 425 |
+
},
|
| 426 |
+
"insertNulls": false,
|
| 427 |
+
"lineInterpolation": "linear",
|
| 428 |
+
"lineWidth": 1,
|
| 429 |
+
"pointSize": 5,
|
| 430 |
+
"scaleDistribution": {
|
| 431 |
+
"type": "linear"
|
| 432 |
+
},
|
| 433 |
+
"showPoints": "auto",
|
| 434 |
+
"spanNulls": false,
|
| 435 |
+
"stacking": {
|
| 436 |
+
"group": "A",
|
| 437 |
+
"mode": "none"
|
| 438 |
+
},
|
| 439 |
+
"thresholdsStyle": {
|
| 440 |
+
"mode": "off"
|
| 441 |
+
}
|
| 442 |
+
},
|
| 443 |
+
"mappings": [],
|
| 444 |
+
"thresholds": {
|
| 445 |
+
"mode": "absolute",
|
| 446 |
+
"steps": [
|
| 447 |
+
{
|
| 448 |
+
"color": "green",
|
| 449 |
+
"value": null
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"color": "red",
|
| 453 |
+
"value": 80
|
| 454 |
+
}
|
| 455 |
+
]
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
"overrides": []
|
| 459 |
+
},
|
| 460 |
+
"gridPos": {
|
| 461 |
+
"h": 8,
|
| 462 |
+
"w": 6,
|
| 463 |
+
"x": 12,
|
| 464 |
+
"y": 9
|
| 465 |
+
},
|
| 466 |
+
"id": 13,
|
| 467 |
+
"options": {
|
| 468 |
+
"legend": {
|
| 469 |
+
"calcs": [],
|
| 470 |
+
"displayMode": "list",
|
| 471 |
+
"placement": "bottom",
|
| 472 |
+
"showLegend": true
|
| 473 |
+
},
|
| 474 |
+
"tooltip": {
|
| 475 |
+
"maxHeight": 600,
|
| 476 |
+
"mode": "single",
|
| 477 |
+
"sort": "none"
|
| 478 |
+
}
|
| 479 |
+
},
|
| 480 |
+
"targets": [
|
| 481 |
+
{
|
| 482 |
+
"datasource": {
|
| 483 |
+
"type": "prometheus",
|
| 484 |
+
"uid": "Prometheus"
|
| 485 |
+
},
|
| 486 |
+
"exemplar": true,
|
| 487 |
+
"expr": "vector_index_tombstone_cleanup_threads{}",
|
| 488 |
+
"interval": "",
|
| 489 |
+
"legendFormat": "{{class_name}} - {{shard_name}}",
|
| 490 |
+
"refId": "A"
|
| 491 |
+
}
|
| 492 |
+
],
|
| 493 |
+
"title": "Active Tombstone Cleanup Threads",
|
| 494 |
+
"type": "timeseries"
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"datasource": {
|
| 498 |
+
"type": "prometheus",
|
| 499 |
+
"uid": "Prometheus"
|
| 500 |
+
},
|
| 501 |
+
"fieldConfig": {
|
| 502 |
+
"defaults": {
|
| 503 |
+
"color": {
|
| 504 |
+
"mode": "thresholds"
|
| 505 |
+
},
|
| 506 |
+
"mappings": [],
|
| 507 |
+
"thresholds": {
|
| 508 |
+
"mode": "absolute",
|
| 509 |
+
"steps": [
|
| 510 |
+
{
|
| 511 |
+
"color": "green",
|
| 512 |
+
"value": null
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"color": "red",
|
| 516 |
+
"value": 80
|
| 517 |
+
}
|
| 518 |
+
]
|
| 519 |
+
}
|
| 520 |
+
},
|
| 521 |
+
"overrides": []
|
| 522 |
+
},
|
| 523 |
+
"gridPos": {
|
| 524 |
+
"h": 8,
|
| 525 |
+
"w": 3,
|
| 526 |
+
"x": 18,
|
| 527 |
+
"y": 9
|
| 528 |
+
},
|
| 529 |
+
"id": 15,
|
| 530 |
+
"options": {
|
| 531 |
+
"minVizHeight": 75,
|
| 532 |
+
"minVizWidth": 75,
|
| 533 |
+
"orientation": "auto",
|
| 534 |
+
"reduceOptions": {
|
| 535 |
+
"calcs": [
|
| 536 |
+
"lastNotNull"
|
| 537 |
+
],
|
| 538 |
+
"fields": "",
|
| 539 |
+
"values": false
|
| 540 |
+
},
|
| 541 |
+
"showThresholdLabels": false,
|
| 542 |
+
"showThresholdMarkers": true,
|
| 543 |
+
"sizing": "auto"
|
| 544 |
+
},
|
| 545 |
+
"pluginVersion": "11.0.1",
|
| 546 |
+
"targets": [
|
| 547 |
+
{
|
| 548 |
+
"datasource": {
|
| 549 |
+
"type": "prometheus",
|
| 550 |
+
"uid": "Prometheus"
|
| 551 |
+
},
|
| 552 |
+
"exemplar": true,
|
| 553 |
+
"expr": "sum(vector_index_tombstone_cleanup_threads{})",
|
| 554 |
+
"interval": "",
|
| 555 |
+
"legendFormat": "",
|
| 556 |
+
"refId": "A"
|
| 557 |
+
}
|
| 558 |
+
],
|
| 559 |
+
"title": "Active Tombstone Cleanup Threads",
|
| 560 |
+
"type": "gauge"
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"datasource": {
|
| 564 |
+
"type": "prometheus",
|
| 565 |
+
"uid": "Prometheus"
|
| 566 |
+
},
|
| 567 |
+
"description": "If a node had an outgoing connection to another node that received a tombstone it must be reassigned.",
|
| 568 |
+
"fieldConfig": {
|
| 569 |
+
"defaults": {
|
| 570 |
+
"color": {
|
| 571 |
+
"mode": "thresholds"
|
| 572 |
+
},
|
| 573 |
+
"mappings": [],
|
| 574 |
+
"thresholds": {
|
| 575 |
+
"mode": "absolute",
|
| 576 |
+
"steps": [
|
| 577 |
+
{
|
| 578 |
+
"color": "green",
|
| 579 |
+
"value": null
|
| 580 |
+
}
|
| 581 |
+
]
|
| 582 |
+
}
|
| 583 |
+
},
|
| 584 |
+
"overrides": []
|
| 585 |
+
},
|
| 586 |
+
"gridPos": {
|
| 587 |
+
"h": 8,
|
| 588 |
+
"w": 3,
|
| 589 |
+
"x": 21,
|
| 590 |
+
"y": 9
|
| 591 |
+
},
|
| 592 |
+
"id": 17,
|
| 593 |
+
"options": {
|
| 594 |
+
"colorMode": "value",
|
| 595 |
+
"graphMode": "area",
|
| 596 |
+
"justifyMode": "auto",
|
| 597 |
+
"orientation": "auto",
|
| 598 |
+
"reduceOptions": {
|
| 599 |
+
"calcs": [
|
| 600 |
+
"lastNotNull"
|
| 601 |
+
],
|
| 602 |
+
"fields": "",
|
| 603 |
+
"values": false
|
| 604 |
+
},
|
| 605 |
+
"showPercentChange": false,
|
| 606 |
+
"textMode": "auto",
|
| 607 |
+
"wideLayout": true
|
| 608 |
+
},
|
| 609 |
+
"pluginVersion": "11.0.1",
|
| 610 |
+
"targets": [
|
| 611 |
+
{
|
| 612 |
+
"datasource": {
|
| 613 |
+
"type": "prometheus",
|
| 614 |
+
"uid": "Prometheus"
|
| 615 |
+
},
|
| 616 |
+
"exemplar": true,
|
| 617 |
+
"expr": "sum(vector_index_tombstone_cleaned{})",
|
| 618 |
+
"interval": "",
|
| 619 |
+
"legendFormat": "",
|
| 620 |
+
"refId": "A"
|
| 621 |
+
}
|
| 622 |
+
],
|
| 623 |
+
"title": "Reassigned Nodes",
|
| 624 |
+
"type": "stat"
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"datasource": {
|
| 628 |
+
"type": "prometheus",
|
| 629 |
+
"uid": "Prometheus"
|
| 630 |
+
},
|
| 631 |
+
"description": "Rate of the number of objects processed in a batch",
|
| 632 |
+
"fieldConfig": {
|
| 633 |
+
"defaults": {
|
| 634 |
+
"color": {
|
| 635 |
+
"mode": "palette-classic"
|
| 636 |
+
},
|
| 637 |
+
"custom": {
|
| 638 |
+
"axisBorderShow": false,
|
| 639 |
+
"axisCenteredZero": false,
|
| 640 |
+
"axisColorMode": "text",
|
| 641 |
+
"axisLabel": "",
|
| 642 |
+
"axisPlacement": "auto",
|
| 643 |
+
"barAlignment": 0,
|
| 644 |
+
"drawStyle": "line",
|
| 645 |
+
"fillOpacity": 0,
|
| 646 |
+
"gradientMode": "none",
|
| 647 |
+
"hideFrom": {
|
| 648 |
+
"legend": false,
|
| 649 |
+
"tooltip": false,
|
| 650 |
+
"viz": false
|
| 651 |
+
},
|
| 652 |
+
"insertNulls": false,
|
| 653 |
+
"lineInterpolation": "linear",
|
| 654 |
+
"lineWidth": 1,
|
| 655 |
+
"pointSize": 5,
|
| 656 |
+
"scaleDistribution": {
|
| 657 |
+
"type": "linear"
|
| 658 |
+
},
|
| 659 |
+
"showPoints": "auto",
|
| 660 |
+
"spanNulls": false,
|
| 661 |
+
"stacking": {
|
| 662 |
+
"group": "A",
|
| 663 |
+
"mode": "none"
|
| 664 |
+
},
|
| 665 |
+
"thresholdsStyle": {
|
| 666 |
+
"mode": "off"
|
| 667 |
+
}
|
| 668 |
+
},
|
| 669 |
+
"mappings": [],
|
| 670 |
+
"thresholds": {
|
| 671 |
+
"mode": "absolute",
|
| 672 |
+
"steps": [
|
| 673 |
+
{
|
| 674 |
+
"color": "green",
|
| 675 |
+
"value": null
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"color": "red",
|
| 679 |
+
"value": 80
|
| 680 |
+
}
|
| 681 |
+
]
|
| 682 |
+
}
|
| 683 |
+
},
|
| 684 |
+
"overrides": []
|
| 685 |
+
},
|
| 686 |
+
"gridPos": {
|
| 687 |
+
"h": 8,
|
| 688 |
+
"w": 12,
|
| 689 |
+
"x": 12,
|
| 690 |
+
"y": 17
|
| 691 |
+
},
|
| 692 |
+
"id": 20,
|
| 693 |
+
"options": {
|
| 694 |
+
"legend": {
|
| 695 |
+
"calcs": [],
|
| 696 |
+
"displayMode": "list",
|
| 697 |
+
"placement": "bottom",
|
| 698 |
+
"showLegend": true
|
| 699 |
+
},
|
| 700 |
+
"tooltip": {
|
| 701 |
+
"maxHeight": 600,
|
| 702 |
+
"mode": "single",
|
| 703 |
+
"sort": "none"
|
| 704 |
+
}
|
| 705 |
+
},
|
| 706 |
+
"targets": [
|
| 707 |
+
{
|
| 708 |
+
"datasource": {
|
| 709 |
+
"type": "prometheus",
|
| 710 |
+
"uid": "Prometheus"
|
| 711 |
+
},
|
| 712 |
+
"disableTextWrap": false,
|
| 713 |
+
"editorMode": "builder",
|
| 714 |
+
"expr": "rate(batch_objects_processed_total[$__rate_interval])",
|
| 715 |
+
"fullMetaSearch": false,
|
| 716 |
+
"includeNullMetadata": true,
|
| 717 |
+
"instant": false,
|
| 718 |
+
"legendFormat": "__auto",
|
| 719 |
+
"range": true,
|
| 720 |
+
"refId": "A",
|
| 721 |
+
"useBackend": false
|
| 722 |
+
}
|
| 723 |
+
],
|
| 724 |
+
"title": "Rate Batch Objects Processed",
|
| 725 |
+
"type": "timeseries"
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"datasource": {
|
| 729 |
+
"type": "prometheus",
|
| 730 |
+
"uid": "Prometheus"
|
| 731 |
+
},
|
| 732 |
+
"description": "Count of active segments across all classes and shards, shown by type.",
|
| 733 |
+
"fieldConfig": {
|
| 734 |
+
"defaults": {
|
| 735 |
+
"color": {
|
| 736 |
+
"mode": "palette-classic"
|
| 737 |
+
},
|
| 738 |
+
"custom": {
|
| 739 |
+
"axisBorderShow": false,
|
| 740 |
+
"axisCenteredZero": false,
|
| 741 |
+
"axisColorMode": "text",
|
| 742 |
+
"axisLabel": "",
|
| 743 |
+
"axisPlacement": "auto",
|
| 744 |
+
"barAlignment": 0,
|
| 745 |
+
"drawStyle": "line",
|
| 746 |
+
"fillOpacity": 0,
|
| 747 |
+
"gradientMode": "none",
|
| 748 |
+
"hideFrom": {
|
| 749 |
+
"legend": false,
|
| 750 |
+
"tooltip": false,
|
| 751 |
+
"viz": false
|
| 752 |
+
},
|
| 753 |
+
"insertNulls": false,
|
| 754 |
+
"lineInterpolation": "linear",
|
| 755 |
+
"lineStyle": {
|
| 756 |
+
"fill": "solid"
|
| 757 |
+
},
|
| 758 |
+
"lineWidth": 1,
|
| 759 |
+
"pointSize": 9,
|
| 760 |
+
"scaleDistribution": {
|
| 761 |
+
"type": "linear"
|
| 762 |
+
},
|
| 763 |
+
"showPoints": "auto",
|
| 764 |
+
"spanNulls": false,
|
| 765 |
+
"stacking": {
|
| 766 |
+
"group": "A",
|
| 767 |
+
"mode": "normal"
|
| 768 |
+
},
|
| 769 |
+
"thresholdsStyle": {
|
| 770 |
+
"mode": "off"
|
| 771 |
+
}
|
| 772 |
+
},
|
| 773 |
+
"mappings": [],
|
| 774 |
+
"thresholds": {
|
| 775 |
+
"mode": "absolute",
|
| 776 |
+
"steps": [
|
| 777 |
+
{
|
| 778 |
+
"color": "green",
|
| 779 |
+
"value": null
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"color": "red",
|
| 783 |
+
"value": 80
|
| 784 |
+
}
|
| 785 |
+
]
|
| 786 |
+
}
|
| 787 |
+
},
|
| 788 |
+
"overrides": []
|
| 789 |
+
},
|
| 790 |
+
"gridPos": {
|
| 791 |
+
"h": 7,
|
| 792 |
+
"w": 6,
|
| 793 |
+
"x": 0,
|
| 794 |
+
"y": 18
|
| 795 |
+
},
|
| 796 |
+
"id": 7,
|
| 797 |
+
"interval": "1",
|
| 798 |
+
"options": {
|
| 799 |
+
"legend": {
|
| 800 |
+
"calcs": [],
|
| 801 |
+
"displayMode": "list",
|
| 802 |
+
"placement": "bottom",
|
| 803 |
+
"showLegend": true
|
| 804 |
+
},
|
| 805 |
+
"tooltip": {
|
| 806 |
+
"maxHeight": 600,
|
| 807 |
+
"mode": "single",
|
| 808 |
+
"sort": "none"
|
| 809 |
+
}
|
| 810 |
+
},
|
| 811 |
+
"targets": [
|
| 812 |
+
{
|
| 813 |
+
"datasource": {
|
| 814 |
+
"type": "prometheus",
|
| 815 |
+
"uid": "Prometheus"
|
| 816 |
+
},
|
| 817 |
+
"exemplar": true,
|
| 818 |
+
"expr": "sum(lsm_active_segments{strategy=\"replace\"})",
|
| 819 |
+
"interval": "",
|
| 820 |
+
"legendFormat": "Total \"Replace\" (Object Storage)",
|
| 821 |
+
"refId": "A"
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"datasource": {
|
| 825 |
+
"type": "prometheus",
|
| 826 |
+
"uid": "Prometheus"
|
| 827 |
+
},
|
| 828 |
+
"exemplar": true,
|
| 829 |
+
"expr": "sum(lsm_active_segments{strategy=\"mapcollection\"})",
|
| 830 |
+
"hide": false,
|
| 831 |
+
"interval": "",
|
| 832 |
+
"legendFormat": "Total \"Map\" (Inverted storage with term frequency)",
|
| 833 |
+
"refId": "B"
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"datasource": {
|
| 837 |
+
"type": "prometheus",
|
| 838 |
+
"uid": "Prometheus"
|
| 839 |
+
},
|
| 840 |
+
"exemplar": true,
|
| 841 |
+
"expr": "sum(lsm_active_segments{strategy=\"setcollection\"})",
|
| 842 |
+
"hide": false,
|
| 843 |
+
"interval": "",
|
| 844 |
+
"legendFormat": "Total \"Set\" (Inverted storage without frequency)",
|
| 845 |
+
"refId": "C"
|
| 846 |
+
}
|
| 847 |
+
],
|
| 848 |
+
"title": "Active LSM Segments (summed by type)",
|
| 849 |
+
"type": "timeseries"
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"datasource": {
|
| 853 |
+
"type": "prometheus",
|
| 854 |
+
"uid": "Prometheus"
|
| 855 |
+
},
|
| 856 |
+
"fieldConfig": {
|
| 857 |
+
"defaults": {
|
| 858 |
+
"color": {
|
| 859 |
+
"mode": "thresholds"
|
| 860 |
+
},
|
| 861 |
+
"mappings": [],
|
| 862 |
+
"thresholds": {
|
| 863 |
+
"mode": "absolute",
|
| 864 |
+
"steps": [
|
| 865 |
+
{
|
| 866 |
+
"color": "text",
|
| 867 |
+
"value": null
|
| 868 |
+
}
|
| 869 |
+
]
|
| 870 |
+
}
|
| 871 |
+
},
|
| 872 |
+
"overrides": []
|
| 873 |
+
},
|
| 874 |
+
"gridPos": {
|
| 875 |
+
"h": 7,
|
| 876 |
+
"w": 6,
|
| 877 |
+
"x": 6,
|
| 878 |
+
"y": 18
|
| 879 |
+
},
|
| 880 |
+
"id": 19,
|
| 881 |
+
"options": {
|
| 882 |
+
"colorMode": "value",
|
| 883 |
+
"graphMode": "area",
|
| 884 |
+
"justifyMode": "center",
|
| 885 |
+
"orientation": "auto",
|
| 886 |
+
"reduceOptions": {
|
| 887 |
+
"calcs": [
|
| 888 |
+
"lastNotNull"
|
| 889 |
+
],
|
| 890 |
+
"fields": "",
|
| 891 |
+
"values": false
|
| 892 |
+
},
|
| 893 |
+
"showPercentChange": false,
|
| 894 |
+
"textMode": "auto",
|
| 895 |
+
"wideLayout": true
|
| 896 |
+
},
|
| 897 |
+
"pluginVersion": "11.0.1",
|
| 898 |
+
"targets": [
|
| 899 |
+
{
|
| 900 |
+
"datasource": {
|
| 901 |
+
"type": "prometheus",
|
| 902 |
+
"uid": "Prometheus"
|
| 903 |
+
},
|
| 904 |
+
"exemplar": true,
|
| 905 |
+
"expr": "sum(vector_index_operations{operation=\"create\"})",
|
| 906 |
+
"interval": "",
|
| 907 |
+
"legendFormat": "Vectors Inserted",
|
| 908 |
+
"refId": "A"
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"datasource": {
|
| 912 |
+
"type": "prometheus",
|
| 913 |
+
"uid": "Prometheus"
|
| 914 |
+
},
|
| 915 |
+
"exemplar": true,
|
| 916 |
+
"expr": "sum(vector_index_operations{operation=\"delete\"})",
|
| 917 |
+
"hide": false,
|
| 918 |
+
"interval": "",
|
| 919 |
+
"legendFormat": "Vectors Deleted",
|
| 920 |
+
"refId": "B"
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"datasource": {
|
| 924 |
+
"type": "prometheus",
|
| 925 |
+
"uid": "Prometheus"
|
| 926 |
+
},
|
| 927 |
+
"exemplar": false,
|
| 928 |
+
"expr": "sum(vector_index_operations{operation=\"create\"}) - ignoring(operation) sum(vector_index_operations{operation=\"delete\"})",
|
| 929 |
+
"hide": false,
|
| 930 |
+
"instant": false,
|
| 931 |
+
"interval": "",
|
| 932 |
+
"legendFormat": "Net Vectors",
|
| 933 |
+
"refId": "C"
|
| 934 |
+
}
|
| 935 |
+
],
|
| 936 |
+
"title": "Vector Index Statistics",
|
| 937 |
+
"type": "stat"
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"datasource": {
|
| 941 |
+
"type": "prometheus",
|
| 942 |
+
"uid": "Prometheus"
|
| 943 |
+
},
|
| 944 |
+
"fieldConfig": {
|
| 945 |
+
"defaults": {
|
| 946 |
+
"color": {
|
| 947 |
+
"mode": "palette-classic"
|
| 948 |
+
},
|
| 949 |
+
"custom": {
|
| 950 |
+
"axisBorderShow": false,
|
| 951 |
+
"axisCenteredZero": false,
|
| 952 |
+
"axisColorMode": "text",
|
| 953 |
+
"axisLabel": "",
|
| 954 |
+
"axisPlacement": "auto",
|
| 955 |
+
"barAlignment": 0,
|
| 956 |
+
"drawStyle": "line",
|
| 957 |
+
"fillOpacity": 0,
|
| 958 |
+
"gradientMode": "none",
|
| 959 |
+
"hideFrom": {
|
| 960 |
+
"legend": false,
|
| 961 |
+
"tooltip": false,
|
| 962 |
+
"viz": false
|
| 963 |
+
},
|
| 964 |
+
"insertNulls": false,
|
| 965 |
+
"lineInterpolation": "linear",
|
| 966 |
+
"lineWidth": 1,
|
| 967 |
+
"pointSize": 5,
|
| 968 |
+
"scaleDistribution": {
|
| 969 |
+
"type": "linear"
|
| 970 |
+
},
|
| 971 |
+
"showPoints": "auto",
|
| 972 |
+
"spanNulls": false,
|
| 973 |
+
"stacking": {
|
| 974 |
+
"group": "A",
|
| 975 |
+
"mode": "none"
|
| 976 |
+
},
|
| 977 |
+
"thresholdsStyle": {
|
| 978 |
+
"mode": "off"
|
| 979 |
+
}
|
| 980 |
+
},
|
| 981 |
+
"mappings": [],
|
| 982 |
+
"thresholds": {
|
| 983 |
+
"mode": "absolute",
|
| 984 |
+
"steps": [
|
| 985 |
+
{
|
| 986 |
+
"color": "green",
|
| 987 |
+
"value": null
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"color": "red",
|
| 991 |
+
"value": 80
|
| 992 |
+
}
|
| 993 |
+
]
|
| 994 |
+
},
|
| 995 |
+
"unit": "decbytes"
|
| 996 |
+
},
|
| 997 |
+
"overrides": []
|
| 998 |
+
},
|
| 999 |
+
"gridPos": {
|
| 1000 |
+
"h": 8,
|
| 1001 |
+
"w": 12,
|
| 1002 |
+
"x": 0,
|
| 1003 |
+
"y": 25
|
| 1004 |
+
},
|
| 1005 |
+
"id": 4,
|
| 1006 |
+
"options": {
|
| 1007 |
+
"legend": {
|
| 1008 |
+
"calcs": [],
|
| 1009 |
+
"displayMode": "list",
|
| 1010 |
+
"placement": "bottom",
|
| 1011 |
+
"showLegend": true
|
| 1012 |
+
},
|
| 1013 |
+
"tooltip": {
|
| 1014 |
+
"maxHeight": 600,
|
| 1015 |
+
"mode": "single",
|
| 1016 |
+
"sort": "none"
|
| 1017 |
+
}
|
| 1018 |
+
},
|
| 1019 |
+
"targets": [
|
| 1020 |
+
{
|
| 1021 |
+
"datasource": {
|
| 1022 |
+
"type": "prometheus",
|
| 1023 |
+
"uid": "Prometheus"
|
| 1024 |
+
},
|
| 1025 |
+
"exemplar": true,
|
| 1026 |
+
"expr": "go_memstats_heap_inuse_bytes{}",
|
| 1027 |
+
"interval": "",
|
| 1028 |
+
"legendFormat": "",
|
| 1029 |
+
"refId": "A"
|
| 1030 |
+
}
|
| 1031 |
+
],
|
| 1032 |
+
"title": "Heap in use (bytes)",
|
| 1033 |
+
"type": "timeseries"
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"datasource": {
|
| 1037 |
+
"type": "prometheus",
|
| 1038 |
+
"uid": "Prometheus"
|
| 1039 |
+
},
|
| 1040 |
+
"description": "Rate of the number of bytes processed in a batch",
|
| 1041 |
+
"fieldConfig": {
|
| 1042 |
+
"defaults": {
|
| 1043 |
+
"color": {
|
| 1044 |
+
"mode": "palette-classic"
|
| 1045 |
+
},
|
| 1046 |
+
"custom": {
|
| 1047 |
+
"axisBorderShow": false,
|
| 1048 |
+
"axisCenteredZero": false,
|
| 1049 |
+
"axisColorMode": "text",
|
| 1050 |
+
"axisLabel": "",
|
| 1051 |
+
"axisPlacement": "auto",
|
| 1052 |
+
"barAlignment": 0,
|
| 1053 |
+
"drawStyle": "line",
|
| 1054 |
+
"fillOpacity": 0,
|
| 1055 |
+
"gradientMode": "none",
|
| 1056 |
+
"hideFrom": {
|
| 1057 |
+
"legend": false,
|
| 1058 |
+
"tooltip": false,
|
| 1059 |
+
"viz": false
|
| 1060 |
+
},
|
| 1061 |
+
"insertNulls": false,
|
| 1062 |
+
"lineInterpolation": "linear",
|
| 1063 |
+
"lineWidth": 1,
|
| 1064 |
+
"pointSize": 5,
|
| 1065 |
+
"scaleDistribution": {
|
| 1066 |
+
"type": "linear"
|
| 1067 |
+
},
|
| 1068 |
+
"showPoints": "auto",
|
| 1069 |
+
"spanNulls": false,
|
| 1070 |
+
"stacking": {
|
| 1071 |
+
"group": "A",
|
| 1072 |
+
"mode": "none"
|
| 1073 |
+
},
|
| 1074 |
+
"thresholdsStyle": {
|
| 1075 |
+
"mode": "off"
|
| 1076 |
+
}
|
| 1077 |
+
},
|
| 1078 |
+
"mappings": [],
|
| 1079 |
+
"thresholds": {
|
| 1080 |
+
"mode": "absolute",
|
| 1081 |
+
"steps": [
|
| 1082 |
+
{
|
| 1083 |
+
"color": "green",
|
| 1084 |
+
"value": null
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"color": "red",
|
| 1088 |
+
"value": 80
|
| 1089 |
+
}
|
| 1090 |
+
]
|
| 1091 |
+
},
|
| 1092 |
+
"unit": "decbytes"
|
| 1093 |
+
},
|
| 1094 |
+
"overrides": []
|
| 1095 |
+
},
|
| 1096 |
+
"gridPos": {
|
| 1097 |
+
"h": 8,
|
| 1098 |
+
"w": 12,
|
| 1099 |
+
"x": 12,
|
| 1100 |
+
"y": 25
|
| 1101 |
+
},
|
| 1102 |
+
"id": 21,
|
| 1103 |
+
"options": {
|
| 1104 |
+
"legend": {
|
| 1105 |
+
"calcs": [],
|
| 1106 |
+
"displayMode": "list",
|
| 1107 |
+
"placement": "bottom",
|
| 1108 |
+
"showLegend": true
|
| 1109 |
+
},
|
| 1110 |
+
"tooltip": {
|
| 1111 |
+
"maxHeight": 600,
|
| 1112 |
+
"mode": "single",
|
| 1113 |
+
"sort": "none"
|
| 1114 |
+
}
|
| 1115 |
+
},
|
| 1116 |
+
"targets": [
|
| 1117 |
+
{
|
| 1118 |
+
"datasource": {
|
| 1119 |
+
"type": "prometheus",
|
| 1120 |
+
"uid": "Prometheus"
|
| 1121 |
+
},
|
| 1122 |
+
"disableTextWrap": false,
|
| 1123 |
+
"editorMode": "builder",
|
| 1124 |
+
"expr": "rate(batch_objects_processed_bytes[$__rate_interval])",
|
| 1125 |
+
"fullMetaSearch": false,
|
| 1126 |
+
"includeNullMetadata": true,
|
| 1127 |
+
"instant": false,
|
| 1128 |
+
"legendFormat": "__auto",
|
| 1129 |
+
"range": true,
|
| 1130 |
+
"refId": "A",
|
| 1131 |
+
"useBackend": false
|
| 1132 |
+
}
|
| 1133 |
+
],
|
| 1134 |
+
"title": "Rate Batch Objects Processed Bytes",
|
| 1135 |
+
"type": "timeseries"
|
| 1136 |
+
}
|
| 1137 |
+
],
|
| 1138 |
+
"refresh": "5s",
|
| 1139 |
+
"schemaVersion": 39,
|
| 1140 |
+
"tags": [],
|
| 1141 |
+
"templating": {
|
| 1142 |
+
"list": []
|
| 1143 |
+
},
|
| 1144 |
+
"time": {
|
| 1145 |
+
"from": "now-15m",
|
| 1146 |
+
"to": "now"
|
| 1147 |
+
},
|
| 1148 |
+
"timeRangeUpdatedDuringEditOrView": false,
|
| 1149 |
+
"timepicker": {},
|
| 1150 |
+
"timezone": "",
|
| 1151 |
+
"title": "Importing Data into Weaviate",
|
| 1152 |
+
"uid": "n_WGWQ1nk3",
|
| 1153 |
+
"version": 1,
|
| 1154 |
+
"weekStart": ""
|
| 1155 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/index_queue.json
ADDED
|
@@ -0,0 +1,706 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"type": "dashboard"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
"editable": true,
|
| 19 |
+
"fiscalYearStartMonth": 0,
|
| 20 |
+
"graphTooltip": 0,
|
| 21 |
+
"links": [],
|
| 22 |
+
"panels": [
|
| 23 |
+
{
|
| 24 |
+
"collapsed": false,
|
| 25 |
+
"gridPos": {
|
| 26 |
+
"h": 1,
|
| 27 |
+
"w": 24,
|
| 28 |
+
"x": 0,
|
| 29 |
+
"y": 0
|
| 30 |
+
},
|
| 31 |
+
"id": 11,
|
| 32 |
+
"panels": [],
|
| 33 |
+
"title": "Queue stats (Generic)",
|
| 34 |
+
"type": "row"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"datasource": {
|
| 38 |
+
"type": "prometheus",
|
| 39 |
+
"uid": "Prometheus"
|
| 40 |
+
},
|
| 41 |
+
"fieldConfig": {
|
| 42 |
+
"defaults": {
|
| 43 |
+
"color": {
|
| 44 |
+
"mode": "thresholds"
|
| 45 |
+
},
|
| 46 |
+
"mappings": [],
|
| 47 |
+
"thresholds": {
|
| 48 |
+
"mode": "absolute",
|
| 49 |
+
"steps": [
|
| 50 |
+
{
|
| 51 |
+
"color": "green",
|
| 52 |
+
"value": null
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"color": "red",
|
| 56 |
+
"value": 80
|
| 57 |
+
}
|
| 58 |
+
]
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"overrides": []
|
| 62 |
+
},
|
| 63 |
+
"gridPos": {
|
| 64 |
+
"h": 8,
|
| 65 |
+
"w": 6,
|
| 66 |
+
"x": 0,
|
| 67 |
+
"y": 1
|
| 68 |
+
},
|
| 69 |
+
"id": 6,
|
| 70 |
+
"options": {
|
| 71 |
+
"colorMode": "value",
|
| 72 |
+
"graphMode": "area",
|
| 73 |
+
"justifyMode": "auto",
|
| 74 |
+
"orientation": "auto",
|
| 75 |
+
"reduceOptions": {
|
| 76 |
+
"calcs": [
|
| 77 |
+
"lastNotNull"
|
| 78 |
+
],
|
| 79 |
+
"fields": "",
|
| 80 |
+
"values": false
|
| 81 |
+
},
|
| 82 |
+
"showPercentChange": false,
|
| 83 |
+
"textMode": "auto",
|
| 84 |
+
"wideLayout": true
|
| 85 |
+
},
|
| 86 |
+
"pluginVersion": "11.0.0",
|
| 87 |
+
"targets": [
|
| 88 |
+
{
|
| 89 |
+
"datasource": {
|
| 90 |
+
"type": "prometheus",
|
| 91 |
+
"uid": "Prometheus"
|
| 92 |
+
},
|
| 93 |
+
"editorMode": "code",
|
| 94 |
+
"expr": "sum(queue_paused{})\n",
|
| 95 |
+
"instant": false,
|
| 96 |
+
"legendFormat": "__auto",
|
| 97 |
+
"range": true,
|
| 98 |
+
"refId": "A"
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
"title": "Queues paused",
|
| 102 |
+
"type": "stat"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"datasource": {
|
| 106 |
+
"type": "prometheus",
|
| 107 |
+
"uid": "Prometheus"
|
| 108 |
+
},
|
| 109 |
+
"fieldConfig": {
|
| 110 |
+
"defaults": {
|
| 111 |
+
"color": {
|
| 112 |
+
"mode": "thresholds"
|
| 113 |
+
},
|
| 114 |
+
"mappings": [],
|
| 115 |
+
"thresholds": {
|
| 116 |
+
"mode": "absolute",
|
| 117 |
+
"steps": [
|
| 118 |
+
{
|
| 119 |
+
"color": "green",
|
| 120 |
+
"value": null
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"color": "red",
|
| 124 |
+
"value": 80
|
| 125 |
+
}
|
| 126 |
+
]
|
| 127 |
+
}
|
| 128 |
+
},
|
| 129 |
+
"overrides": []
|
| 130 |
+
},
|
| 131 |
+
"gridPos": {
|
| 132 |
+
"h": 8,
|
| 133 |
+
"w": 6,
|
| 134 |
+
"x": 6,
|
| 135 |
+
"y": 1
|
| 136 |
+
},
|
| 137 |
+
"id": 8,
|
| 138 |
+
"options": {
|
| 139 |
+
"colorMode": "value",
|
| 140 |
+
"graphMode": "area",
|
| 141 |
+
"justifyMode": "auto",
|
| 142 |
+
"orientation": "auto",
|
| 143 |
+
"reduceOptions": {
|
| 144 |
+
"calcs": [
|
| 145 |
+
"lastNotNull"
|
| 146 |
+
],
|
| 147 |
+
"fields": "",
|
| 148 |
+
"values": false
|
| 149 |
+
},
|
| 150 |
+
"showPercentChange": false,
|
| 151 |
+
"textMode": "auto",
|
| 152 |
+
"wideLayout": true
|
| 153 |
+
},
|
| 154 |
+
"pluginVersion": "11.0.0",
|
| 155 |
+
"targets": [
|
| 156 |
+
{
|
| 157 |
+
"datasource": {
|
| 158 |
+
"type": "prometheus",
|
| 159 |
+
"uid": "Prometheus"
|
| 160 |
+
},
|
| 161 |
+
"editorMode": "code",
|
| 162 |
+
"expr": "sum(queue_count{})\n",
|
| 163 |
+
"instant": false,
|
| 164 |
+
"legendFormat": "__auto",
|
| 165 |
+
"range": true,
|
| 166 |
+
"refId": "A"
|
| 167 |
+
}
|
| 168 |
+
],
|
| 169 |
+
"title": "Number of queues",
|
| 170 |
+
"type": "stat"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"datasource": {
|
| 174 |
+
"type": "prometheus",
|
| 175 |
+
"uid": "Prometheus"
|
| 176 |
+
},
|
| 177 |
+
"description": "Time spent by a single worker processing a partition",
|
| 178 |
+
"fieldConfig": {
|
| 179 |
+
"defaults": {
|
| 180 |
+
"color": {
|
| 181 |
+
"mode": "palette-classic"
|
| 182 |
+
},
|
| 183 |
+
"custom": {
|
| 184 |
+
"axisBorderShow": false,
|
| 185 |
+
"axisCenteredZero": false,
|
| 186 |
+
"axisColorMode": "text",
|
| 187 |
+
"axisLabel": "",
|
| 188 |
+
"axisPlacement": "auto",
|
| 189 |
+
"barAlignment": 0,
|
| 190 |
+
"drawStyle": "line",
|
| 191 |
+
"fillOpacity": 0,
|
| 192 |
+
"gradientMode": "none",
|
| 193 |
+
"hideFrom": {
|
| 194 |
+
"legend": false,
|
| 195 |
+
"tooltip": false,
|
| 196 |
+
"viz": false
|
| 197 |
+
},
|
| 198 |
+
"insertNulls": false,
|
| 199 |
+
"lineInterpolation": "linear",
|
| 200 |
+
"lineWidth": 1,
|
| 201 |
+
"pointSize": 5,
|
| 202 |
+
"scaleDistribution": {
|
| 203 |
+
"type": "linear"
|
| 204 |
+
},
|
| 205 |
+
"showPoints": "auto",
|
| 206 |
+
"spanNulls": false,
|
| 207 |
+
"stacking": {
|
| 208 |
+
"group": "A",
|
| 209 |
+
"mode": "none"
|
| 210 |
+
},
|
| 211 |
+
"thresholdsStyle": {
|
| 212 |
+
"mode": "off"
|
| 213 |
+
}
|
| 214 |
+
},
|
| 215 |
+
"mappings": [],
|
| 216 |
+
"thresholds": {
|
| 217 |
+
"mode": "absolute",
|
| 218 |
+
"steps": [
|
| 219 |
+
{
|
| 220 |
+
"color": "green",
|
| 221 |
+
"value": null
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"color": "red",
|
| 225 |
+
"value": 80
|
| 226 |
+
}
|
| 227 |
+
]
|
| 228 |
+
},
|
| 229 |
+
"unit": "ms"
|
| 230 |
+
},
|
| 231 |
+
"overrides": []
|
| 232 |
+
},
|
| 233 |
+
"gridPos": {
|
| 234 |
+
"h": 8,
|
| 235 |
+
"w": 12,
|
| 236 |
+
"x": 12,
|
| 237 |
+
"y": 1
|
| 238 |
+
},
|
| 239 |
+
"id": 2,
|
| 240 |
+
"options": {
|
| 241 |
+
"legend": {
|
| 242 |
+
"calcs": [],
|
| 243 |
+
"displayMode": "list",
|
| 244 |
+
"placement": "bottom",
|
| 245 |
+
"showLegend": true
|
| 246 |
+
},
|
| 247 |
+
"tooltip": {
|
| 248 |
+
"maxHeight": 600,
|
| 249 |
+
"mode": "single",
|
| 250 |
+
"sort": "none"
|
| 251 |
+
}
|
| 252 |
+
},
|
| 253 |
+
"targets": [
|
| 254 |
+
{
|
| 255 |
+
"datasource": {
|
| 256 |
+
"type": "prometheus",
|
| 257 |
+
"uid": "Prometheus"
|
| 258 |
+
},
|
| 259 |
+
"disableTextWrap": false,
|
| 260 |
+
"editorMode": "code",
|
| 261 |
+
"expr": "avg(sum by(shard_name) (rate(queue_partition_processing_duration_ms_sum[$__rate_interval])))",
|
| 262 |
+
"fullMetaSearch": false,
|
| 263 |
+
"includeNullMetadata": true,
|
| 264 |
+
"instant": false,
|
| 265 |
+
"legendFormat": "{{class_name}} - {{shard_name}}",
|
| 266 |
+
"range": true,
|
| 267 |
+
"refId": "A",
|
| 268 |
+
"useBackend": false
|
| 269 |
+
}
|
| 270 |
+
],
|
| 271 |
+
"title": "Partition processing duration",
|
| 272 |
+
"type": "timeseries"
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"datasource": {
|
| 276 |
+
"type": "prometheus",
|
| 277 |
+
"uid": "Prometheus"
|
| 278 |
+
},
|
| 279 |
+
"fieldConfig": {
|
| 280 |
+
"defaults": {
|
| 281 |
+
"color": {
|
| 282 |
+
"mode": "palette-classic"
|
| 283 |
+
},
|
| 284 |
+
"custom": {
|
| 285 |
+
"axisBorderShow": false,
|
| 286 |
+
"axisCenteredZero": false,
|
| 287 |
+
"axisColorMode": "text",
|
| 288 |
+
"axisLabel": "",
|
| 289 |
+
"axisPlacement": "auto",
|
| 290 |
+
"barAlignment": 0,
|
| 291 |
+
"drawStyle": "line",
|
| 292 |
+
"fillOpacity": 0,
|
| 293 |
+
"gradientMode": "none",
|
| 294 |
+
"hideFrom": {
|
| 295 |
+
"legend": false,
|
| 296 |
+
"tooltip": false,
|
| 297 |
+
"viz": false
|
| 298 |
+
},
|
| 299 |
+
"insertNulls": false,
|
| 300 |
+
"lineInterpolation": "linear",
|
| 301 |
+
"lineWidth": 1,
|
| 302 |
+
"pointSize": 5,
|
| 303 |
+
"scaleDistribution": {
|
| 304 |
+
"type": "linear"
|
| 305 |
+
},
|
| 306 |
+
"showPoints": "auto",
|
| 307 |
+
"spanNulls": false,
|
| 308 |
+
"stacking": {
|
| 309 |
+
"group": "A",
|
| 310 |
+
"mode": "none"
|
| 311 |
+
},
|
| 312 |
+
"thresholdsStyle": {
|
| 313 |
+
"mode": "off"
|
| 314 |
+
}
|
| 315 |
+
},
|
| 316 |
+
"mappings": [],
|
| 317 |
+
"thresholds": {
|
| 318 |
+
"mode": "absolute",
|
| 319 |
+
"steps": [
|
| 320 |
+
{
|
| 321 |
+
"color": "green",
|
| 322 |
+
"value": null
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"color": "red",
|
| 326 |
+
"value": 80
|
| 327 |
+
}
|
| 328 |
+
]
|
| 329 |
+
}
|
| 330 |
+
},
|
| 331 |
+
"overrides": []
|
| 332 |
+
},
|
| 333 |
+
"gridPos": {
|
| 334 |
+
"h": 8,
|
| 335 |
+
"w": 12,
|
| 336 |
+
"x": 0,
|
| 337 |
+
"y": 9
|
| 338 |
+
},
|
| 339 |
+
"id": 1,
|
| 340 |
+
"options": {
|
| 341 |
+
"legend": {
|
| 342 |
+
"calcs": [],
|
| 343 |
+
"displayMode": "list",
|
| 344 |
+
"placement": "bottom",
|
| 345 |
+
"showLegend": true
|
| 346 |
+
},
|
| 347 |
+
"tooltip": {
|
| 348 |
+
"maxHeight": 600,
|
| 349 |
+
"mode": "single",
|
| 350 |
+
"sort": "none"
|
| 351 |
+
}
|
| 352 |
+
},
|
| 353 |
+
"targets": [
|
| 354 |
+
{
|
| 355 |
+
"datasource": {
|
| 356 |
+
"type": "prometheus",
|
| 357 |
+
"uid": "Prometheus"
|
| 358 |
+
},
|
| 359 |
+
"disableTextWrap": false,
|
| 360 |
+
"editorMode": "builder",
|
| 361 |
+
"expr": "queue_size",
|
| 362 |
+
"fullMetaSearch": false,
|
| 363 |
+
"includeNullMetadata": true,
|
| 364 |
+
"instant": false,
|
| 365 |
+
"legendFormat": "{{class_name}} - {{shard_name}}",
|
| 366 |
+
"range": true,
|
| 367 |
+
"refId": "A",
|
| 368 |
+
"useBackend": false
|
| 369 |
+
}
|
| 370 |
+
],
|
| 371 |
+
"title": "Queue size",
|
| 372 |
+
"type": "timeseries"
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"datasource": {
|
| 376 |
+
"type": "prometheus",
|
| 377 |
+
"uid": "Prometheus"
|
| 378 |
+
},
|
| 379 |
+
"fieldConfig": {
|
| 380 |
+
"defaults": {
|
| 381 |
+
"color": {
|
| 382 |
+
"mode": "palette-classic"
|
| 383 |
+
},
|
| 384 |
+
"custom": {
|
| 385 |
+
"axisBorderShow": false,
|
| 386 |
+
"axisCenteredZero": false,
|
| 387 |
+
"axisColorMode": "text",
|
| 388 |
+
"axisLabel": "",
|
| 389 |
+
"axisPlacement": "auto",
|
| 390 |
+
"barAlignment": 0,
|
| 391 |
+
"drawStyle": "line",
|
| 392 |
+
"fillOpacity": 0,
|
| 393 |
+
"gradientMode": "none",
|
| 394 |
+
"hideFrom": {
|
| 395 |
+
"legend": false,
|
| 396 |
+
"tooltip": false,
|
| 397 |
+
"viz": false
|
| 398 |
+
},
|
| 399 |
+
"insertNulls": false,
|
| 400 |
+
"lineInterpolation": "linear",
|
| 401 |
+
"lineWidth": 1,
|
| 402 |
+
"pointSize": 5,
|
| 403 |
+
"scaleDistribution": {
|
| 404 |
+
"type": "linear"
|
| 405 |
+
},
|
| 406 |
+
"showPoints": "auto",
|
| 407 |
+
"spanNulls": false,
|
| 408 |
+
"stacking": {
|
| 409 |
+
"group": "A",
|
| 410 |
+
"mode": "none"
|
| 411 |
+
},
|
| 412 |
+
"thresholdsStyle": {
|
| 413 |
+
"mode": "off"
|
| 414 |
+
}
|
| 415 |
+
},
|
| 416 |
+
"mappings": [],
|
| 417 |
+
"thresholds": {
|
| 418 |
+
"mode": "absolute",
|
| 419 |
+
"steps": [
|
| 420 |
+
{
|
| 421 |
+
"color": "green",
|
| 422 |
+
"value": null
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"color": "red",
|
| 426 |
+
"value": 80
|
| 427 |
+
}
|
| 428 |
+
]
|
| 429 |
+
},
|
| 430 |
+
"unit": "decbytes"
|
| 431 |
+
},
|
| 432 |
+
"overrides": []
|
| 433 |
+
},
|
| 434 |
+
"gridPos": {
|
| 435 |
+
"h": 8,
|
| 436 |
+
"w": 12,
|
| 437 |
+
"x": 12,
|
| 438 |
+
"y": 9
|
| 439 |
+
},
|
| 440 |
+
"id": 7,
|
| 441 |
+
"options": {
|
| 442 |
+
"legend": {
|
| 443 |
+
"calcs": [],
|
| 444 |
+
"displayMode": "list",
|
| 445 |
+
"placement": "bottom",
|
| 446 |
+
"showLegend": true
|
| 447 |
+
},
|
| 448 |
+
"tooltip": {
|
| 449 |
+
"maxHeight": 600,
|
| 450 |
+
"mode": "single",
|
| 451 |
+
"sort": "none"
|
| 452 |
+
}
|
| 453 |
+
},
|
| 454 |
+
"targets": [
|
| 455 |
+
{
|
| 456 |
+
"datasource": {
|
| 457 |
+
"type": "prometheus",
|
| 458 |
+
"uid": "Prometheus"
|
| 459 |
+
},
|
| 460 |
+
"disableTextWrap": false,
|
| 461 |
+
"editorMode": "code",
|
| 462 |
+
"expr": "queue_disk_usage",
|
| 463 |
+
"fullMetaSearch": false,
|
| 464 |
+
"includeNullMetadata": true,
|
| 465 |
+
"instant": false,
|
| 466 |
+
"legendFormat": "{{class_name}} - {{shard_name}}",
|
| 467 |
+
"range": true,
|
| 468 |
+
"refId": "A",
|
| 469 |
+
"useBackend": false
|
| 470 |
+
}
|
| 471 |
+
],
|
| 472 |
+
"title": "Queue disk usage",
|
| 473 |
+
"type": "timeseries"
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"collapsed": false,
|
| 477 |
+
"gridPos": {
|
| 478 |
+
"h": 1,
|
| 479 |
+
"w": 24,
|
| 480 |
+
"x": 0,
|
| 481 |
+
"y": 17
|
| 482 |
+
},
|
| 483 |
+
"id": 12,
|
| 484 |
+
"panels": [],
|
| 485 |
+
"title": "Vector Index Queue",
|
| 486 |
+
"type": "row"
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"datasource": {
|
| 490 |
+
"type": "prometheus",
|
| 491 |
+
"uid": "Prometheus"
|
| 492 |
+
},
|
| 493 |
+
"fieldConfig": {
|
| 494 |
+
"defaults": {
|
| 495 |
+
"color": {
|
| 496 |
+
"mode": "palette-classic"
|
| 497 |
+
},
|
| 498 |
+
"custom": {
|
| 499 |
+
"axisBorderShow": false,
|
| 500 |
+
"axisCenteredZero": false,
|
| 501 |
+
"axisColorMode": "text",
|
| 502 |
+
"axisLabel": "",
|
| 503 |
+
"axisPlacement": "auto",
|
| 504 |
+
"barAlignment": 0,
|
| 505 |
+
"drawStyle": "line",
|
| 506 |
+
"fillOpacity": 0,
|
| 507 |
+
"gradientMode": "none",
|
| 508 |
+
"hideFrom": {
|
| 509 |
+
"legend": false,
|
| 510 |
+
"tooltip": false,
|
| 511 |
+
"viz": false
|
| 512 |
+
},
|
| 513 |
+
"insertNulls": false,
|
| 514 |
+
"lineInterpolation": "linear",
|
| 515 |
+
"lineWidth": 1,
|
| 516 |
+
"pointSize": 5,
|
| 517 |
+
"scaleDistribution": {
|
| 518 |
+
"type": "linear"
|
| 519 |
+
},
|
| 520 |
+
"showPoints": "auto",
|
| 521 |
+
"spanNulls": false,
|
| 522 |
+
"stacking": {
|
| 523 |
+
"group": "A",
|
| 524 |
+
"mode": "none"
|
| 525 |
+
},
|
| 526 |
+
"thresholdsStyle": {
|
| 527 |
+
"mode": "off"
|
| 528 |
+
}
|
| 529 |
+
},
|
| 530 |
+
"mappings": [],
|
| 531 |
+
"thresholds": {
|
| 532 |
+
"mode": "absolute",
|
| 533 |
+
"steps": [
|
| 534 |
+
{
|
| 535 |
+
"color": "green",
|
| 536 |
+
"value": null
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"color": "red",
|
| 540 |
+
"value": 80
|
| 541 |
+
}
|
| 542 |
+
]
|
| 543 |
+
}
|
| 544 |
+
},
|
| 545 |
+
"overrides": []
|
| 546 |
+
},
|
| 547 |
+
"gridPos": {
|
| 548 |
+
"h": 8,
|
| 549 |
+
"w": 12,
|
| 550 |
+
"x": 0,
|
| 551 |
+
"y": 18
|
| 552 |
+
},
|
| 553 |
+
"id": 9,
|
| 554 |
+
"options": {
|
| 555 |
+
"legend": {
|
| 556 |
+
"calcs": [],
|
| 557 |
+
"displayMode": "list",
|
| 558 |
+
"placement": "bottom",
|
| 559 |
+
"showLegend": true
|
| 560 |
+
},
|
| 561 |
+
"tooltip": {
|
| 562 |
+
"maxHeight": 600,
|
| 563 |
+
"mode": "single",
|
| 564 |
+
"sort": "none"
|
| 565 |
+
}
|
| 566 |
+
},
|
| 567 |
+
"targets": [
|
| 568 |
+
{
|
| 569 |
+
"datasource": {
|
| 570 |
+
"type": "prometheus",
|
| 571 |
+
"uid": "Prometheus"
|
| 572 |
+
},
|
| 573 |
+
"disableTextWrap": false,
|
| 574 |
+
"editorMode": "builder",
|
| 575 |
+
"expr": "avg(sum by() (rate(vector_index_queue_insert_count[$__rate_interval])))",
|
| 576 |
+
"fullMetaSearch": false,
|
| 577 |
+
"includeNullMetadata": true,
|
| 578 |
+
"instant": false,
|
| 579 |
+
"legendFormat": "__auto",
|
| 580 |
+
"range": true,
|
| 581 |
+
"refId": "A",
|
| 582 |
+
"useBackend": false
|
| 583 |
+
}
|
| 584 |
+
],
|
| 585 |
+
"title": "Inserts",
|
| 586 |
+
"type": "timeseries"
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"datasource": {
|
| 590 |
+
"type": "prometheus",
|
| 591 |
+
"uid": "Prometheus"
|
| 592 |
+
},
|
| 593 |
+
"fieldConfig": {
|
| 594 |
+
"defaults": {
|
| 595 |
+
"color": {
|
| 596 |
+
"mode": "palette-classic"
|
| 597 |
+
},
|
| 598 |
+
"custom": {
|
| 599 |
+
"axisBorderShow": false,
|
| 600 |
+
"axisCenteredZero": false,
|
| 601 |
+
"axisColorMode": "text",
|
| 602 |
+
"axisLabel": "",
|
| 603 |
+
"axisPlacement": "auto",
|
| 604 |
+
"barAlignment": 0,
|
| 605 |
+
"drawStyle": "line",
|
| 606 |
+
"fillOpacity": 0,
|
| 607 |
+
"gradientMode": "none",
|
| 608 |
+
"hideFrom": {
|
| 609 |
+
"legend": false,
|
| 610 |
+
"tooltip": false,
|
| 611 |
+
"viz": false
|
| 612 |
+
},
|
| 613 |
+
"insertNulls": false,
|
| 614 |
+
"lineInterpolation": "linear",
|
| 615 |
+
"lineWidth": 1,
|
| 616 |
+
"pointSize": 5,
|
| 617 |
+
"scaleDistribution": {
|
| 618 |
+
"type": "linear"
|
| 619 |
+
},
|
| 620 |
+
"showPoints": "auto",
|
| 621 |
+
"spanNulls": false,
|
| 622 |
+
"stacking": {
|
| 623 |
+
"group": "A",
|
| 624 |
+
"mode": "none"
|
| 625 |
+
},
|
| 626 |
+
"thresholdsStyle": {
|
| 627 |
+
"mode": "off"
|
| 628 |
+
}
|
| 629 |
+
},
|
| 630 |
+
"mappings": [],
|
| 631 |
+
"thresholds": {
|
| 632 |
+
"mode": "absolute",
|
| 633 |
+
"steps": [
|
| 634 |
+
{
|
| 635 |
+
"color": "green",
|
| 636 |
+
"value": null
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"color": "red",
|
| 640 |
+
"value": 80
|
| 641 |
+
}
|
| 642 |
+
]
|
| 643 |
+
}
|
| 644 |
+
},
|
| 645 |
+
"overrides": []
|
| 646 |
+
},
|
| 647 |
+
"gridPos": {
|
| 648 |
+
"h": 8,
|
| 649 |
+
"w": 12,
|
| 650 |
+
"x": 12,
|
| 651 |
+
"y": 18
|
| 652 |
+
},
|
| 653 |
+
"id": 10,
|
| 654 |
+
"options": {
|
| 655 |
+
"legend": {
|
| 656 |
+
"calcs": [],
|
| 657 |
+
"displayMode": "list",
|
| 658 |
+
"placement": "bottom",
|
| 659 |
+
"showLegend": true
|
| 660 |
+
},
|
| 661 |
+
"tooltip": {
|
| 662 |
+
"maxHeight": 600,
|
| 663 |
+
"mode": "single",
|
| 664 |
+
"sort": "none"
|
| 665 |
+
}
|
| 666 |
+
},
|
| 667 |
+
"targets": [
|
| 668 |
+
{
|
| 669 |
+
"datasource": {
|
| 670 |
+
"type": "prometheus",
|
| 671 |
+
"uid": "Prometheus"
|
| 672 |
+
},
|
| 673 |
+
"disableTextWrap": false,
|
| 674 |
+
"editorMode": "builder",
|
| 675 |
+
"expr": "avg(sum by() (rate(vector_index_queue_delete_count[$__rate_interval])))",
|
| 676 |
+
"fullMetaSearch": false,
|
| 677 |
+
"includeNullMetadata": true,
|
| 678 |
+
"instant": false,
|
| 679 |
+
"legendFormat": "__auto",
|
| 680 |
+
"range": true,
|
| 681 |
+
"refId": "A",
|
| 682 |
+
"useBackend": false
|
| 683 |
+
}
|
| 684 |
+
],
|
| 685 |
+
"title": "Deletes",
|
| 686 |
+
"type": "timeseries"
|
| 687 |
+
}
|
| 688 |
+
],
|
| 689 |
+
"refresh": "",
|
| 690 |
+
"schemaVersion": 39,
|
| 691 |
+
"tags": [],
|
| 692 |
+
"templating": {
|
| 693 |
+
"list": []
|
| 694 |
+
},
|
| 695 |
+
"time": {
|
| 696 |
+
"from": "now-15m",
|
| 697 |
+
"to": "now"
|
| 698 |
+
},
|
| 699 |
+
"timeRangeUpdatedDuringEditOrView": false,
|
| 700 |
+
"timepicker": {},
|
| 701 |
+
"timezone": "browser",
|
| 702 |
+
"title": "Async Indexing",
|
| 703 |
+
"uid": "cdnvmrjxw1ds0d",
|
| 704 |
+
"version": 1,
|
| 705 |
+
"weekStart": ""
|
| 706 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/kubernetes.json
ADDED
|
@@ -0,0 +1,3164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"target": {
|
| 15 |
+
"limit": 100,
|
| 16 |
+
"matchAny": false,
|
| 17 |
+
"tags": [],
|
| 18 |
+
"type": "dashboard"
|
| 19 |
+
},
|
| 20 |
+
"type": "dashboard"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"editable": true,
|
| 25 |
+
"fiscalYearStartMonth": 0,
|
| 26 |
+
"graphTooltip": 1,
|
| 27 |
+
"id": 25,
|
| 28 |
+
"links": [],
|
| 29 |
+
"panels": [
|
| 30 |
+
{
|
| 31 |
+
"collapsed": false,
|
| 32 |
+
"gridPos": {
|
| 33 |
+
"h": 1,
|
| 34 |
+
"w": 24,
|
| 35 |
+
"x": 0,
|
| 36 |
+
"y": 0
|
| 37 |
+
},
|
| 38 |
+
"id": 50,
|
| 39 |
+
"panels": [],
|
| 40 |
+
"title": "Overview",
|
| 41 |
+
"type": "row"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"datasource": {
|
| 45 |
+
"type": "prometheus",
|
| 46 |
+
"uid": "prometheus"
|
| 47 |
+
},
|
| 48 |
+
"description": "",
|
| 49 |
+
"fieldConfig": {
|
| 50 |
+
"defaults": {
|
| 51 |
+
"color": {
|
| 52 |
+
"mode": "thresholds"
|
| 53 |
+
},
|
| 54 |
+
"mappings": [],
|
| 55 |
+
"thresholds": {
|
| 56 |
+
"mode": "absolute",
|
| 57 |
+
"steps": [
|
| 58 |
+
{
|
| 59 |
+
"color": "green",
|
| 60 |
+
"value": null
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"color": "red",
|
| 64 |
+
"value": 80
|
| 65 |
+
}
|
| 66 |
+
]
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"overrides": []
|
| 70 |
+
},
|
| 71 |
+
"gridPos": {
|
| 72 |
+
"h": 2,
|
| 73 |
+
"w": 5,
|
| 74 |
+
"x": 0,
|
| 75 |
+
"y": 1
|
| 76 |
+
},
|
| 77 |
+
"id": 10,
|
| 78 |
+
"options": {
|
| 79 |
+
"colorMode": "value",
|
| 80 |
+
"graphMode": "none",
|
| 81 |
+
"justifyMode": "auto",
|
| 82 |
+
"orientation": "auto",
|
| 83 |
+
"percentChangeColorMode": "standard",
|
| 84 |
+
"reduceOptions": {
|
| 85 |
+
"calcs": [
|
| 86 |
+
"lastNotNull"
|
| 87 |
+
],
|
| 88 |
+
"fields": "",
|
| 89 |
+
"values": false
|
| 90 |
+
},
|
| 91 |
+
"showPercentChange": false,
|
| 92 |
+
"textMode": "auto",
|
| 93 |
+
"wideLayout": true
|
| 94 |
+
},
|
| 95 |
+
"pluginVersion": "11.5.2",
|
| 96 |
+
"targets": [
|
| 97 |
+
{
|
| 98 |
+
"datasource": {
|
| 99 |
+
"type": "prometheus",
|
| 100 |
+
"uid": "prometheus"
|
| 101 |
+
},
|
| 102 |
+
"editorMode": "code",
|
| 103 |
+
"expr": "count(sum by (class_name)(vector_index_size{}))",
|
| 104 |
+
"legendFormat": "__auto",
|
| 105 |
+
"range": true,
|
| 106 |
+
"refId": "A"
|
| 107 |
+
}
|
| 108 |
+
],
|
| 109 |
+
"title": "Number of collections",
|
| 110 |
+
"type": "stat"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"datasource": {
|
| 114 |
+
"type": "prometheus",
|
| 115 |
+
"uid": "prometheus"
|
| 116 |
+
},
|
| 117 |
+
"description": "Object count (not including Replication Factor)",
|
| 118 |
+
"fieldConfig": {
|
| 119 |
+
"defaults": {
|
| 120 |
+
"color": {
|
| 121 |
+
"mode": "thresholds"
|
| 122 |
+
},
|
| 123 |
+
"mappings": [],
|
| 124 |
+
"min": 0,
|
| 125 |
+
"thresholds": {
|
| 126 |
+
"mode": "absolute",
|
| 127 |
+
"steps": [
|
| 128 |
+
{
|
| 129 |
+
"color": "green",
|
| 130 |
+
"value": null
|
| 131 |
+
}
|
| 132 |
+
]
|
| 133 |
+
},
|
| 134 |
+
"unit": "short"
|
| 135 |
+
},
|
| 136 |
+
"overrides": []
|
| 137 |
+
},
|
| 138 |
+
"gridPos": {
|
| 139 |
+
"h": 5,
|
| 140 |
+
"w": 3,
|
| 141 |
+
"x": 5,
|
| 142 |
+
"y": 1
|
| 143 |
+
},
|
| 144 |
+
"id": 58,
|
| 145 |
+
"options": {
|
| 146 |
+
"colorMode": "value",
|
| 147 |
+
"graphMode": "area",
|
| 148 |
+
"justifyMode": "auto",
|
| 149 |
+
"orientation": "auto",
|
| 150 |
+
"percentChangeColorMode": "standard",
|
| 151 |
+
"reduceOptions": {
|
| 152 |
+
"calcs": [
|
| 153 |
+
"lastNotNull"
|
| 154 |
+
],
|
| 155 |
+
"fields": "",
|
| 156 |
+
"values": false
|
| 157 |
+
},
|
| 158 |
+
"showPercentChange": false,
|
| 159 |
+
"textMode": "auto",
|
| 160 |
+
"wideLayout": true
|
| 161 |
+
},
|
| 162 |
+
"pluginVersion": "11.5.2",
|
| 163 |
+
"targets": [
|
| 164 |
+
{
|
| 165 |
+
"datasource": {
|
| 166 |
+
"type": "prometheus",
|
| 167 |
+
"uid": "prometheus"
|
| 168 |
+
},
|
| 169 |
+
"editorMode": "code",
|
| 170 |
+
"expr": "sum(object_count)",
|
| 171 |
+
"legendFormat": "__auto",
|
| 172 |
+
"range": true,
|
| 173 |
+
"refId": "A"
|
| 174 |
+
}
|
| 175 |
+
],
|
| 176 |
+
"title": "Object count",
|
| 177 |
+
"type": "stat"
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"datasource": {
|
| 181 |
+
"type": "prometheus",
|
| 182 |
+
"uid": "prometheus"
|
| 183 |
+
},
|
| 184 |
+
"description": "Maximum query rate",
|
| 185 |
+
"fieldConfig": {
|
| 186 |
+
"defaults": {
|
| 187 |
+
"color": {
|
| 188 |
+
"mode": "thresholds"
|
| 189 |
+
},
|
| 190 |
+
"mappings": [],
|
| 191 |
+
"min": 0,
|
| 192 |
+
"thresholds": {
|
| 193 |
+
"mode": "absolute",
|
| 194 |
+
"steps": [
|
| 195 |
+
{
|
| 196 |
+
"color": "green",
|
| 197 |
+
"value": null
|
| 198 |
+
}
|
| 199 |
+
]
|
| 200 |
+
},
|
| 201 |
+
"unit": "reqps"
|
| 202 |
+
},
|
| 203 |
+
"overrides": []
|
| 204 |
+
},
|
| 205 |
+
"gridPos": {
|
| 206 |
+
"h": 5,
|
| 207 |
+
"w": 3,
|
| 208 |
+
"x": 8,
|
| 209 |
+
"y": 1
|
| 210 |
+
},
|
| 211 |
+
"id": 63,
|
| 212 |
+
"options": {
|
| 213 |
+
"colorMode": "value",
|
| 214 |
+
"graphMode": "area",
|
| 215 |
+
"justifyMode": "auto",
|
| 216 |
+
"orientation": "auto",
|
| 217 |
+
"percentChangeColorMode": "standard",
|
| 218 |
+
"reduceOptions": {
|
| 219 |
+
"calcs": [
|
| 220 |
+
"mean"
|
| 221 |
+
],
|
| 222 |
+
"fields": "",
|
| 223 |
+
"values": false
|
| 224 |
+
},
|
| 225 |
+
"showPercentChange": false,
|
| 226 |
+
"textMode": "auto",
|
| 227 |
+
"wideLayout": true
|
| 228 |
+
},
|
| 229 |
+
"pluginVersion": "11.5.2",
|
| 230 |
+
"targets": [
|
| 231 |
+
{
|
| 232 |
+
"datasource": {
|
| 233 |
+
"type": "prometheus",
|
| 234 |
+
"uid": "prometheus"
|
| 235 |
+
},
|
| 236 |
+
"editorMode": "code",
|
| 237 |
+
"expr": "sum(rate(requests_total{}[$__rate_interval]))",
|
| 238 |
+
"legendFormat": "__auto",
|
| 239 |
+
"range": true,
|
| 240 |
+
"refId": "A"
|
| 241 |
+
}
|
| 242 |
+
],
|
| 243 |
+
"title": "Mean query rate",
|
| 244 |
+
"type": "stat"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"datasource": {
|
| 248 |
+
"type": "prometheus",
|
| 249 |
+
"uid": "prometheus"
|
| 250 |
+
},
|
| 251 |
+
"description": "Object count (not including Replication Factor)",
|
| 252 |
+
"fieldConfig": {
|
| 253 |
+
"defaults": {
|
| 254 |
+
"color": {
|
| 255 |
+
"mode": "thresholds"
|
| 256 |
+
},
|
| 257 |
+
"mappings": [],
|
| 258 |
+
"min": 0,
|
| 259 |
+
"thresholds": {
|
| 260 |
+
"mode": "absolute",
|
| 261 |
+
"steps": [
|
| 262 |
+
{
|
| 263 |
+
"color": "green",
|
| 264 |
+
"value": null
|
| 265 |
+
}
|
| 266 |
+
]
|
| 267 |
+
},
|
| 268 |
+
"unit": "short"
|
| 269 |
+
},
|
| 270 |
+
"overrides": []
|
| 271 |
+
},
|
| 272 |
+
"gridPos": {
|
| 273 |
+
"h": 5,
|
| 274 |
+
"w": 3,
|
| 275 |
+
"x": 11,
|
| 276 |
+
"y": 1
|
| 277 |
+
},
|
| 278 |
+
"id": 61,
|
| 279 |
+
"options": {
|
| 280 |
+
"colorMode": "value",
|
| 281 |
+
"graphMode": "area",
|
| 282 |
+
"justifyMode": "auto",
|
| 283 |
+
"orientation": "auto",
|
| 284 |
+
"percentChangeColorMode": "standard",
|
| 285 |
+
"reduceOptions": {
|
| 286 |
+
"calcs": [
|
| 287 |
+
"mean"
|
| 288 |
+
],
|
| 289 |
+
"fields": "",
|
| 290 |
+
"values": false
|
| 291 |
+
},
|
| 292 |
+
"showPercentChange": false,
|
| 293 |
+
"textMode": "auto",
|
| 294 |
+
"wideLayout": true
|
| 295 |
+
},
|
| 296 |
+
"pluginVersion": "11.5.2",
|
| 297 |
+
"targets": [
|
| 298 |
+
{
|
| 299 |
+
"datasource": {
|
| 300 |
+
"type": "prometheus",
|
| 301 |
+
"uid": "prometheus"
|
| 302 |
+
},
|
| 303 |
+
"editorMode": "code",
|
| 304 |
+
"expr": "sum(rate(object_count{}[$__rate_interval]))",
|
| 305 |
+
"legendFormat": "__auto",
|
| 306 |
+
"range": true,
|
| 307 |
+
"refId": "A"
|
| 308 |
+
}
|
| 309 |
+
],
|
| 310 |
+
"title": "Mean Object rate",
|
| 311 |
+
"type": "stat"
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"datasource": {
|
| 315 |
+
"type": "prometheus",
|
| 316 |
+
"uid": "prometheus"
|
| 317 |
+
},
|
| 318 |
+
"description": "Average P99 query observed",
|
| 319 |
+
"fieldConfig": {
|
| 320 |
+
"defaults": {
|
| 321 |
+
"color": {
|
| 322 |
+
"mode": "thresholds"
|
| 323 |
+
},
|
| 324 |
+
"mappings": [],
|
| 325 |
+
"min": 0,
|
| 326 |
+
"thresholds": {
|
| 327 |
+
"mode": "absolute",
|
| 328 |
+
"steps": [
|
| 329 |
+
{
|
| 330 |
+
"color": "green",
|
| 331 |
+
"value": null
|
| 332 |
+
}
|
| 333 |
+
]
|
| 334 |
+
},
|
| 335 |
+
"unit": "ms"
|
| 336 |
+
},
|
| 337 |
+
"overrides": []
|
| 338 |
+
},
|
| 339 |
+
"gridPos": {
|
| 340 |
+
"h": 5,
|
| 341 |
+
"w": 3,
|
| 342 |
+
"x": 14,
|
| 343 |
+
"y": 1
|
| 344 |
+
},
|
| 345 |
+
"id": 62,
|
| 346 |
+
"interval": "5m",
|
| 347 |
+
"options": {
|
| 348 |
+
"colorMode": "value",
|
| 349 |
+
"graphMode": "area",
|
| 350 |
+
"justifyMode": "auto",
|
| 351 |
+
"orientation": "auto",
|
| 352 |
+
"percentChangeColorMode": "standard",
|
| 353 |
+
"reduceOptions": {
|
| 354 |
+
"calcs": [
|
| 355 |
+
"mean"
|
| 356 |
+
],
|
| 357 |
+
"fields": "",
|
| 358 |
+
"values": false
|
| 359 |
+
},
|
| 360 |
+
"showPercentChange": false,
|
| 361 |
+
"textMode": "auto",
|
| 362 |
+
"wideLayout": true
|
| 363 |
+
},
|
| 364 |
+
"pluginVersion": "11.5.2",
|
| 365 |
+
"targets": [
|
| 366 |
+
{
|
| 367 |
+
"datasource": {
|
| 368 |
+
"type": "prometheus",
|
| 369 |
+
"uid": "prometheus"
|
| 370 |
+
},
|
| 371 |
+
"editorMode": "code",
|
| 372 |
+
"expr": "histogram_quantile(0.99, sum by(le) (rate(queries_durations_ms_bucket{}[$__interval])))",
|
| 373 |
+
"legendFormat": "__auto",
|
| 374 |
+
"range": true,
|
| 375 |
+
"refId": "A"
|
| 376 |
+
}
|
| 377 |
+
],
|
| 378 |
+
"title": "Mean Query lat P99",
|
| 379 |
+
"transformations": [
|
| 380 |
+
{
|
| 381 |
+
"id": "filterByValue",
|
| 382 |
+
"options": {
|
| 383 |
+
"filters": [
|
| 384 |
+
{
|
| 385 |
+
"config": {
|
| 386 |
+
"id": "greater",
|
| 387 |
+
"options": {
|
| 388 |
+
"value": 0
|
| 389 |
+
}
|
| 390 |
+
},
|
| 391 |
+
"fieldName": "histogram_quantile(0.99, sum by(le) (rate(queries_durations_ms_bucket{}[5m])))"
|
| 392 |
+
}
|
| 393 |
+
],
|
| 394 |
+
"match": "any",
|
| 395 |
+
"type": "include"
|
| 396 |
+
}
|
| 397 |
+
}
|
| 398 |
+
],
|
| 399 |
+
"type": "stat"
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"datasource": {
|
| 403 |
+
"type": "prometheus",
|
| 404 |
+
"uid": "prometheus"
|
| 405 |
+
},
|
| 406 |
+
"fieldConfig": {
|
| 407 |
+
"defaults": {
|
| 408 |
+
"color": {
|
| 409 |
+
"mode": "thresholds"
|
| 410 |
+
},
|
| 411 |
+
"mappings": [],
|
| 412 |
+
"thresholds": {
|
| 413 |
+
"mode": "absolute",
|
| 414 |
+
"steps": [
|
| 415 |
+
{
|
| 416 |
+
"color": "green",
|
| 417 |
+
"value": null
|
| 418 |
+
}
|
| 419 |
+
]
|
| 420 |
+
}
|
| 421 |
+
},
|
| 422 |
+
"overrides": [
|
| 423 |
+
{
|
| 424 |
+
"matcher": {
|
| 425 |
+
"id": "byName",
|
| 426 |
+
"options": "Percentage Replicas Ready"
|
| 427 |
+
},
|
| 428 |
+
"properties": [
|
| 429 |
+
{
|
| 430 |
+
"id": "thresholds",
|
| 431 |
+
"value": {
|
| 432 |
+
"mode": "absolute",
|
| 433 |
+
"steps": [
|
| 434 |
+
{
|
| 435 |
+
"color": "green",
|
| 436 |
+
"value": null
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"color": "dark-red",
|
| 440 |
+
"value": 0.9
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"color": "green",
|
| 444 |
+
"value": 1
|
| 445 |
+
}
|
| 446 |
+
]
|
| 447 |
+
}
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"id": "unit",
|
| 451 |
+
"value": "percentunit"
|
| 452 |
+
}
|
| 453 |
+
]
|
| 454 |
+
}
|
| 455 |
+
]
|
| 456 |
+
},
|
| 457 |
+
"gridPos": {
|
| 458 |
+
"h": 5,
|
| 459 |
+
"w": 4,
|
| 460 |
+
"x": 18,
|
| 461 |
+
"y": 1
|
| 462 |
+
},
|
| 463 |
+
"id": 22,
|
| 464 |
+
"options": {
|
| 465 |
+
"colorMode": "value",
|
| 466 |
+
"graphMode": "area",
|
| 467 |
+
"justifyMode": "auto",
|
| 468 |
+
"orientation": "auto",
|
| 469 |
+
"percentChangeColorMode": "standard",
|
| 470 |
+
"reduceOptions": {
|
| 471 |
+
"calcs": [
|
| 472 |
+
"lastNotNull"
|
| 473 |
+
],
|
| 474 |
+
"fields": "",
|
| 475 |
+
"values": false
|
| 476 |
+
},
|
| 477 |
+
"showPercentChange": false,
|
| 478 |
+
"textMode": "auto",
|
| 479 |
+
"wideLayout": true
|
| 480 |
+
},
|
| 481 |
+
"pluginVersion": "11.5.2",
|
| 482 |
+
"targets": [
|
| 483 |
+
{
|
| 484 |
+
"datasource": {
|
| 485 |
+
"type": "prometheus",
|
| 486 |
+
"uid": "prometheus"
|
| 487 |
+
},
|
| 488 |
+
"editorMode": "code",
|
| 489 |
+
"exemplar": false,
|
| 490 |
+
"expr": "kube_statefulset_status_replicas_ready{statefulset=\"weaviate\"}",
|
| 491 |
+
"instant": true,
|
| 492 |
+
"legendFormat": "Replicas Ready",
|
| 493 |
+
"range": false,
|
| 494 |
+
"refId": "A"
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"datasource": {
|
| 498 |
+
"type": "prometheus",
|
| 499 |
+
"uid": "prometheus"
|
| 500 |
+
},
|
| 501 |
+
"editorMode": "code",
|
| 502 |
+
"exemplar": false,
|
| 503 |
+
"expr": "kube_statefulset_status_replicas_ready{statefulset=\"weaviate\"} / kube_statefulset_status_replicas{statefulset=\"weaviate\"}",
|
| 504 |
+
"hide": false,
|
| 505 |
+
"instant": true,
|
| 506 |
+
"legendFormat": "Percentage Replicas Ready",
|
| 507 |
+
"range": false,
|
| 508 |
+
"refId": "B"
|
| 509 |
+
}
|
| 510 |
+
],
|
| 511 |
+
"title": "Statefulset Replicas",
|
| 512 |
+
"type": "stat"
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"datasource": {
|
| 516 |
+
"type": "prometheus",
|
| 517 |
+
"uid": "prometheus"
|
| 518 |
+
},
|
| 519 |
+
"fieldConfig": {
|
| 520 |
+
"defaults": {
|
| 521 |
+
"color": {
|
| 522 |
+
"mode": "thresholds"
|
| 523 |
+
},
|
| 524 |
+
"mappings": [],
|
| 525 |
+
"thresholds": {
|
| 526 |
+
"mode": "absolute",
|
| 527 |
+
"steps": [
|
| 528 |
+
{
|
| 529 |
+
"color": "green",
|
| 530 |
+
"value": null
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"color": "red",
|
| 534 |
+
"value": 80
|
| 535 |
+
}
|
| 536 |
+
]
|
| 537 |
+
}
|
| 538 |
+
},
|
| 539 |
+
"overrides": []
|
| 540 |
+
},
|
| 541 |
+
"gridPos": {
|
| 542 |
+
"h": 5,
|
| 543 |
+
"w": 2,
|
| 544 |
+
"x": 22,
|
| 545 |
+
"y": 1
|
| 546 |
+
},
|
| 547 |
+
"id": 30,
|
| 548 |
+
"options": {
|
| 549 |
+
"colorMode": "value",
|
| 550 |
+
"graphMode": "area",
|
| 551 |
+
"justifyMode": "auto",
|
| 552 |
+
"orientation": "auto",
|
| 553 |
+
"percentChangeColorMode": "standard",
|
| 554 |
+
"reduceOptions": {
|
| 555 |
+
"calcs": [
|
| 556 |
+
"max"
|
| 557 |
+
],
|
| 558 |
+
"fields": "",
|
| 559 |
+
"values": false
|
| 560 |
+
},
|
| 561 |
+
"showPercentChange": false,
|
| 562 |
+
"textMode": "auto",
|
| 563 |
+
"wideLayout": true
|
| 564 |
+
},
|
| 565 |
+
"pluginVersion": "11.5.2",
|
| 566 |
+
"targets": [
|
| 567 |
+
{
|
| 568 |
+
"datasource": {
|
| 569 |
+
"type": "prometheus",
|
| 570 |
+
"uid": "prometheus"
|
| 571 |
+
},
|
| 572 |
+
"editorMode": "code",
|
| 573 |
+
"exemplar": false,
|
| 574 |
+
"expr": "sum(rate(container_oom_events_total{pod=~\"weaviate.*\"}[$__rate_interval]))",
|
| 575 |
+
"instant": false,
|
| 576 |
+
"legendFormat": "__auto",
|
| 577 |
+
"range": true,
|
| 578 |
+
"refId": "A"
|
| 579 |
+
}
|
| 580 |
+
],
|
| 581 |
+
"title": "OOM Events",
|
| 582 |
+
"type": "stat"
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"datasource": {
|
| 586 |
+
"type": "prometheus",
|
| 587 |
+
"uid": "prometheus"
|
| 588 |
+
},
|
| 589 |
+
"fieldConfig": {
|
| 590 |
+
"defaults": {
|
| 591 |
+
"color": {
|
| 592 |
+
"mode": "thresholds"
|
| 593 |
+
},
|
| 594 |
+
"mappings": [],
|
| 595 |
+
"thresholds": {
|
| 596 |
+
"mode": "absolute",
|
| 597 |
+
"steps": [
|
| 598 |
+
{
|
| 599 |
+
"color": "green",
|
| 600 |
+
"value": null
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"color": "red",
|
| 604 |
+
"value": 80
|
| 605 |
+
}
|
| 606 |
+
]
|
| 607 |
+
}
|
| 608 |
+
},
|
| 609 |
+
"overrides": []
|
| 610 |
+
},
|
| 611 |
+
"gridPos": {
|
| 612 |
+
"h": 3,
|
| 613 |
+
"w": 5,
|
| 614 |
+
"x": 0,
|
| 615 |
+
"y": 3
|
| 616 |
+
},
|
| 617 |
+
"id": 5,
|
| 618 |
+
"options": {
|
| 619 |
+
"colorMode": "value",
|
| 620 |
+
"graphMode": "area",
|
| 621 |
+
"justifyMode": "auto",
|
| 622 |
+
"orientation": "auto",
|
| 623 |
+
"percentChangeColorMode": "standard",
|
| 624 |
+
"reduceOptions": {
|
| 625 |
+
"calcs": [
|
| 626 |
+
"last"
|
| 627 |
+
],
|
| 628 |
+
"fields": "",
|
| 629 |
+
"values": false
|
| 630 |
+
},
|
| 631 |
+
"showPercentChange": false,
|
| 632 |
+
"textMode": "name",
|
| 633 |
+
"wideLayout": true
|
| 634 |
+
},
|
| 635 |
+
"pluginVersion": "11.5.2",
|
| 636 |
+
"targets": [
|
| 637 |
+
{
|
| 638 |
+
"datasource": {
|
| 639 |
+
"type": "prometheus",
|
| 640 |
+
"uid": "prometheus"
|
| 641 |
+
},
|
| 642 |
+
"editorMode": "code",
|
| 643 |
+
"exemplar": false,
|
| 644 |
+
"expr": "topk(1,kube_pod_container_info{container=\"weaviate\"})",
|
| 645 |
+
"instant": true,
|
| 646 |
+
"legendFormat": "{{image}}",
|
| 647 |
+
"range": false,
|
| 648 |
+
"refId": "A"
|
| 649 |
+
}
|
| 650 |
+
],
|
| 651 |
+
"title": "Weaviate Image",
|
| 652 |
+
"type": "stat"
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"datasource": {
|
| 656 |
+
"type": "prometheus",
|
| 657 |
+
"uid": "prometheus"
|
| 658 |
+
},
|
| 659 |
+
"description": "Average heap memory usage",
|
| 660 |
+
"fieldConfig": {
|
| 661 |
+
"defaults": {
|
| 662 |
+
"color": {
|
| 663 |
+
"mode": "thresholds"
|
| 664 |
+
},
|
| 665 |
+
"mappings": [],
|
| 666 |
+
"thresholds": {
|
| 667 |
+
"mode": "absolute",
|
| 668 |
+
"steps": [
|
| 669 |
+
{
|
| 670 |
+
"color": "green",
|
| 671 |
+
"value": null
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"color": "#EAB839",
|
| 675 |
+
"value": 70
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"color": "red",
|
| 679 |
+
"value": 80
|
| 680 |
+
}
|
| 681 |
+
]
|
| 682 |
+
},
|
| 683 |
+
"unit": "percent"
|
| 684 |
+
},
|
| 685 |
+
"overrides": []
|
| 686 |
+
},
|
| 687 |
+
"gridPos": {
|
| 688 |
+
"h": 5,
|
| 689 |
+
"w": 4,
|
| 690 |
+
"x": 0,
|
| 691 |
+
"y": 6
|
| 692 |
+
},
|
| 693 |
+
"id": 31,
|
| 694 |
+
"options": {
|
| 695 |
+
"colorMode": "value",
|
| 696 |
+
"graphMode": "area",
|
| 697 |
+
"justifyMode": "auto",
|
| 698 |
+
"orientation": "auto",
|
| 699 |
+
"percentChangeColorMode": "standard",
|
| 700 |
+
"reduceOptions": {
|
| 701 |
+
"calcs": [
|
| 702 |
+
"mean"
|
| 703 |
+
],
|
| 704 |
+
"fields": "",
|
| 705 |
+
"values": false
|
| 706 |
+
},
|
| 707 |
+
"showPercentChange": false,
|
| 708 |
+
"textMode": "auto",
|
| 709 |
+
"wideLayout": true
|
| 710 |
+
},
|
| 711 |
+
"pluginVersion": "11.5.2",
|
| 712 |
+
"targets": [
|
| 713 |
+
{
|
| 714 |
+
"datasource": {
|
| 715 |
+
"type": "prometheus",
|
| 716 |
+
"uid": "prometheus"
|
| 717 |
+
},
|
| 718 |
+
"editorMode": "code",
|
| 719 |
+
"expr": "avg(sum by (instance) (go_memstats_heap_inuse_bytes{job=\"weaviate\"}) / sum by (instance)(go_gc_gomemlimit_bytes{job=\"weaviate\"} )) * 100",
|
| 720 |
+
"legendFormat": "__auto",
|
| 721 |
+
"range": true,
|
| 722 |
+
"refId": "A"
|
| 723 |
+
}
|
| 724 |
+
],
|
| 725 |
+
"title": "Weaviate Heap Memory ",
|
| 726 |
+
"type": "stat"
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"datasource": {
|
| 730 |
+
"type": "prometheus",
|
| 731 |
+
"uid": "prometheus"
|
| 732 |
+
},
|
| 733 |
+
"description": "Average CPU usage",
|
| 734 |
+
"fieldConfig": {
|
| 735 |
+
"defaults": {
|
| 736 |
+
"color": {
|
| 737 |
+
"mode": "thresholds"
|
| 738 |
+
},
|
| 739 |
+
"mappings": [],
|
| 740 |
+
"thresholds": {
|
| 741 |
+
"mode": "absolute",
|
| 742 |
+
"steps": [
|
| 743 |
+
{
|
| 744 |
+
"color": "green",
|
| 745 |
+
"value": null
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"color": "#EAB839",
|
| 749 |
+
"value": 70
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"color": "red",
|
| 753 |
+
"value": 80
|
| 754 |
+
}
|
| 755 |
+
]
|
| 756 |
+
},
|
| 757 |
+
"unit": "percent"
|
| 758 |
+
},
|
| 759 |
+
"overrides": []
|
| 760 |
+
},
|
| 761 |
+
"gridPos": {
|
| 762 |
+
"h": 5,
|
| 763 |
+
"w": 4,
|
| 764 |
+
"x": 4,
|
| 765 |
+
"y": 6
|
| 766 |
+
},
|
| 767 |
+
"id": 56,
|
| 768 |
+
"options": {
|
| 769 |
+
"colorMode": "value",
|
| 770 |
+
"graphMode": "area",
|
| 771 |
+
"justifyMode": "auto",
|
| 772 |
+
"orientation": "auto",
|
| 773 |
+
"percentChangeColorMode": "standard",
|
| 774 |
+
"reduceOptions": {
|
| 775 |
+
"calcs": [
|
| 776 |
+
"mean"
|
| 777 |
+
],
|
| 778 |
+
"fields": "",
|
| 779 |
+
"values": false
|
| 780 |
+
},
|
| 781 |
+
"showPercentChange": false,
|
| 782 |
+
"textMode": "auto",
|
| 783 |
+
"wideLayout": true
|
| 784 |
+
},
|
| 785 |
+
"pluginVersion": "11.5.2",
|
| 786 |
+
"targets": [
|
| 787 |
+
{
|
| 788 |
+
"datasource": {
|
| 789 |
+
"type": "prometheus",
|
| 790 |
+
"uid": "prometheus"
|
| 791 |
+
},
|
| 792 |
+
"editorMode": "code",
|
| 793 |
+
"expr": "avg(sum(rate(container_cpu_usage_seconds_total{container=\"weaviate\"}[$__rate_interval])) by (pod) / (sum by (pod) (kube_pod_container_resource_limits{resource=\"cpu\", container=\"weaviate\"}) ) * 100) ",
|
| 794 |
+
"legendFormat": "{{pod}}-{{instance}}",
|
| 795 |
+
"range": true,
|
| 796 |
+
"refId": "A"
|
| 797 |
+
}
|
| 798 |
+
],
|
| 799 |
+
"title": "CPU",
|
| 800 |
+
"type": "stat"
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"datasource": {
|
| 804 |
+
"type": "prometheus",
|
| 805 |
+
"uid": "prometheus"
|
| 806 |
+
},
|
| 807 |
+
"description": "Max disk usage",
|
| 808 |
+
"fieldConfig": {
|
| 809 |
+
"defaults": {
|
| 810 |
+
"color": {
|
| 811 |
+
"mode": "thresholds"
|
| 812 |
+
},
|
| 813 |
+
"mappings": [],
|
| 814 |
+
"thresholds": {
|
| 815 |
+
"mode": "absolute",
|
| 816 |
+
"steps": [
|
| 817 |
+
{
|
| 818 |
+
"color": "green",
|
| 819 |
+
"value": null
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"color": "#EAB839",
|
| 823 |
+
"value": 70
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"color": "red",
|
| 827 |
+
"value": 80
|
| 828 |
+
}
|
| 829 |
+
]
|
| 830 |
+
},
|
| 831 |
+
"unit": "percent"
|
| 832 |
+
},
|
| 833 |
+
"overrides": []
|
| 834 |
+
},
|
| 835 |
+
"gridPos": {
|
| 836 |
+
"h": 5,
|
| 837 |
+
"w": 4,
|
| 838 |
+
"x": 8,
|
| 839 |
+
"y": 6
|
| 840 |
+
},
|
| 841 |
+
"id": 57,
|
| 842 |
+
"options": {
|
| 843 |
+
"colorMode": "value",
|
| 844 |
+
"graphMode": "area",
|
| 845 |
+
"justifyMode": "auto",
|
| 846 |
+
"orientation": "auto",
|
| 847 |
+
"percentChangeColorMode": "standard",
|
| 848 |
+
"reduceOptions": {
|
| 849 |
+
"calcs": [
|
| 850 |
+
"lastNotNull"
|
| 851 |
+
],
|
| 852 |
+
"fields": "",
|
| 853 |
+
"values": false
|
| 854 |
+
},
|
| 855 |
+
"showPercentChange": false,
|
| 856 |
+
"textMode": "auto",
|
| 857 |
+
"wideLayout": true
|
| 858 |
+
},
|
| 859 |
+
"pluginVersion": "11.5.2",
|
| 860 |
+
"targets": [
|
| 861 |
+
{
|
| 862 |
+
"datasource": {
|
| 863 |
+
"type": "prometheus",
|
| 864 |
+
"uid": "prometheus"
|
| 865 |
+
},
|
| 866 |
+
"editorMode": "code",
|
| 867 |
+
"expr": "max (sum by (persistentvolumeclaim) (kubelet_volume_stats_used_bytes{persistentvolumeclaim=~\".*weaviate.*\"}) / sum by (persistentvolumeclaim) (kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~\".*weaviate.*\"}) *100)",
|
| 868 |
+
"legendFormat": "{{pod}}-{{instance}}",
|
| 869 |
+
"range": true,
|
| 870 |
+
"refId": "A"
|
| 871 |
+
}
|
| 872 |
+
],
|
| 873 |
+
"title": "Disk",
|
| 874 |
+
"type": "stat"
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"datasource": {
|
| 878 |
+
"type": "prometheus",
|
| 879 |
+
"uid": "prometheus"
|
| 880 |
+
},
|
| 881 |
+
"fieldConfig": {
|
| 882 |
+
"defaults": {
|
| 883 |
+
"color": {
|
| 884 |
+
"mode": "palette-classic"
|
| 885 |
+
},
|
| 886 |
+
"custom": {
|
| 887 |
+
"axisBorderShow": false,
|
| 888 |
+
"axisCenteredZero": false,
|
| 889 |
+
"axisColorMode": "text",
|
| 890 |
+
"axisLabel": "",
|
| 891 |
+
"axisPlacement": "auto",
|
| 892 |
+
"barAlignment": 0.5,
|
| 893 |
+
"barWidthFactor": 0.6,
|
| 894 |
+
"drawStyle": "bar",
|
| 895 |
+
"fillOpacity": 0,
|
| 896 |
+
"gradientMode": "none",
|
| 897 |
+
"hideFrom": {
|
| 898 |
+
"legend": false,
|
| 899 |
+
"tooltip": false,
|
| 900 |
+
"viz": false
|
| 901 |
+
},
|
| 902 |
+
"insertNulls": false,
|
| 903 |
+
"lineInterpolation": "linear",
|
| 904 |
+
"lineWidth": 1,
|
| 905 |
+
"pointSize": 5,
|
| 906 |
+
"scaleDistribution": {
|
| 907 |
+
"type": "linear"
|
| 908 |
+
},
|
| 909 |
+
"showPoints": "auto",
|
| 910 |
+
"spanNulls": false,
|
| 911 |
+
"stacking": {
|
| 912 |
+
"group": "A",
|
| 913 |
+
"mode": "normal"
|
| 914 |
+
},
|
| 915 |
+
"thresholdsStyle": {
|
| 916 |
+
"mode": "off"
|
| 917 |
+
}
|
| 918 |
+
},
|
| 919 |
+
"mappings": [],
|
| 920 |
+
"thresholds": {
|
| 921 |
+
"mode": "absolute",
|
| 922 |
+
"steps": [
|
| 923 |
+
{
|
| 924 |
+
"color": "green",
|
| 925 |
+
"value": null
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"color": "red",
|
| 929 |
+
"value": 80
|
| 930 |
+
}
|
| 931 |
+
]
|
| 932 |
+
}
|
| 933 |
+
},
|
| 934 |
+
"overrides": [
|
| 935 |
+
{
|
| 936 |
+
"matcher": {
|
| 937 |
+
"id": "byName",
|
| 938 |
+
"options": "A"
|
| 939 |
+
},
|
| 940 |
+
"properties": [
|
| 941 |
+
{
|
| 942 |
+
"id": "color",
|
| 943 |
+
"value": {
|
| 944 |
+
"fixedColor": "green",
|
| 945 |
+
"mode": "fixed"
|
| 946 |
+
}
|
| 947 |
+
}
|
| 948 |
+
]
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"matcher": {
|
| 952 |
+
"id": "byName",
|
| 953 |
+
"options": "B"
|
| 954 |
+
},
|
| 955 |
+
"properties": [
|
| 956 |
+
{
|
| 957 |
+
"id": "color",
|
| 958 |
+
"value": {
|
| 959 |
+
"fixedColor": "red",
|
| 960 |
+
"mode": "fixed"
|
| 961 |
+
}
|
| 962 |
+
}
|
| 963 |
+
]
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"matcher": {
|
| 967 |
+
"id": "byName",
|
| 968 |
+
"options": "C"
|
| 969 |
+
},
|
| 970 |
+
"properties": [
|
| 971 |
+
{
|
| 972 |
+
"id": "color",
|
| 973 |
+
"value": {
|
| 974 |
+
"fixedColor": "blue",
|
| 975 |
+
"mode": "fixed"
|
| 976 |
+
}
|
| 977 |
+
}
|
| 978 |
+
]
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"matcher": {
|
| 982 |
+
"id": "byName",
|
| 983 |
+
"options": "D"
|
| 984 |
+
},
|
| 985 |
+
"properties": [
|
| 986 |
+
{
|
| 987 |
+
"id": "color",
|
| 988 |
+
"value": {
|
| 989 |
+
"fixedColor": "orange",
|
| 990 |
+
"mode": "fixed"
|
| 991 |
+
}
|
| 992 |
+
}
|
| 993 |
+
]
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"matcher": {
|
| 997 |
+
"id": "byName",
|
| 998 |
+
"options": "E"
|
| 999 |
+
},
|
| 1000 |
+
"properties": [
|
| 1001 |
+
{
|
| 1002 |
+
"id": "color",
|
| 1003 |
+
"value": {
|
| 1004 |
+
"fixedColor": "purple",
|
| 1005 |
+
"mode": "fixed"
|
| 1006 |
+
}
|
| 1007 |
+
}
|
| 1008 |
+
]
|
| 1009 |
+
}
|
| 1010 |
+
]
|
| 1011 |
+
},
|
| 1012 |
+
"gridPos": {
|
| 1013 |
+
"h": 4,
|
| 1014 |
+
"w": 12,
|
| 1015 |
+
"x": 12,
|
| 1016 |
+
"y": 6
|
| 1017 |
+
},
|
| 1018 |
+
"id": 49,
|
| 1019 |
+
"options": {
|
| 1020 |
+
"legend": {
|
| 1021 |
+
"calcs": [],
|
| 1022 |
+
"displayMode": "table",
|
| 1023 |
+
"placement": "bottom",
|
| 1024 |
+
"showLegend": true
|
| 1025 |
+
},
|
| 1026 |
+
"tooltip": {
|
| 1027 |
+
"hideZeros": false,
|
| 1028 |
+
"mode": "multi",
|
| 1029 |
+
"sort": "none"
|
| 1030 |
+
}
|
| 1031 |
+
},
|
| 1032 |
+
"pluginVersion": "11.5.2",
|
| 1033 |
+
"targets": [
|
| 1034 |
+
{
|
| 1035 |
+
"datasource": {
|
| 1036 |
+
"type": "prometheus",
|
| 1037 |
+
"uid": "prometheus"
|
| 1038 |
+
},
|
| 1039 |
+
"editorMode": "code",
|
| 1040 |
+
"expr": "sum(increase(kube_pod_container_status_restarts_total{}[$__rate_interval])) by (namespace)",
|
| 1041 |
+
"legendFormat": "Restarts - {{namespace}}",
|
| 1042 |
+
"range": true,
|
| 1043 |
+
"refId": "A"
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"datasource": {
|
| 1047 |
+
"type": "prometheus",
|
| 1048 |
+
"uid": "prometheus"
|
| 1049 |
+
},
|
| 1050 |
+
"editorMode": "code",
|
| 1051 |
+
"expr": "sum(increase(kube_pod_container_status_terminated{}[10m])) by (namespace)",
|
| 1052 |
+
"legendFormat": "Terminated Pods - {{namespace}}",
|
| 1053 |
+
"range": true,
|
| 1054 |
+
"refId": "B"
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"datasource": {
|
| 1058 |
+
"type": "prometheus",
|
| 1059 |
+
"uid": "prometheus"
|
| 1060 |
+
},
|
| 1061 |
+
"editorMode": "code",
|
| 1062 |
+
"expr": "sum(kube_pod_container_status_terminated_reason{}) by (namespace, reason)",
|
| 1063 |
+
"legendFormat": "{{reason}} - {{namespace}}",
|
| 1064 |
+
"range": true,
|
| 1065 |
+
"refId": "E"
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"datasource": {
|
| 1069 |
+
"type": "prometheus",
|
| 1070 |
+
"uid": "prometheus"
|
| 1071 |
+
},
|
| 1072 |
+
"editorMode": "code",
|
| 1073 |
+
"expr": "sum(kube_pod_container_status_terminated_reason{reason=\"Completed\"}) by (namespace)",
|
| 1074 |
+
"legendFormat": "Completed - {{namespace}}",
|
| 1075 |
+
"range": true,
|
| 1076 |
+
"refId": "D"
|
| 1077 |
+
}
|
| 1078 |
+
],
|
| 1079 |
+
"title": "Pod Restarts and Terminations per Namespace",
|
| 1080 |
+
"type": "timeseries"
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"datasource": {
|
| 1084 |
+
"type": "prometheus",
|
| 1085 |
+
"uid": "prometheus"
|
| 1086 |
+
},
|
| 1087 |
+
"fieldConfig": {
|
| 1088 |
+
"defaults": {
|
| 1089 |
+
"color": {
|
| 1090 |
+
"mode": "palette-classic"
|
| 1091 |
+
},
|
| 1092 |
+
"custom": {
|
| 1093 |
+
"axisBorderShow": false,
|
| 1094 |
+
"axisCenteredZero": false,
|
| 1095 |
+
"axisColorMode": "text",
|
| 1096 |
+
"axisLabel": "",
|
| 1097 |
+
"axisPlacement": "auto",
|
| 1098 |
+
"barAlignment": 0,
|
| 1099 |
+
"barWidthFactor": 0.6,
|
| 1100 |
+
"drawStyle": "line",
|
| 1101 |
+
"fillOpacity": 0,
|
| 1102 |
+
"gradientMode": "none",
|
| 1103 |
+
"hideFrom": {
|
| 1104 |
+
"legend": false,
|
| 1105 |
+
"tooltip": false,
|
| 1106 |
+
"viz": false
|
| 1107 |
+
},
|
| 1108 |
+
"insertNulls": false,
|
| 1109 |
+
"lineInterpolation": "linear",
|
| 1110 |
+
"lineWidth": 1,
|
| 1111 |
+
"pointSize": 5,
|
| 1112 |
+
"scaleDistribution": {
|
| 1113 |
+
"type": "linear"
|
| 1114 |
+
},
|
| 1115 |
+
"showPoints": "auto",
|
| 1116 |
+
"spanNulls": false,
|
| 1117 |
+
"stacking": {
|
| 1118 |
+
"group": "A",
|
| 1119 |
+
"mode": "none"
|
| 1120 |
+
},
|
| 1121 |
+
"thresholdsStyle": {
|
| 1122 |
+
"mode": "off"
|
| 1123 |
+
}
|
| 1124 |
+
},
|
| 1125 |
+
"mappings": [],
|
| 1126 |
+
"thresholds": {
|
| 1127 |
+
"mode": "absolute",
|
| 1128 |
+
"steps": [
|
| 1129 |
+
{
|
| 1130 |
+
"color": "green",
|
| 1131 |
+
"value": null
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"color": "red",
|
| 1135 |
+
"value": 80
|
| 1136 |
+
}
|
| 1137 |
+
]
|
| 1138 |
+
}
|
| 1139 |
+
},
|
| 1140 |
+
"overrides": []
|
| 1141 |
+
},
|
| 1142 |
+
"gridPos": {
|
| 1143 |
+
"h": 7,
|
| 1144 |
+
"w": 12,
|
| 1145 |
+
"x": 12,
|
| 1146 |
+
"y": 10
|
| 1147 |
+
},
|
| 1148 |
+
"id": 2,
|
| 1149 |
+
"options": {
|
| 1150 |
+
"legend": {
|
| 1151 |
+
"calcs": [],
|
| 1152 |
+
"displayMode": "list",
|
| 1153 |
+
"placement": "bottom",
|
| 1154 |
+
"showLegend": true
|
| 1155 |
+
},
|
| 1156 |
+
"tooltip": {
|
| 1157 |
+
"hideZeros": false,
|
| 1158 |
+
"mode": "single",
|
| 1159 |
+
"sort": "none"
|
| 1160 |
+
}
|
| 1161 |
+
},
|
| 1162 |
+
"pluginVersion": "11.5.2",
|
| 1163 |
+
"targets": [
|
| 1164 |
+
{
|
| 1165 |
+
"datasource": {
|
| 1166 |
+
"type": "prometheus",
|
| 1167 |
+
"uid": "prometheus"
|
| 1168 |
+
},
|
| 1169 |
+
"editorMode": "code",
|
| 1170 |
+
"expr": "rate(container_cpu_usage_seconds_total{container=\"weaviate\"}[$__rate_interval])",
|
| 1171 |
+
"legendFormat": "{{pod}}-{{instance}}",
|
| 1172 |
+
"range": true,
|
| 1173 |
+
"refId": "A"
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"datasource": {
|
| 1177 |
+
"type": "prometheus",
|
| 1178 |
+
"uid": "prometheus"
|
| 1179 |
+
},
|
| 1180 |
+
"editorMode": "code",
|
| 1181 |
+
"expr": "sum by (pod, instance) (kube_pod_container_resource_limits{resource=\"cpu\", container=\"weaviate\"})",
|
| 1182 |
+
"hide": false,
|
| 1183 |
+
"instant": false,
|
| 1184 |
+
"interval": "",
|
| 1185 |
+
"legendFormat": "cpu limit {{pod}}",
|
| 1186 |
+
"range": true,
|
| 1187 |
+
"refId": "B"
|
| 1188 |
+
}
|
| 1189 |
+
],
|
| 1190 |
+
"title": "CPU usage",
|
| 1191 |
+
"type": "timeseries"
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"datasource": {
|
| 1195 |
+
"type": "prometheus",
|
| 1196 |
+
"uid": "prometheus"
|
| 1197 |
+
},
|
| 1198 |
+
"fieldConfig": {
|
| 1199 |
+
"defaults": {
|
| 1200 |
+
"color": {
|
| 1201 |
+
"mode": "palette-classic"
|
| 1202 |
+
},
|
| 1203 |
+
"custom": {
|
| 1204 |
+
"axisBorderShow": false,
|
| 1205 |
+
"axisCenteredZero": false,
|
| 1206 |
+
"axisColorMode": "text",
|
| 1207 |
+
"axisLabel": "",
|
| 1208 |
+
"axisPlacement": "auto",
|
| 1209 |
+
"axisSoftMin": 0,
|
| 1210 |
+
"barAlignment": 0,
|
| 1211 |
+
"barWidthFactor": 0.6,
|
| 1212 |
+
"drawStyle": "line",
|
| 1213 |
+
"fillOpacity": 0,
|
| 1214 |
+
"gradientMode": "none",
|
| 1215 |
+
"hideFrom": {
|
| 1216 |
+
"legend": false,
|
| 1217 |
+
"tooltip": false,
|
| 1218 |
+
"viz": false
|
| 1219 |
+
},
|
| 1220 |
+
"insertNulls": false,
|
| 1221 |
+
"lineInterpolation": "linear",
|
| 1222 |
+
"lineWidth": 1,
|
| 1223 |
+
"pointSize": 5,
|
| 1224 |
+
"scaleDistribution": {
|
| 1225 |
+
"type": "linear"
|
| 1226 |
+
},
|
| 1227 |
+
"showPoints": "auto",
|
| 1228 |
+
"spanNulls": false,
|
| 1229 |
+
"stacking": {
|
| 1230 |
+
"group": "A",
|
| 1231 |
+
"mode": "none"
|
| 1232 |
+
},
|
| 1233 |
+
"thresholdsStyle": {
|
| 1234 |
+
"mode": "off"
|
| 1235 |
+
}
|
| 1236 |
+
},
|
| 1237 |
+
"mappings": [],
|
| 1238 |
+
"thresholds": {
|
| 1239 |
+
"mode": "absolute",
|
| 1240 |
+
"steps": [
|
| 1241 |
+
{
|
| 1242 |
+
"color": "green",
|
| 1243 |
+
"value": null
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"color": "red",
|
| 1247 |
+
"value": 80
|
| 1248 |
+
}
|
| 1249 |
+
]
|
| 1250 |
+
},
|
| 1251 |
+
"unit": "bytes"
|
| 1252 |
+
},
|
| 1253 |
+
"overrides": []
|
| 1254 |
+
},
|
| 1255 |
+
"gridPos": {
|
| 1256 |
+
"h": 6,
|
| 1257 |
+
"w": 12,
|
| 1258 |
+
"x": 0,
|
| 1259 |
+
"y": 11
|
| 1260 |
+
},
|
| 1261 |
+
"id": 4,
|
| 1262 |
+
"interval": "1m",
|
| 1263 |
+
"options": {
|
| 1264 |
+
"legend": {
|
| 1265 |
+
"calcs": [],
|
| 1266 |
+
"displayMode": "list",
|
| 1267 |
+
"placement": "bottom",
|
| 1268 |
+
"showLegend": true
|
| 1269 |
+
},
|
| 1270 |
+
"tooltip": {
|
| 1271 |
+
"hideZeros": false,
|
| 1272 |
+
"mode": "single",
|
| 1273 |
+
"sort": "none"
|
| 1274 |
+
}
|
| 1275 |
+
},
|
| 1276 |
+
"pluginVersion": "11.5.2",
|
| 1277 |
+
"targets": [
|
| 1278 |
+
{
|
| 1279 |
+
"datasource": {
|
| 1280 |
+
"type": "prometheus",
|
| 1281 |
+
"uid": "prometheus"
|
| 1282 |
+
},
|
| 1283 |
+
"editorMode": "code",
|
| 1284 |
+
"expr": "go_memstats_heap_inuse_bytes{job=\"weaviate\"}",
|
| 1285 |
+
"hide": false,
|
| 1286 |
+
"legendFormat": "Heap {{pod}}",
|
| 1287 |
+
"range": true,
|
| 1288 |
+
"refId": "A"
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"datasource": {
|
| 1292 |
+
"type": "prometheus",
|
| 1293 |
+
"uid": "prometheus"
|
| 1294 |
+
},
|
| 1295 |
+
"editorMode": "code",
|
| 1296 |
+
"expr": "go_gc_gomemlimit_bytes{job=\"weaviate\"} ",
|
| 1297 |
+
"hide": false,
|
| 1298 |
+
"legendFormat": "Max Heap {{pod}}",
|
| 1299 |
+
"range": true,
|
| 1300 |
+
"refId": "B"
|
| 1301 |
+
}
|
| 1302 |
+
],
|
| 1303 |
+
"title": "Weaviate Heap usage",
|
| 1304 |
+
"type": "timeseries"
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"collapsed": false,
|
| 1308 |
+
"gridPos": {
|
| 1309 |
+
"h": 1,
|
| 1310 |
+
"w": 24,
|
| 1311 |
+
"x": 0,
|
| 1312 |
+
"y": 17
|
| 1313 |
+
},
|
| 1314 |
+
"id": 64,
|
| 1315 |
+
"panels": [],
|
| 1316 |
+
"title": "Workload",
|
| 1317 |
+
"type": "row"
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"datasource": {
|
| 1321 |
+
"type": "prometheus",
|
| 1322 |
+
"uid": "prometheus"
|
| 1323 |
+
},
|
| 1324 |
+
"fieldConfig": {
|
| 1325 |
+
"defaults": {
|
| 1326 |
+
"color": {
|
| 1327 |
+
"mode": "palette-classic"
|
| 1328 |
+
},
|
| 1329 |
+
"custom": {
|
| 1330 |
+
"axisBorderShow": false,
|
| 1331 |
+
"axisCenteredZero": false,
|
| 1332 |
+
"axisColorMode": "text",
|
| 1333 |
+
"axisLabel": "",
|
| 1334 |
+
"axisPlacement": "auto",
|
| 1335 |
+
"barAlignment": 0,
|
| 1336 |
+
"barWidthFactor": 0.6,
|
| 1337 |
+
"drawStyle": "line",
|
| 1338 |
+
"fillOpacity": 0,
|
| 1339 |
+
"gradientMode": "none",
|
| 1340 |
+
"hideFrom": {
|
| 1341 |
+
"legend": false,
|
| 1342 |
+
"tooltip": false,
|
| 1343 |
+
"viz": false
|
| 1344 |
+
},
|
| 1345 |
+
"insertNulls": false,
|
| 1346 |
+
"lineInterpolation": "linear",
|
| 1347 |
+
"lineWidth": 1,
|
| 1348 |
+
"pointSize": 5,
|
| 1349 |
+
"scaleDistribution": {
|
| 1350 |
+
"type": "linear"
|
| 1351 |
+
},
|
| 1352 |
+
"showPoints": "auto",
|
| 1353 |
+
"spanNulls": false,
|
| 1354 |
+
"stacking": {
|
| 1355 |
+
"group": "A",
|
| 1356 |
+
"mode": "none"
|
| 1357 |
+
},
|
| 1358 |
+
"thresholdsStyle": {
|
| 1359 |
+
"mode": "off"
|
| 1360 |
+
}
|
| 1361 |
+
},
|
| 1362 |
+
"mappings": [],
|
| 1363 |
+
"thresholds": {
|
| 1364 |
+
"mode": "absolute",
|
| 1365 |
+
"steps": [
|
| 1366 |
+
{
|
| 1367 |
+
"color": "green",
|
| 1368 |
+
"value": null
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"color": "red",
|
| 1372 |
+
"value": 80
|
| 1373 |
+
}
|
| 1374 |
+
]
|
| 1375 |
+
},
|
| 1376 |
+
"unit": "bytes"
|
| 1377 |
+
},
|
| 1378 |
+
"overrides": []
|
| 1379 |
+
},
|
| 1380 |
+
"gridPos": {
|
| 1381 |
+
"h": 7,
|
| 1382 |
+
"w": 12,
|
| 1383 |
+
"x": 0,
|
| 1384 |
+
"y": 18
|
| 1385 |
+
},
|
| 1386 |
+
"id": 59,
|
| 1387 |
+
"options": {
|
| 1388 |
+
"legend": {
|
| 1389 |
+
"calcs": [],
|
| 1390 |
+
"displayMode": "list",
|
| 1391 |
+
"placement": "bottom",
|
| 1392 |
+
"showLegend": true
|
| 1393 |
+
},
|
| 1394 |
+
"tooltip": {
|
| 1395 |
+
"hideZeros": false,
|
| 1396 |
+
"mode": "single",
|
| 1397 |
+
"sort": "none"
|
| 1398 |
+
}
|
| 1399 |
+
},
|
| 1400 |
+
"pluginVersion": "11.5.2",
|
| 1401 |
+
"targets": [
|
| 1402 |
+
{
|
| 1403 |
+
"datasource": {
|
| 1404 |
+
"type": "prometheus",
|
| 1405 |
+
"uid": "prometheus"
|
| 1406 |
+
},
|
| 1407 |
+
"editorMode": "code",
|
| 1408 |
+
"expr": "sum by (persistentvolumeclaim) (kubelet_volume_stats_used_bytes{persistentvolumeclaim=~\".*weaviate.*\"})",
|
| 1409 |
+
"legendFormat": "__auto",
|
| 1410 |
+
"range": true,
|
| 1411 |
+
"refId": "A"
|
| 1412 |
+
},
|
| 1413 |
+
{
|
| 1414 |
+
"datasource": {
|
| 1415 |
+
"type": "prometheus",
|
| 1416 |
+
"uid": "prometheus"
|
| 1417 |
+
},
|
| 1418 |
+
"editorMode": "code",
|
| 1419 |
+
"expr": "sum by (persistentvolumeclaim) (kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~\".*weaviate.*\"})",
|
| 1420 |
+
"hide": false,
|
| 1421 |
+
"instant": false,
|
| 1422 |
+
"legendFormat": "Max disks - {{persistentvolumeclaim}}",
|
| 1423 |
+
"range": true,
|
| 1424 |
+
"refId": "B"
|
| 1425 |
+
}
|
| 1426 |
+
],
|
| 1427 |
+
"title": "Disk usage",
|
| 1428 |
+
"type": "timeseries"
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"datasource": {
|
| 1432 |
+
"type": "prometheus",
|
| 1433 |
+
"uid": "prometheus"
|
| 1434 |
+
},
|
| 1435 |
+
"fieldConfig": {
|
| 1436 |
+
"defaults": {
|
| 1437 |
+
"color": {
|
| 1438 |
+
"mode": "palette-classic"
|
| 1439 |
+
},
|
| 1440 |
+
"custom": {
|
| 1441 |
+
"axisBorderShow": false,
|
| 1442 |
+
"axisCenteredZero": false,
|
| 1443 |
+
"axisColorMode": "text",
|
| 1444 |
+
"axisLabel": "",
|
| 1445 |
+
"axisPlacement": "auto",
|
| 1446 |
+
"barAlignment": 0,
|
| 1447 |
+
"barWidthFactor": 0.6,
|
| 1448 |
+
"drawStyle": "line",
|
| 1449 |
+
"fillOpacity": 0,
|
| 1450 |
+
"gradientMode": "none",
|
| 1451 |
+
"hideFrom": {
|
| 1452 |
+
"legend": false,
|
| 1453 |
+
"tooltip": false,
|
| 1454 |
+
"viz": false
|
| 1455 |
+
},
|
| 1456 |
+
"insertNulls": false,
|
| 1457 |
+
"lineInterpolation": "linear",
|
| 1458 |
+
"lineWidth": 1,
|
| 1459 |
+
"pointSize": 5,
|
| 1460 |
+
"scaleDistribution": {
|
| 1461 |
+
"type": "linear"
|
| 1462 |
+
},
|
| 1463 |
+
"showPoints": "auto",
|
| 1464 |
+
"spanNulls": false,
|
| 1465 |
+
"stacking": {
|
| 1466 |
+
"group": "A",
|
| 1467 |
+
"mode": "none"
|
| 1468 |
+
},
|
| 1469 |
+
"thresholdsStyle": {
|
| 1470 |
+
"mode": "off"
|
| 1471 |
+
}
|
| 1472 |
+
},
|
| 1473 |
+
"mappings": [],
|
| 1474 |
+
"thresholds": {
|
| 1475 |
+
"mode": "absolute",
|
| 1476 |
+
"steps": [
|
| 1477 |
+
{
|
| 1478 |
+
"color": "green",
|
| 1479 |
+
"value": null
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"color": "red",
|
| 1483 |
+
"value": 80
|
| 1484 |
+
}
|
| 1485 |
+
]
|
| 1486 |
+
},
|
| 1487 |
+
"unit": "bytes"
|
| 1488 |
+
},
|
| 1489 |
+
"overrides": []
|
| 1490 |
+
},
|
| 1491 |
+
"gridPos": {
|
| 1492 |
+
"h": 7,
|
| 1493 |
+
"w": 12,
|
| 1494 |
+
"x": 12,
|
| 1495 |
+
"y": 18
|
| 1496 |
+
},
|
| 1497 |
+
"id": 7,
|
| 1498 |
+
"options": {
|
| 1499 |
+
"legend": {
|
| 1500 |
+
"calcs": [],
|
| 1501 |
+
"displayMode": "list",
|
| 1502 |
+
"placement": "bottom",
|
| 1503 |
+
"showLegend": true
|
| 1504 |
+
},
|
| 1505 |
+
"tooltip": {
|
| 1506 |
+
"hideZeros": false,
|
| 1507 |
+
"mode": "single",
|
| 1508 |
+
"sort": "none"
|
| 1509 |
+
}
|
| 1510 |
+
},
|
| 1511 |
+
"pluginVersion": "11.5.2",
|
| 1512 |
+
"targets": [
|
| 1513 |
+
{
|
| 1514 |
+
"datasource": {
|
| 1515 |
+
"type": "prometheus",
|
| 1516 |
+
"uid": "prometheus"
|
| 1517 |
+
},
|
| 1518 |
+
"editorMode": "code",
|
| 1519 |
+
"expr": "sum(rate(container_fs_writes_bytes_total{container=\"weaviate\"}[$__rate_interval])) by (pod, instance, device)",
|
| 1520 |
+
"legendFormat": "Write {{pod}}/{{instance}}/{{device}}",
|
| 1521 |
+
"range": true,
|
| 1522 |
+
"refId": "Writes"
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"datasource": {
|
| 1526 |
+
"type": "prometheus",
|
| 1527 |
+
"uid": "prometheus"
|
| 1528 |
+
},
|
| 1529 |
+
"editorMode": "code",
|
| 1530 |
+
"expr": "sum(rate(container_fs_reads_bytes_total{container=\"weaviate\"}[$__rate_interval])) by (pod, instance, device)",
|
| 1531 |
+
"hide": false,
|
| 1532 |
+
"legendFormat": "Read {{pod}}/{{instance}}/{{device}}",
|
| 1533 |
+
"range": true,
|
| 1534 |
+
"refId": "Reads"
|
| 1535 |
+
}
|
| 1536 |
+
],
|
| 1537 |
+
"title": "Disk I/O",
|
| 1538 |
+
"type": "timeseries"
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"datasource": {
|
| 1542 |
+
"type": "prometheus",
|
| 1543 |
+
"uid": "prometheus"
|
| 1544 |
+
},
|
| 1545 |
+
"fieldConfig": {
|
| 1546 |
+
"defaults": {
|
| 1547 |
+
"color": {
|
| 1548 |
+
"mode": "palette-classic"
|
| 1549 |
+
},
|
| 1550 |
+
"custom": {
|
| 1551 |
+
"axisBorderShow": false,
|
| 1552 |
+
"axisCenteredZero": false,
|
| 1553 |
+
"axisColorMode": "text",
|
| 1554 |
+
"axisLabel": "",
|
| 1555 |
+
"axisPlacement": "auto",
|
| 1556 |
+
"axisSoftMin": 0,
|
| 1557 |
+
"barAlignment": 0,
|
| 1558 |
+
"barWidthFactor": 0.6,
|
| 1559 |
+
"drawStyle": "line",
|
| 1560 |
+
"fillOpacity": 0,
|
| 1561 |
+
"gradientMode": "none",
|
| 1562 |
+
"hideFrom": {
|
| 1563 |
+
"legend": false,
|
| 1564 |
+
"tooltip": false,
|
| 1565 |
+
"viz": false
|
| 1566 |
+
},
|
| 1567 |
+
"insertNulls": false,
|
| 1568 |
+
"lineInterpolation": "linear",
|
| 1569 |
+
"lineWidth": 1,
|
| 1570 |
+
"pointSize": 5,
|
| 1571 |
+
"scaleDistribution": {
|
| 1572 |
+
"type": "linear"
|
| 1573 |
+
},
|
| 1574 |
+
"showPoints": "auto",
|
| 1575 |
+
"spanNulls": false,
|
| 1576 |
+
"stacking": {
|
| 1577 |
+
"group": "A",
|
| 1578 |
+
"mode": "none"
|
| 1579 |
+
},
|
| 1580 |
+
"thresholdsStyle": {
|
| 1581 |
+
"mode": "off"
|
| 1582 |
+
}
|
| 1583 |
+
},
|
| 1584 |
+
"mappings": [],
|
| 1585 |
+
"thresholds": {
|
| 1586 |
+
"mode": "absolute",
|
| 1587 |
+
"steps": [
|
| 1588 |
+
{
|
| 1589 |
+
"color": "green",
|
| 1590 |
+
"value": null
|
| 1591 |
+
},
|
| 1592 |
+
{
|
| 1593 |
+
"color": "red",
|
| 1594 |
+
"value": 80
|
| 1595 |
+
}
|
| 1596 |
+
]
|
| 1597 |
+
},
|
| 1598 |
+
"unit": "bytes"
|
| 1599 |
+
},
|
| 1600 |
+
"overrides": []
|
| 1601 |
+
},
|
| 1602 |
+
"gridPos": {
|
| 1603 |
+
"h": 7,
|
| 1604 |
+
"w": 12,
|
| 1605 |
+
"x": 0,
|
| 1606 |
+
"y": 25
|
| 1607 |
+
},
|
| 1608 |
+
"id": 46,
|
| 1609 |
+
"options": {
|
| 1610 |
+
"legend": {
|
| 1611 |
+
"calcs": [],
|
| 1612 |
+
"displayMode": "list",
|
| 1613 |
+
"placement": "bottom",
|
| 1614 |
+
"showLegend": true
|
| 1615 |
+
},
|
| 1616 |
+
"tooltip": {
|
| 1617 |
+
"hideZeros": false,
|
| 1618 |
+
"mode": "single",
|
| 1619 |
+
"sort": "none"
|
| 1620 |
+
}
|
| 1621 |
+
},
|
| 1622 |
+
"pluginVersion": "11.5.2",
|
| 1623 |
+
"targets": [
|
| 1624 |
+
{
|
| 1625 |
+
"datasource": {
|
| 1626 |
+
"type": "prometheus",
|
| 1627 |
+
"uid": "prometheus"
|
| 1628 |
+
},
|
| 1629 |
+
"editorMode": "code",
|
| 1630 |
+
"expr": "max by(container, namespace, pod) (container_memory_usage_bytes{container=\"weaviate\"})",
|
| 1631 |
+
"hide": false,
|
| 1632 |
+
"instant": false,
|
| 1633 |
+
"key": "Q-41a9d702-80fa-4e3d-be11-03a37aea06dc-0",
|
| 1634 |
+
"legendFormat": "{{label_name}}",
|
| 1635 |
+
"range": true,
|
| 1636 |
+
"refId": "Memory"
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"datasource": {
|
| 1640 |
+
"type": "prometheus",
|
| 1641 |
+
"uid": "prometheus"
|
| 1642 |
+
},
|
| 1643 |
+
"editorMode": "code",
|
| 1644 |
+
"expr": "max by (container, namespace, pod, resource) (kube_pod_container_resource_limits{resource=\"memory\", container=\"weaviate\"})",
|
| 1645 |
+
"hide": false,
|
| 1646 |
+
"instant": false,
|
| 1647 |
+
"key": "Q-95ca05d7-7a8c-46ce-ac92-6b0d89cbbb8c-1",
|
| 1648 |
+
"legendFormat": "{{pod}} limit",
|
| 1649 |
+
"range": true,
|
| 1650 |
+
"refId": "Limit"
|
| 1651 |
+
},
|
| 1652 |
+
{
|
| 1653 |
+
"datasource": {
|
| 1654 |
+
"type": "prometheus",
|
| 1655 |
+
"uid": "prometheus"
|
| 1656 |
+
},
|
| 1657 |
+
"editorMode": "code",
|
| 1658 |
+
"exemplar": false,
|
| 1659 |
+
"expr": "go_gc_gomemlimit_bytes",
|
| 1660 |
+
"format": "time_series",
|
| 1661 |
+
"instant": false,
|
| 1662 |
+
"key": "Q-df6b10fd-eae6-440d-9fb6-a484ecd68571-2",
|
| 1663 |
+
"legendFormat": "GoMemLimit {{instance}}",
|
| 1664 |
+
"range": true,
|
| 1665 |
+
"refId": "Restarts"
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"datasource": {
|
| 1669 |
+
"type": "prometheus",
|
| 1670 |
+
"uid": "prometheus"
|
| 1671 |
+
},
|
| 1672 |
+
"editorMode": "code",
|
| 1673 |
+
"expr": "go_memstats_heap_inuse_bytes{}",
|
| 1674 |
+
"hide": false,
|
| 1675 |
+
"instant": false,
|
| 1676 |
+
"key": "Q-41a9d702-80fa-4e3d-be11-03a37aea06dc-0",
|
| 1677 |
+
"legendFormat": "{{instance}}",
|
| 1678 |
+
"range": true,
|
| 1679 |
+
"refId": "Heap"
|
| 1680 |
+
}
|
| 1681 |
+
],
|
| 1682 |
+
"title": "Weaviate memory usage",
|
| 1683 |
+
"type": "timeseries"
|
| 1684 |
+
},
|
| 1685 |
+
{
|
| 1686 |
+
"datasource": {
|
| 1687 |
+
"type": "prometheus",
|
| 1688 |
+
"uid": "prometheus"
|
| 1689 |
+
},
|
| 1690 |
+
"fieldConfig": {
|
| 1691 |
+
"defaults": {
|
| 1692 |
+
"color": {
|
| 1693 |
+
"mode": "palette-classic"
|
| 1694 |
+
},
|
| 1695 |
+
"custom": {
|
| 1696 |
+
"axisBorderShow": false,
|
| 1697 |
+
"axisCenteredZero": false,
|
| 1698 |
+
"axisColorMode": "text",
|
| 1699 |
+
"axisLabel": "",
|
| 1700 |
+
"axisPlacement": "auto",
|
| 1701 |
+
"barAlignment": 0,
|
| 1702 |
+
"barWidthFactor": 0.6,
|
| 1703 |
+
"drawStyle": "line",
|
| 1704 |
+
"fillOpacity": 0,
|
| 1705 |
+
"gradientMode": "none",
|
| 1706 |
+
"hideFrom": {
|
| 1707 |
+
"legend": false,
|
| 1708 |
+
"tooltip": false,
|
| 1709 |
+
"viz": false
|
| 1710 |
+
},
|
| 1711 |
+
"insertNulls": false,
|
| 1712 |
+
"lineInterpolation": "linear",
|
| 1713 |
+
"lineWidth": 1,
|
| 1714 |
+
"pointSize": 5,
|
| 1715 |
+
"scaleDistribution": {
|
| 1716 |
+
"type": "linear"
|
| 1717 |
+
},
|
| 1718 |
+
"showPoints": "auto",
|
| 1719 |
+
"spanNulls": false,
|
| 1720 |
+
"stacking": {
|
| 1721 |
+
"group": "A",
|
| 1722 |
+
"mode": "none"
|
| 1723 |
+
},
|
| 1724 |
+
"thresholdsStyle": {
|
| 1725 |
+
"mode": "off"
|
| 1726 |
+
}
|
| 1727 |
+
},
|
| 1728 |
+
"mappings": [],
|
| 1729 |
+
"thresholds": {
|
| 1730 |
+
"mode": "absolute",
|
| 1731 |
+
"steps": [
|
| 1732 |
+
{
|
| 1733 |
+
"color": "green",
|
| 1734 |
+
"value": null
|
| 1735 |
+
},
|
| 1736 |
+
{
|
| 1737 |
+
"color": "red",
|
| 1738 |
+
"value": 80
|
| 1739 |
+
}
|
| 1740 |
+
]
|
| 1741 |
+
}
|
| 1742 |
+
},
|
| 1743 |
+
"overrides": []
|
| 1744 |
+
},
|
| 1745 |
+
"gridPos": {
|
| 1746 |
+
"h": 5,
|
| 1747 |
+
"w": 12,
|
| 1748 |
+
"x": 12,
|
| 1749 |
+
"y": 25
|
| 1750 |
+
},
|
| 1751 |
+
"id": 34,
|
| 1752 |
+
"options": {
|
| 1753 |
+
"legend": {
|
| 1754 |
+
"calcs": [],
|
| 1755 |
+
"displayMode": "list",
|
| 1756 |
+
"placement": "bottom",
|
| 1757 |
+
"showLegend": true
|
| 1758 |
+
},
|
| 1759 |
+
"tooltip": {
|
| 1760 |
+
"hideZeros": false,
|
| 1761 |
+
"mode": "single",
|
| 1762 |
+
"sort": "none"
|
| 1763 |
+
}
|
| 1764 |
+
},
|
| 1765 |
+
"pluginVersion": "11.5.2",
|
| 1766 |
+
"targets": [
|
| 1767 |
+
{
|
| 1768 |
+
"datasource": {
|
| 1769 |
+
"type": "prometheus",
|
| 1770 |
+
"uid": "prometheus"
|
| 1771 |
+
},
|
| 1772 |
+
"editorMode": "code",
|
| 1773 |
+
"expr": "sum(rate(queries_durations_ms_count{}[$__rate_interval]))",
|
| 1774 |
+
"legendFormat": "__auto",
|
| 1775 |
+
"range": true,
|
| 1776 |
+
"refId": "A"
|
| 1777 |
+
}
|
| 1778 |
+
],
|
| 1779 |
+
"title": "Entire Cluster Query Rate",
|
| 1780 |
+
"type": "timeseries"
|
| 1781 |
+
},
|
| 1782 |
+
{
|
| 1783 |
+
"datasource": {
|
| 1784 |
+
"type": "prometheus",
|
| 1785 |
+
"uid": "prometheus"
|
| 1786 |
+
},
|
| 1787 |
+
"fieldConfig": {
|
| 1788 |
+
"defaults": {
|
| 1789 |
+
"color": {
|
| 1790 |
+
"mode": "palette-classic"
|
| 1791 |
+
},
|
| 1792 |
+
"custom": {
|
| 1793 |
+
"axisBorderShow": false,
|
| 1794 |
+
"axisCenteredZero": false,
|
| 1795 |
+
"axisColorMode": "text",
|
| 1796 |
+
"axisLabel": "",
|
| 1797 |
+
"axisPlacement": "auto",
|
| 1798 |
+
"barAlignment": 0,
|
| 1799 |
+
"barWidthFactor": 0.6,
|
| 1800 |
+
"drawStyle": "line",
|
| 1801 |
+
"fillOpacity": 0,
|
| 1802 |
+
"gradientMode": "none",
|
| 1803 |
+
"hideFrom": {
|
| 1804 |
+
"legend": false,
|
| 1805 |
+
"tooltip": false,
|
| 1806 |
+
"viz": false
|
| 1807 |
+
},
|
| 1808 |
+
"insertNulls": false,
|
| 1809 |
+
"lineInterpolation": "linear",
|
| 1810 |
+
"lineWidth": 1,
|
| 1811 |
+
"pointSize": 5,
|
| 1812 |
+
"scaleDistribution": {
|
| 1813 |
+
"type": "linear"
|
| 1814 |
+
},
|
| 1815 |
+
"showPoints": "auto",
|
| 1816 |
+
"spanNulls": false,
|
| 1817 |
+
"stacking": {
|
| 1818 |
+
"group": "A",
|
| 1819 |
+
"mode": "none"
|
| 1820 |
+
},
|
| 1821 |
+
"thresholdsStyle": {
|
| 1822 |
+
"mode": "off"
|
| 1823 |
+
}
|
| 1824 |
+
},
|
| 1825 |
+
"mappings": [],
|
| 1826 |
+
"min": 0,
|
| 1827 |
+
"thresholds": {
|
| 1828 |
+
"mode": "absolute",
|
| 1829 |
+
"steps": [
|
| 1830 |
+
{
|
| 1831 |
+
"color": "green",
|
| 1832 |
+
"value": null
|
| 1833 |
+
}
|
| 1834 |
+
]
|
| 1835 |
+
},
|
| 1836 |
+
"unit": "bytes"
|
| 1837 |
+
},
|
| 1838 |
+
"overrides": []
|
| 1839 |
+
},
|
| 1840 |
+
"gridPos": {
|
| 1841 |
+
"h": 5,
|
| 1842 |
+
"w": 12,
|
| 1843 |
+
"x": 12,
|
| 1844 |
+
"y": 30
|
| 1845 |
+
},
|
| 1846 |
+
"id": 3,
|
| 1847 |
+
"options": {
|
| 1848 |
+
"legend": {
|
| 1849 |
+
"calcs": [],
|
| 1850 |
+
"displayMode": "list",
|
| 1851 |
+
"placement": "bottom",
|
| 1852 |
+
"showLegend": true
|
| 1853 |
+
},
|
| 1854 |
+
"tooltip": {
|
| 1855 |
+
"hideZeros": false,
|
| 1856 |
+
"mode": "single",
|
| 1857 |
+
"sort": "none"
|
| 1858 |
+
}
|
| 1859 |
+
},
|
| 1860 |
+
"pluginVersion": "11.5.2",
|
| 1861 |
+
"targets": [
|
| 1862 |
+
{
|
| 1863 |
+
"datasource": {
|
| 1864 |
+
"type": "prometheus",
|
| 1865 |
+
"uid": "prometheus"
|
| 1866 |
+
},
|
| 1867 |
+
"editorMode": "code",
|
| 1868 |
+
"expr": "kubelet_volume_stats_available_bytes{persistentvolumeclaim=~\"weaviate-.*\"}",
|
| 1869 |
+
"legendFormat": "Available {{instance}}-{{persistentvolumeclaim}}",
|
| 1870 |
+
"range": true,
|
| 1871 |
+
"refId": "Available bytes"
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"datasource": {
|
| 1875 |
+
"type": "prometheus",
|
| 1876 |
+
"uid": "prometheus"
|
| 1877 |
+
},
|
| 1878 |
+
"editorMode": "code",
|
| 1879 |
+
"expr": "kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~\"weaviate-.*\"}",
|
| 1880 |
+
"hide": false,
|
| 1881 |
+
"instant": false,
|
| 1882 |
+
"range": true,
|
| 1883 |
+
"refId": "A"
|
| 1884 |
+
}
|
| 1885 |
+
],
|
| 1886 |
+
"title": "Disk storage available",
|
| 1887 |
+
"type": "timeseries"
|
| 1888 |
+
},
|
| 1889 |
+
{
|
| 1890 |
+
"datasource": {
|
| 1891 |
+
"type": "prometheus",
|
| 1892 |
+
"uid": "prometheus"
|
| 1893 |
+
},
|
| 1894 |
+
"description": "Weaviate container memory usage in GB",
|
| 1895 |
+
"fieldConfig": {
|
| 1896 |
+
"defaults": {
|
| 1897 |
+
"color": {
|
| 1898 |
+
"mode": "thresholds"
|
| 1899 |
+
},
|
| 1900 |
+
"mappings": [],
|
| 1901 |
+
"thresholds": {
|
| 1902 |
+
"mode": "absolute",
|
| 1903 |
+
"steps": [
|
| 1904 |
+
{
|
| 1905 |
+
"color": "green",
|
| 1906 |
+
"value": null
|
| 1907 |
+
}
|
| 1908 |
+
]
|
| 1909 |
+
},
|
| 1910 |
+
"unit": "decgbytes"
|
| 1911 |
+
},
|
| 1912 |
+
"overrides": []
|
| 1913 |
+
},
|
| 1914 |
+
"gridPos": {
|
| 1915 |
+
"h": 7,
|
| 1916 |
+
"w": 12,
|
| 1917 |
+
"x": 0,
|
| 1918 |
+
"y": 32
|
| 1919 |
+
},
|
| 1920 |
+
"id": 33,
|
| 1921 |
+
"options": {
|
| 1922 |
+
"colorMode": "value",
|
| 1923 |
+
"graphMode": "area",
|
| 1924 |
+
"justifyMode": "auto",
|
| 1925 |
+
"orientation": "auto",
|
| 1926 |
+
"percentChangeColorMode": "standard",
|
| 1927 |
+
"reduceOptions": {
|
| 1928 |
+
"calcs": [
|
| 1929 |
+
"lastNotNull"
|
| 1930 |
+
],
|
| 1931 |
+
"fields": "",
|
| 1932 |
+
"values": false
|
| 1933 |
+
},
|
| 1934 |
+
"showPercentChange": false,
|
| 1935 |
+
"textMode": "auto",
|
| 1936 |
+
"wideLayout": true
|
| 1937 |
+
},
|
| 1938 |
+
"pluginVersion": "11.5.2",
|
| 1939 |
+
"targets": [
|
| 1940 |
+
{
|
| 1941 |
+
"datasource": {
|
| 1942 |
+
"type": "prometheus",
|
| 1943 |
+
"uid": "prometheus"
|
| 1944 |
+
},
|
| 1945 |
+
"editorMode": "code",
|
| 1946 |
+
"expr": "(sum by (pod)(container_memory_working_set_bytes{container=\"weaviate\"})) / 1e+9",
|
| 1947 |
+
"legendFormat": "__auto",
|
| 1948 |
+
"range": true,
|
| 1949 |
+
"refId": "A"
|
| 1950 |
+
}
|
| 1951 |
+
],
|
| 1952 |
+
"title": "Weaviate Container Memory Usage",
|
| 1953 |
+
"type": "stat"
|
| 1954 |
+
},
|
| 1955 |
+
{
|
| 1956 |
+
"datasource": {
|
| 1957 |
+
"type": "prometheus",
|
| 1958 |
+
"uid": "prometheus"
|
| 1959 |
+
},
|
| 1960 |
+
"fieldConfig": {
|
| 1961 |
+
"defaults": {
|
| 1962 |
+
"color": {
|
| 1963 |
+
"mode": "palette-classic"
|
| 1964 |
+
},
|
| 1965 |
+
"custom": {
|
| 1966 |
+
"axisBorderShow": false,
|
| 1967 |
+
"axisCenteredZero": false,
|
| 1968 |
+
"axisColorMode": "text",
|
| 1969 |
+
"axisLabel": "",
|
| 1970 |
+
"axisPlacement": "auto",
|
| 1971 |
+
"barAlignment": 0,
|
| 1972 |
+
"barWidthFactor": 0.6,
|
| 1973 |
+
"drawStyle": "line",
|
| 1974 |
+
"fillOpacity": 0,
|
| 1975 |
+
"gradientMode": "none",
|
| 1976 |
+
"hideFrom": {
|
| 1977 |
+
"legend": false,
|
| 1978 |
+
"tooltip": false,
|
| 1979 |
+
"viz": false
|
| 1980 |
+
},
|
| 1981 |
+
"insertNulls": false,
|
| 1982 |
+
"lineInterpolation": "smooth",
|
| 1983 |
+
"lineWidth": 1,
|
| 1984 |
+
"pointSize": 5,
|
| 1985 |
+
"scaleDistribution": {
|
| 1986 |
+
"type": "linear"
|
| 1987 |
+
},
|
| 1988 |
+
"showPoints": "auto",
|
| 1989 |
+
"spanNulls": false,
|
| 1990 |
+
"stacking": {
|
| 1991 |
+
"group": "A",
|
| 1992 |
+
"mode": "none"
|
| 1993 |
+
},
|
| 1994 |
+
"thresholdsStyle": {
|
| 1995 |
+
"mode": "off"
|
| 1996 |
+
}
|
| 1997 |
+
},
|
| 1998 |
+
"mappings": [],
|
| 1999 |
+
"thresholds": {
|
| 2000 |
+
"mode": "absolute",
|
| 2001 |
+
"steps": [
|
| 2002 |
+
{
|
| 2003 |
+
"color": "green",
|
| 2004 |
+
"value": null
|
| 2005 |
+
},
|
| 2006 |
+
{
|
| 2007 |
+
"color": "red",
|
| 2008 |
+
"value": 80
|
| 2009 |
+
}
|
| 2010 |
+
]
|
| 2011 |
+
},
|
| 2012 |
+
"unit": "none"
|
| 2013 |
+
},
|
| 2014 |
+
"overrides": []
|
| 2015 |
+
},
|
| 2016 |
+
"gridPos": {
|
| 2017 |
+
"h": 7,
|
| 2018 |
+
"w": 12,
|
| 2019 |
+
"x": 12,
|
| 2020 |
+
"y": 35
|
| 2021 |
+
},
|
| 2022 |
+
"id": 44,
|
| 2023 |
+
"options": {
|
| 2024 |
+
"legend": {
|
| 2025 |
+
"calcs": [],
|
| 2026 |
+
"displayMode": "list",
|
| 2027 |
+
"placement": "bottom",
|
| 2028 |
+
"showLegend": true
|
| 2029 |
+
},
|
| 2030 |
+
"tooltip": {
|
| 2031 |
+
"hideZeros": false,
|
| 2032 |
+
"mode": "single",
|
| 2033 |
+
"sort": "none"
|
| 2034 |
+
}
|
| 2035 |
+
},
|
| 2036 |
+
"pluginVersion": "11.5.2",
|
| 2037 |
+
"targets": [
|
| 2038 |
+
{
|
| 2039 |
+
"datasource": {
|
| 2040 |
+
"type": "prometheus",
|
| 2041 |
+
"uid": "prometheus"
|
| 2042 |
+
},
|
| 2043 |
+
"editorMode": "code",
|
| 2044 |
+
"expr": "sum by(sum, status) (rate(requests_total{}[$__rate_interval]))",
|
| 2045 |
+
"legendFormat": "{{status}} ",
|
| 2046 |
+
"range": true,
|
| 2047 |
+
"refId": "A"
|
| 2048 |
+
}
|
| 2049 |
+
],
|
| 2050 |
+
"title": "Total requests (per minute) per status",
|
| 2051 |
+
"type": "timeseries"
|
| 2052 |
+
},
|
| 2053 |
+
{
|
| 2054 |
+
"datasource": {
|
| 2055 |
+
"type": "prometheus",
|
| 2056 |
+
"uid": "prometheus"
|
| 2057 |
+
},
|
| 2058 |
+
"fieldConfig": {
|
| 2059 |
+
"defaults": {
|
| 2060 |
+
"color": {
|
| 2061 |
+
"mode": "palette-classic"
|
| 2062 |
+
},
|
| 2063 |
+
"custom": {
|
| 2064 |
+
"axisBorderShow": false,
|
| 2065 |
+
"axisCenteredZero": false,
|
| 2066 |
+
"axisColorMode": "text",
|
| 2067 |
+
"axisLabel": "",
|
| 2068 |
+
"axisPlacement": "auto",
|
| 2069 |
+
"barAlignment": 0,
|
| 2070 |
+
"barWidthFactor": 0.6,
|
| 2071 |
+
"drawStyle": "line",
|
| 2072 |
+
"fillOpacity": 0,
|
| 2073 |
+
"gradientMode": "none",
|
| 2074 |
+
"hideFrom": {
|
| 2075 |
+
"legend": false,
|
| 2076 |
+
"tooltip": false,
|
| 2077 |
+
"viz": false
|
| 2078 |
+
},
|
| 2079 |
+
"insertNulls": false,
|
| 2080 |
+
"lineInterpolation": "linear",
|
| 2081 |
+
"lineWidth": 1,
|
| 2082 |
+
"pointSize": 5,
|
| 2083 |
+
"scaleDistribution": {
|
| 2084 |
+
"type": "linear"
|
| 2085 |
+
},
|
| 2086 |
+
"showPoints": "auto",
|
| 2087 |
+
"spanNulls": false,
|
| 2088 |
+
"stacking": {
|
| 2089 |
+
"group": "A",
|
| 2090 |
+
"mode": "none"
|
| 2091 |
+
},
|
| 2092 |
+
"thresholdsStyle": {
|
| 2093 |
+
"mode": "off"
|
| 2094 |
+
}
|
| 2095 |
+
},
|
| 2096 |
+
"mappings": [],
|
| 2097 |
+
"min": 0,
|
| 2098 |
+
"thresholds": {
|
| 2099 |
+
"mode": "absolute",
|
| 2100 |
+
"steps": [
|
| 2101 |
+
{
|
| 2102 |
+
"color": "green",
|
| 2103 |
+
"value": null
|
| 2104 |
+
},
|
| 2105 |
+
{
|
| 2106 |
+
"color": "red",
|
| 2107 |
+
"value": 80
|
| 2108 |
+
}
|
| 2109 |
+
]
|
| 2110 |
+
},
|
| 2111 |
+
"unit": "short"
|
| 2112 |
+
},
|
| 2113 |
+
"overrides": []
|
| 2114 |
+
},
|
| 2115 |
+
"gridPos": {
|
| 2116 |
+
"h": 7,
|
| 2117 |
+
"w": 12,
|
| 2118 |
+
"x": 0,
|
| 2119 |
+
"y": 39
|
| 2120 |
+
},
|
| 2121 |
+
"id": 11,
|
| 2122 |
+
"options": {
|
| 2123 |
+
"legend": {
|
| 2124 |
+
"calcs": [],
|
| 2125 |
+
"displayMode": "list",
|
| 2126 |
+
"placement": "bottom",
|
| 2127 |
+
"showLegend": true
|
| 2128 |
+
},
|
| 2129 |
+
"tooltip": {
|
| 2130 |
+
"hideZeros": false,
|
| 2131 |
+
"mode": "single",
|
| 2132 |
+
"sort": "none"
|
| 2133 |
+
}
|
| 2134 |
+
},
|
| 2135 |
+
"pluginVersion": "11.5.2",
|
| 2136 |
+
"targets": [
|
| 2137 |
+
{
|
| 2138 |
+
"datasource": {
|
| 2139 |
+
"type": "prometheus",
|
| 2140 |
+
"uid": "prometheus"
|
| 2141 |
+
},
|
| 2142 |
+
"editorMode": "code",
|
| 2143 |
+
"expr": "sum(object_count{}) by (class_name)",
|
| 2144 |
+
"legendFormat": "__auto",
|
| 2145 |
+
"range": true,
|
| 2146 |
+
"refId": "A"
|
| 2147 |
+
}
|
| 2148 |
+
],
|
| 2149 |
+
"title": "Object count",
|
| 2150 |
+
"type": "timeseries"
|
| 2151 |
+
},
|
| 2152 |
+
{
|
| 2153 |
+
"datasource": {
|
| 2154 |
+
"type": "prometheus",
|
| 2155 |
+
"uid": "prometheus"
|
| 2156 |
+
},
|
| 2157 |
+
"fieldConfig": {
|
| 2158 |
+
"defaults": {
|
| 2159 |
+
"color": {
|
| 2160 |
+
"mode": "palette-classic"
|
| 2161 |
+
},
|
| 2162 |
+
"custom": {
|
| 2163 |
+
"axisBorderShow": false,
|
| 2164 |
+
"axisCenteredZero": false,
|
| 2165 |
+
"axisColorMode": "text",
|
| 2166 |
+
"axisLabel": "",
|
| 2167 |
+
"axisPlacement": "auto",
|
| 2168 |
+
"barAlignment": 0,
|
| 2169 |
+
"barWidthFactor": 0.6,
|
| 2170 |
+
"drawStyle": "line",
|
| 2171 |
+
"fillOpacity": 0,
|
| 2172 |
+
"gradientMode": "none",
|
| 2173 |
+
"hideFrom": {
|
| 2174 |
+
"legend": false,
|
| 2175 |
+
"tooltip": false,
|
| 2176 |
+
"viz": false
|
| 2177 |
+
},
|
| 2178 |
+
"insertNulls": false,
|
| 2179 |
+
"lineInterpolation": "linear",
|
| 2180 |
+
"lineWidth": 1,
|
| 2181 |
+
"pointSize": 5,
|
| 2182 |
+
"scaleDistribution": {
|
| 2183 |
+
"type": "linear"
|
| 2184 |
+
},
|
| 2185 |
+
"showPoints": "auto",
|
| 2186 |
+
"spanNulls": false,
|
| 2187 |
+
"stacking": {
|
| 2188 |
+
"group": "A",
|
| 2189 |
+
"mode": "none"
|
| 2190 |
+
},
|
| 2191 |
+
"thresholdsStyle": {
|
| 2192 |
+
"mode": "off"
|
| 2193 |
+
}
|
| 2194 |
+
},
|
| 2195 |
+
"mappings": [],
|
| 2196 |
+
"thresholds": {
|
| 2197 |
+
"mode": "absolute",
|
| 2198 |
+
"steps": [
|
| 2199 |
+
{
|
| 2200 |
+
"color": "green",
|
| 2201 |
+
"value": null
|
| 2202 |
+
},
|
| 2203 |
+
{
|
| 2204 |
+
"color": "red",
|
| 2205 |
+
"value": 80
|
| 2206 |
+
}
|
| 2207 |
+
]
|
| 2208 |
+
}
|
| 2209 |
+
},
|
| 2210 |
+
"overrides": []
|
| 2211 |
+
},
|
| 2212 |
+
"gridPos": {
|
| 2213 |
+
"h": 6,
|
| 2214 |
+
"w": 12,
|
| 2215 |
+
"x": 12,
|
| 2216 |
+
"y": 42
|
| 2217 |
+
},
|
| 2218 |
+
"id": 36,
|
| 2219 |
+
"options": {
|
| 2220 |
+
"legend": {
|
| 2221 |
+
"calcs": [],
|
| 2222 |
+
"displayMode": "list",
|
| 2223 |
+
"placement": "bottom",
|
| 2224 |
+
"showLegend": true
|
| 2225 |
+
},
|
| 2226 |
+
"tooltip": {
|
| 2227 |
+
"hideZeros": false,
|
| 2228 |
+
"mode": "single",
|
| 2229 |
+
"sort": "none"
|
| 2230 |
+
}
|
| 2231 |
+
},
|
| 2232 |
+
"pluginVersion": "11.5.2",
|
| 2233 |
+
"targets": [
|
| 2234 |
+
{
|
| 2235 |
+
"datasource": {
|
| 2236 |
+
"type": "prometheus",
|
| 2237 |
+
"uid": "prometheus"
|
| 2238 |
+
},
|
| 2239 |
+
"editorMode": "code",
|
| 2240 |
+
"expr": "concurrent_queries_count{}",
|
| 2241 |
+
"hide": false,
|
| 2242 |
+
"legendFormat": "{{pod}} - {{query_type}}",
|
| 2243 |
+
"range": true,
|
| 2244 |
+
"refId": "B"
|
| 2245 |
+
}
|
| 2246 |
+
],
|
| 2247 |
+
"title": "concurrent_queries_count",
|
| 2248 |
+
"type": "timeseries"
|
| 2249 |
+
},
|
| 2250 |
+
{
|
| 2251 |
+
"datasource": {
|
| 2252 |
+
"type": "prometheus",
|
| 2253 |
+
"uid": "prometheus"
|
| 2254 |
+
},
|
| 2255 |
+
"fieldConfig": {
|
| 2256 |
+
"defaults": {
|
| 2257 |
+
"color": {
|
| 2258 |
+
"mode": "palette-classic"
|
| 2259 |
+
},
|
| 2260 |
+
"custom": {
|
| 2261 |
+
"axisBorderShow": false,
|
| 2262 |
+
"axisCenteredZero": false,
|
| 2263 |
+
"axisColorMode": "text",
|
| 2264 |
+
"axisLabel": "",
|
| 2265 |
+
"axisPlacement": "auto",
|
| 2266 |
+
"barAlignment": 0,
|
| 2267 |
+
"barWidthFactor": 0.6,
|
| 2268 |
+
"drawStyle": "line",
|
| 2269 |
+
"fillOpacity": 0,
|
| 2270 |
+
"gradientMode": "none",
|
| 2271 |
+
"hideFrom": {
|
| 2272 |
+
"legend": false,
|
| 2273 |
+
"tooltip": false,
|
| 2274 |
+
"viz": false
|
| 2275 |
+
},
|
| 2276 |
+
"insertNulls": false,
|
| 2277 |
+
"lineInterpolation": "linear",
|
| 2278 |
+
"lineWidth": 1,
|
| 2279 |
+
"pointSize": 5,
|
| 2280 |
+
"scaleDistribution": {
|
| 2281 |
+
"type": "linear"
|
| 2282 |
+
},
|
| 2283 |
+
"showPoints": "auto",
|
| 2284 |
+
"spanNulls": false,
|
| 2285 |
+
"stacking": {
|
| 2286 |
+
"group": "A",
|
| 2287 |
+
"mode": "none"
|
| 2288 |
+
},
|
| 2289 |
+
"thresholdsStyle": {
|
| 2290 |
+
"mode": "off"
|
| 2291 |
+
}
|
| 2292 |
+
},
|
| 2293 |
+
"mappings": [],
|
| 2294 |
+
"min": 0,
|
| 2295 |
+
"thresholds": {
|
| 2296 |
+
"mode": "absolute",
|
| 2297 |
+
"steps": [
|
| 2298 |
+
{
|
| 2299 |
+
"color": "green",
|
| 2300 |
+
"value": null
|
| 2301 |
+
},
|
| 2302 |
+
{
|
| 2303 |
+
"color": "red",
|
| 2304 |
+
"value": 80
|
| 2305 |
+
}
|
| 2306 |
+
]
|
| 2307 |
+
},
|
| 2308 |
+
"unit": "short"
|
| 2309 |
+
},
|
| 2310 |
+
"overrides": []
|
| 2311 |
+
},
|
| 2312 |
+
"gridPos": {
|
| 2313 |
+
"h": 7,
|
| 2314 |
+
"w": 12,
|
| 2315 |
+
"x": 0,
|
| 2316 |
+
"y": 46
|
| 2317 |
+
},
|
| 2318 |
+
"id": 35,
|
| 2319 |
+
"options": {
|
| 2320 |
+
"legend": {
|
| 2321 |
+
"calcs": [],
|
| 2322 |
+
"displayMode": "list",
|
| 2323 |
+
"placement": "bottom",
|
| 2324 |
+
"showLegend": true
|
| 2325 |
+
},
|
| 2326 |
+
"tooltip": {
|
| 2327 |
+
"hideZeros": false,
|
| 2328 |
+
"mode": "single",
|
| 2329 |
+
"sort": "none"
|
| 2330 |
+
}
|
| 2331 |
+
},
|
| 2332 |
+
"pluginVersion": "11.5.2",
|
| 2333 |
+
"targets": [
|
| 2334 |
+
{
|
| 2335 |
+
"datasource": {
|
| 2336 |
+
"type": "prometheus",
|
| 2337 |
+
"uid": "prometheus"
|
| 2338 |
+
},
|
| 2339 |
+
"editorMode": "code",
|
| 2340 |
+
"expr": "rate(object_count{}[$__rate_interval])",
|
| 2341 |
+
"legendFormat": "{{class_name}}/{{instance}}",
|
| 2342 |
+
"range": true,
|
| 2343 |
+
"refId": "A"
|
| 2344 |
+
}
|
| 2345 |
+
],
|
| 2346 |
+
"title": "Object count rate",
|
| 2347 |
+
"type": "timeseries"
|
| 2348 |
+
},
|
| 2349 |
+
{
|
| 2350 |
+
"datasource": {
|
| 2351 |
+
"type": "prometheus",
|
| 2352 |
+
"uid": "prometheus"
|
| 2353 |
+
},
|
| 2354 |
+
"fieldConfig": {
|
| 2355 |
+
"defaults": {
|
| 2356 |
+
"color": {
|
| 2357 |
+
"mode": "palette-classic"
|
| 2358 |
+
},
|
| 2359 |
+
"custom": {
|
| 2360 |
+
"axisBorderShow": false,
|
| 2361 |
+
"axisCenteredZero": false,
|
| 2362 |
+
"axisColorMode": "text",
|
| 2363 |
+
"axisLabel": "",
|
| 2364 |
+
"axisPlacement": "auto",
|
| 2365 |
+
"barAlignment": 0,
|
| 2366 |
+
"barWidthFactor": 0.6,
|
| 2367 |
+
"drawStyle": "line",
|
| 2368 |
+
"fillOpacity": 0,
|
| 2369 |
+
"gradientMode": "none",
|
| 2370 |
+
"hideFrom": {
|
| 2371 |
+
"legend": false,
|
| 2372 |
+
"tooltip": false,
|
| 2373 |
+
"viz": false
|
| 2374 |
+
},
|
| 2375 |
+
"insertNulls": false,
|
| 2376 |
+
"lineInterpolation": "linear",
|
| 2377 |
+
"lineWidth": 1,
|
| 2378 |
+
"pointSize": 5,
|
| 2379 |
+
"scaleDistribution": {
|
| 2380 |
+
"type": "linear"
|
| 2381 |
+
},
|
| 2382 |
+
"showPoints": "auto",
|
| 2383 |
+
"spanNulls": false,
|
| 2384 |
+
"stacking": {
|
| 2385 |
+
"group": "A",
|
| 2386 |
+
"mode": "none"
|
| 2387 |
+
},
|
| 2388 |
+
"thresholdsStyle": {
|
| 2389 |
+
"mode": "off"
|
| 2390 |
+
}
|
| 2391 |
+
},
|
| 2392 |
+
"mappings": [],
|
| 2393 |
+
"thresholds": {
|
| 2394 |
+
"mode": "absolute",
|
| 2395 |
+
"steps": [
|
| 2396 |
+
{
|
| 2397 |
+
"color": "green",
|
| 2398 |
+
"value": null
|
| 2399 |
+
},
|
| 2400 |
+
{
|
| 2401 |
+
"color": "red",
|
| 2402 |
+
"value": 80
|
| 2403 |
+
}
|
| 2404 |
+
]
|
| 2405 |
+
}
|
| 2406 |
+
},
|
| 2407 |
+
"overrides": []
|
| 2408 |
+
},
|
| 2409 |
+
"gridPos": {
|
| 2410 |
+
"h": 6,
|
| 2411 |
+
"w": 12,
|
| 2412 |
+
"x": 12,
|
| 2413 |
+
"y": 48
|
| 2414 |
+
},
|
| 2415 |
+
"id": 37,
|
| 2416 |
+
"options": {
|
| 2417 |
+
"legend": {
|
| 2418 |
+
"calcs": [],
|
| 2419 |
+
"displayMode": "list",
|
| 2420 |
+
"placement": "bottom",
|
| 2421 |
+
"showLegend": true
|
| 2422 |
+
},
|
| 2423 |
+
"tooltip": {
|
| 2424 |
+
"hideZeros": false,
|
| 2425 |
+
"mode": "single",
|
| 2426 |
+
"sort": "none"
|
| 2427 |
+
}
|
| 2428 |
+
},
|
| 2429 |
+
"pluginVersion": "11.5.2",
|
| 2430 |
+
"targets": [
|
| 2431 |
+
{
|
| 2432 |
+
"datasource": {
|
| 2433 |
+
"type": "prometheus",
|
| 2434 |
+
"uid": "prometheus"
|
| 2435 |
+
},
|
| 2436 |
+
"editorMode": "code",
|
| 2437 |
+
"expr": "rate(vector_index_tombstone_cleaned{}[$__rate_interval])",
|
| 2438 |
+
"hide": false,
|
| 2439 |
+
"legendFormat": "{{pod}}",
|
| 2440 |
+
"range": true,
|
| 2441 |
+
"refId": "B"
|
| 2442 |
+
}
|
| 2443 |
+
],
|
| 2444 |
+
"title": "vector_index_tombstone_cleaned_rate",
|
| 2445 |
+
"type": "timeseries"
|
| 2446 |
+
},
|
| 2447 |
+
{
|
| 2448 |
+
"datasource": {
|
| 2449 |
+
"type": "prometheus",
|
| 2450 |
+
"uid": "prometheus"
|
| 2451 |
+
},
|
| 2452 |
+
"fieldConfig": {
|
| 2453 |
+
"defaults": {
|
| 2454 |
+
"color": {
|
| 2455 |
+
"mode": "palette-classic"
|
| 2456 |
+
},
|
| 2457 |
+
"custom": {
|
| 2458 |
+
"axisBorderShow": false,
|
| 2459 |
+
"axisCenteredZero": false,
|
| 2460 |
+
"axisColorMode": "text",
|
| 2461 |
+
"axisLabel": "",
|
| 2462 |
+
"axisPlacement": "auto",
|
| 2463 |
+
"barAlignment": 0,
|
| 2464 |
+
"barWidthFactor": 0.6,
|
| 2465 |
+
"drawStyle": "line",
|
| 2466 |
+
"fillOpacity": 0,
|
| 2467 |
+
"gradientMode": "none",
|
| 2468 |
+
"hideFrom": {
|
| 2469 |
+
"legend": false,
|
| 2470 |
+
"tooltip": false,
|
| 2471 |
+
"viz": false
|
| 2472 |
+
},
|
| 2473 |
+
"insertNulls": false,
|
| 2474 |
+
"lineInterpolation": "linear",
|
| 2475 |
+
"lineWidth": 1,
|
| 2476 |
+
"pointSize": 5,
|
| 2477 |
+
"scaleDistribution": {
|
| 2478 |
+
"type": "linear"
|
| 2479 |
+
},
|
| 2480 |
+
"showPoints": "auto",
|
| 2481 |
+
"spanNulls": false,
|
| 2482 |
+
"stacking": {
|
| 2483 |
+
"group": "A",
|
| 2484 |
+
"mode": "none"
|
| 2485 |
+
},
|
| 2486 |
+
"thresholdsStyle": {
|
| 2487 |
+
"mode": "off"
|
| 2488 |
+
}
|
| 2489 |
+
},
|
| 2490 |
+
"mappings": [],
|
| 2491 |
+
"thresholds": {
|
| 2492 |
+
"mode": "absolute",
|
| 2493 |
+
"steps": [
|
| 2494 |
+
{
|
| 2495 |
+
"color": "green",
|
| 2496 |
+
"value": null
|
| 2497 |
+
},
|
| 2498 |
+
{
|
| 2499 |
+
"color": "red",
|
| 2500 |
+
"value": 80
|
| 2501 |
+
}
|
| 2502 |
+
]
|
| 2503 |
+
}
|
| 2504 |
+
},
|
| 2505 |
+
"overrides": []
|
| 2506 |
+
},
|
| 2507 |
+
"gridPos": {
|
| 2508 |
+
"h": 6,
|
| 2509 |
+
"w": 12,
|
| 2510 |
+
"x": 0,
|
| 2511 |
+
"y": 53
|
| 2512 |
+
},
|
| 2513 |
+
"id": 14,
|
| 2514 |
+
"options": {
|
| 2515 |
+
"legend": {
|
| 2516 |
+
"calcs": [],
|
| 2517 |
+
"displayMode": "list",
|
| 2518 |
+
"placement": "bottom",
|
| 2519 |
+
"showLegend": true
|
| 2520 |
+
},
|
| 2521 |
+
"tooltip": {
|
| 2522 |
+
"hideZeros": false,
|
| 2523 |
+
"mode": "single",
|
| 2524 |
+
"sort": "none"
|
| 2525 |
+
}
|
| 2526 |
+
},
|
| 2527 |
+
"pluginVersion": "11.5.2",
|
| 2528 |
+
"targets": [
|
| 2529 |
+
{
|
| 2530 |
+
"datasource": {
|
| 2531 |
+
"type": "prometheus",
|
| 2532 |
+
"uid": "prometheus"
|
| 2533 |
+
},
|
| 2534 |
+
"editorMode": "code",
|
| 2535 |
+
"exemplar": false,
|
| 2536 |
+
"expr": "rate(queries_durations_ms_count{}[$__rate_interval])",
|
| 2537 |
+
"legendFormat": "{{class_name}}",
|
| 2538 |
+
"range": true,
|
| 2539 |
+
"refId": "A"
|
| 2540 |
+
}
|
| 2541 |
+
],
|
| 2542 |
+
"title": "Number of requests",
|
| 2543 |
+
"type": "timeseries"
|
| 2544 |
+
},
|
| 2545 |
+
{
|
| 2546 |
+
"datasource": {
|
| 2547 |
+
"type": "prometheus",
|
| 2548 |
+
"uid": "prometheus"
|
| 2549 |
+
},
|
| 2550 |
+
"fieldConfig": {
|
| 2551 |
+
"defaults": {
|
| 2552 |
+
"color": {
|
| 2553 |
+
"mode": "palette-classic"
|
| 2554 |
+
},
|
| 2555 |
+
"custom": {
|
| 2556 |
+
"axisBorderShow": false,
|
| 2557 |
+
"axisCenteredZero": false,
|
| 2558 |
+
"axisColorMode": "text",
|
| 2559 |
+
"axisLabel": "",
|
| 2560 |
+
"axisPlacement": "auto",
|
| 2561 |
+
"barAlignment": 0,
|
| 2562 |
+
"barWidthFactor": 0.6,
|
| 2563 |
+
"drawStyle": "line",
|
| 2564 |
+
"fillOpacity": 0,
|
| 2565 |
+
"gradientMode": "none",
|
| 2566 |
+
"hideFrom": {
|
| 2567 |
+
"legend": false,
|
| 2568 |
+
"tooltip": false,
|
| 2569 |
+
"viz": false
|
| 2570 |
+
},
|
| 2571 |
+
"insertNulls": false,
|
| 2572 |
+
"lineInterpolation": "linear",
|
| 2573 |
+
"lineWidth": 1,
|
| 2574 |
+
"pointSize": 5,
|
| 2575 |
+
"scaleDistribution": {
|
| 2576 |
+
"type": "linear"
|
| 2577 |
+
},
|
| 2578 |
+
"showPoints": "auto",
|
| 2579 |
+
"spanNulls": false,
|
| 2580 |
+
"stacking": {
|
| 2581 |
+
"group": "A",
|
| 2582 |
+
"mode": "none"
|
| 2583 |
+
},
|
| 2584 |
+
"thresholdsStyle": {
|
| 2585 |
+
"mode": "off"
|
| 2586 |
+
}
|
| 2587 |
+
},
|
| 2588 |
+
"mappings": [],
|
| 2589 |
+
"thresholds": {
|
| 2590 |
+
"mode": "absolute",
|
| 2591 |
+
"steps": [
|
| 2592 |
+
{
|
| 2593 |
+
"color": "green",
|
| 2594 |
+
"value": null
|
| 2595 |
+
},
|
| 2596 |
+
{
|
| 2597 |
+
"color": "red",
|
| 2598 |
+
"value": 80
|
| 2599 |
+
}
|
| 2600 |
+
]
|
| 2601 |
+
}
|
| 2602 |
+
},
|
| 2603 |
+
"overrides": []
|
| 2604 |
+
},
|
| 2605 |
+
"gridPos": {
|
| 2606 |
+
"h": 6,
|
| 2607 |
+
"w": 12,
|
| 2608 |
+
"x": 12,
|
| 2609 |
+
"y": 54
|
| 2610 |
+
},
|
| 2611 |
+
"id": 38,
|
| 2612 |
+
"options": {
|
| 2613 |
+
"legend": {
|
| 2614 |
+
"calcs": [],
|
| 2615 |
+
"displayMode": "list",
|
| 2616 |
+
"placement": "bottom",
|
| 2617 |
+
"showLegend": true
|
| 2618 |
+
},
|
| 2619 |
+
"tooltip": {
|
| 2620 |
+
"hideZeros": false,
|
| 2621 |
+
"mode": "single",
|
| 2622 |
+
"sort": "none"
|
| 2623 |
+
}
|
| 2624 |
+
},
|
| 2625 |
+
"pluginVersion": "11.5.2",
|
| 2626 |
+
"targets": [
|
| 2627 |
+
{
|
| 2628 |
+
"datasource": {
|
| 2629 |
+
"type": "prometheus",
|
| 2630 |
+
"uid": "prometheus"
|
| 2631 |
+
},
|
| 2632 |
+
"editorMode": "code",
|
| 2633 |
+
"expr": "vector_index_tombstones{}",
|
| 2634 |
+
"hide": false,
|
| 2635 |
+
"legendFormat": "{{pod}} - CURRENT",
|
| 2636 |
+
"range": true,
|
| 2637 |
+
"refId": "B"
|
| 2638 |
+
}
|
| 2639 |
+
],
|
| 2640 |
+
"title": "vector_index_tombstones_rate",
|
| 2641 |
+
"type": "timeseries"
|
| 2642 |
+
},
|
| 2643 |
+
{
|
| 2644 |
+
"datasource": {
|
| 2645 |
+
"type": "prometheus",
|
| 2646 |
+
"uid": "prometheus"
|
| 2647 |
+
},
|
| 2648 |
+
"fieldConfig": {
|
| 2649 |
+
"defaults": {
|
| 2650 |
+
"color": {
|
| 2651 |
+
"fixedColor": "semi-dark-blue",
|
| 2652 |
+
"mode": "palette-classic"
|
| 2653 |
+
},
|
| 2654 |
+
"custom": {
|
| 2655 |
+
"axisBorderShow": false,
|
| 2656 |
+
"axisCenteredZero": false,
|
| 2657 |
+
"axisColorMode": "text",
|
| 2658 |
+
"axisLabel": "",
|
| 2659 |
+
"axisPlacement": "auto",
|
| 2660 |
+
"barAlignment": 0,
|
| 2661 |
+
"barWidthFactor": 0.6,
|
| 2662 |
+
"drawStyle": "line",
|
| 2663 |
+
"fillOpacity": 0,
|
| 2664 |
+
"gradientMode": "opacity",
|
| 2665 |
+
"hideFrom": {
|
| 2666 |
+
"legend": false,
|
| 2667 |
+
"tooltip": false,
|
| 2668 |
+
"viz": false
|
| 2669 |
+
},
|
| 2670 |
+
"insertNulls": false,
|
| 2671 |
+
"lineInterpolation": "linear",
|
| 2672 |
+
"lineWidth": 1,
|
| 2673 |
+
"pointSize": 3,
|
| 2674 |
+
"scaleDistribution": {
|
| 2675 |
+
"type": "linear"
|
| 2676 |
+
},
|
| 2677 |
+
"showPoints": "auto",
|
| 2678 |
+
"spanNulls": 300000,
|
| 2679 |
+
"stacking": {
|
| 2680 |
+
"group": "A",
|
| 2681 |
+
"mode": "none"
|
| 2682 |
+
},
|
| 2683 |
+
"thresholdsStyle": {
|
| 2684 |
+
"mode": "off"
|
| 2685 |
+
}
|
| 2686 |
+
},
|
| 2687 |
+
"mappings": [],
|
| 2688 |
+
"thresholds": {
|
| 2689 |
+
"mode": "absolute",
|
| 2690 |
+
"steps": [
|
| 2691 |
+
{
|
| 2692 |
+
"color": "green",
|
| 2693 |
+
"value": null
|
| 2694 |
+
},
|
| 2695 |
+
{
|
| 2696 |
+
"color": "red",
|
| 2697 |
+
"value": 80
|
| 2698 |
+
}
|
| 2699 |
+
]
|
| 2700 |
+
},
|
| 2701 |
+
"unit": "ms"
|
| 2702 |
+
},
|
| 2703 |
+
"overrides": []
|
| 2704 |
+
},
|
| 2705 |
+
"gridPos": {
|
| 2706 |
+
"h": 7,
|
| 2707 |
+
"w": 12,
|
| 2708 |
+
"x": 0,
|
| 2709 |
+
"y": 59
|
| 2710 |
+
},
|
| 2711 |
+
"id": 6,
|
| 2712 |
+
"options": {
|
| 2713 |
+
"legend": {
|
| 2714 |
+
"calcs": [],
|
| 2715 |
+
"displayMode": "list",
|
| 2716 |
+
"placement": "bottom",
|
| 2717 |
+
"showLegend": true
|
| 2718 |
+
},
|
| 2719 |
+
"tooltip": {
|
| 2720 |
+
"hideZeros": false,
|
| 2721 |
+
"mode": "single",
|
| 2722 |
+
"sort": "none"
|
| 2723 |
+
}
|
| 2724 |
+
},
|
| 2725 |
+
"pluginVersion": "11.5.2",
|
| 2726 |
+
"targets": [
|
| 2727 |
+
{
|
| 2728 |
+
"datasource": {
|
| 2729 |
+
"type": "prometheus",
|
| 2730 |
+
"uid": "prometheus"
|
| 2731 |
+
},
|
| 2732 |
+
"editorMode": "code",
|
| 2733 |
+
"expr": "histogram_quantile(0.5, sum by(le) (rate(queries_durations_ms_bucket{}[$__rate_interval])))",
|
| 2734 |
+
"legendFormat": "p50",
|
| 2735 |
+
"range": true,
|
| 2736 |
+
"refId": "A"
|
| 2737 |
+
},
|
| 2738 |
+
{
|
| 2739 |
+
"datasource": {
|
| 2740 |
+
"type": "prometheus",
|
| 2741 |
+
"uid": "prometheus"
|
| 2742 |
+
},
|
| 2743 |
+
"editorMode": "builder",
|
| 2744 |
+
"expr": "histogram_quantile(0.75, sum by(le) (rate(queries_durations_ms_bucket{}[$__rate_interval])))",
|
| 2745 |
+
"hide": false,
|
| 2746 |
+
"legendFormat": "p75",
|
| 2747 |
+
"range": true,
|
| 2748 |
+
"refId": "D"
|
| 2749 |
+
},
|
| 2750 |
+
{
|
| 2751 |
+
"datasource": {
|
| 2752 |
+
"type": "prometheus",
|
| 2753 |
+
"uid": "prometheus"
|
| 2754 |
+
},
|
| 2755 |
+
"editorMode": "builder",
|
| 2756 |
+
"expr": "histogram_quantile(0.9, sum by(le) (rate(queries_durations_ms_bucket{}[$__rate_interval])))",
|
| 2757 |
+
"hide": false,
|
| 2758 |
+
"legendFormat": "p90",
|
| 2759 |
+
"range": true,
|
| 2760 |
+
"refId": "B"
|
| 2761 |
+
},
|
| 2762 |
+
{
|
| 2763 |
+
"datasource": {
|
| 2764 |
+
"type": "prometheus",
|
| 2765 |
+
"uid": "prometheus"
|
| 2766 |
+
},
|
| 2767 |
+
"editorMode": "builder",
|
| 2768 |
+
"expr": "histogram_quantile(0.95, sum by(le) (rate(queries_durations_ms_bucket{}[$__rate_interval])))",
|
| 2769 |
+
"hide": false,
|
| 2770 |
+
"legendFormat": "p95",
|
| 2771 |
+
"range": true,
|
| 2772 |
+
"refId": "C"
|
| 2773 |
+
},
|
| 2774 |
+
{
|
| 2775 |
+
"datasource": {
|
| 2776 |
+
"type": "prometheus",
|
| 2777 |
+
"uid": "prometheus"
|
| 2778 |
+
},
|
| 2779 |
+
"editorMode": "builder",
|
| 2780 |
+
"expr": "histogram_quantile(0.99, sum by(le) (rate(queries_durations_ms_bucket{}[$__rate_interval])))",
|
| 2781 |
+
"hide": false,
|
| 2782 |
+
"legendFormat": "p99",
|
| 2783 |
+
"range": true,
|
| 2784 |
+
"refId": "E"
|
| 2785 |
+
}
|
| 2786 |
+
],
|
| 2787 |
+
"title": "Query latency percentiles",
|
| 2788 |
+
"type": "timeseries"
|
| 2789 |
+
},
|
| 2790 |
+
{
|
| 2791 |
+
"datasource": {
|
| 2792 |
+
"type": "prometheus",
|
| 2793 |
+
"uid": "prometheus"
|
| 2794 |
+
},
|
| 2795 |
+
"fieldConfig": {
|
| 2796 |
+
"defaults": {
|
| 2797 |
+
"color": {
|
| 2798 |
+
"mode": "palette-classic"
|
| 2799 |
+
},
|
| 2800 |
+
"custom": {
|
| 2801 |
+
"axisBorderShow": false,
|
| 2802 |
+
"axisCenteredZero": false,
|
| 2803 |
+
"axisColorMode": "text",
|
| 2804 |
+
"axisLabel": "",
|
| 2805 |
+
"axisPlacement": "auto",
|
| 2806 |
+
"barAlignment": 0,
|
| 2807 |
+
"barWidthFactor": 0.6,
|
| 2808 |
+
"drawStyle": "line",
|
| 2809 |
+
"fillOpacity": 0,
|
| 2810 |
+
"gradientMode": "none",
|
| 2811 |
+
"hideFrom": {
|
| 2812 |
+
"legend": false,
|
| 2813 |
+
"tooltip": false,
|
| 2814 |
+
"viz": false
|
| 2815 |
+
},
|
| 2816 |
+
"insertNulls": false,
|
| 2817 |
+
"lineInterpolation": "linear",
|
| 2818 |
+
"lineWidth": 1,
|
| 2819 |
+
"pointSize": 5,
|
| 2820 |
+
"scaleDistribution": {
|
| 2821 |
+
"type": "linear"
|
| 2822 |
+
},
|
| 2823 |
+
"showPoints": "auto",
|
| 2824 |
+
"spanNulls": false,
|
| 2825 |
+
"stacking": {
|
| 2826 |
+
"group": "A",
|
| 2827 |
+
"mode": "none"
|
| 2828 |
+
},
|
| 2829 |
+
"thresholdsStyle": {
|
| 2830 |
+
"mode": "off"
|
| 2831 |
+
}
|
| 2832 |
+
},
|
| 2833 |
+
"mappings": [],
|
| 2834 |
+
"thresholds": {
|
| 2835 |
+
"mode": "absolute",
|
| 2836 |
+
"steps": [
|
| 2837 |
+
{
|
| 2838 |
+
"color": "green",
|
| 2839 |
+
"value": null
|
| 2840 |
+
},
|
| 2841 |
+
{
|
| 2842 |
+
"color": "red",
|
| 2843 |
+
"value": 80
|
| 2844 |
+
}
|
| 2845 |
+
]
|
| 2846 |
+
},
|
| 2847 |
+
"unit": "ms"
|
| 2848 |
+
},
|
| 2849 |
+
"overrides": []
|
| 2850 |
+
},
|
| 2851 |
+
"gridPos": {
|
| 2852 |
+
"h": 7,
|
| 2853 |
+
"w": 12,
|
| 2854 |
+
"x": 12,
|
| 2855 |
+
"y": 60
|
| 2856 |
+
},
|
| 2857 |
+
"id": 8,
|
| 2858 |
+
"options": {
|
| 2859 |
+
"legend": {
|
| 2860 |
+
"calcs": [],
|
| 2861 |
+
"displayMode": "list",
|
| 2862 |
+
"placement": "bottom",
|
| 2863 |
+
"showLegend": true
|
| 2864 |
+
},
|
| 2865 |
+
"tooltip": {
|
| 2866 |
+
"hideZeros": false,
|
| 2867 |
+
"mode": "single",
|
| 2868 |
+
"sort": "none"
|
| 2869 |
+
}
|
| 2870 |
+
},
|
| 2871 |
+
"pluginVersion": "11.5.2",
|
| 2872 |
+
"targets": [
|
| 2873 |
+
{
|
| 2874 |
+
"datasource": {
|
| 2875 |
+
"type": "prometheus",
|
| 2876 |
+
"uid": "prometheus"
|
| 2877 |
+
},
|
| 2878 |
+
"editorMode": "code",
|
| 2879 |
+
"expr": "rate(batch_durations_ms_sum{class_name=\"n/a\", }[$__rate_interval])/rate(batch_durations_ms_count{class_name=\"n/a\", }[$__rate_interval])",
|
| 2880 |
+
"legendFormat": "{{operation}} {{shard_name}}",
|
| 2881 |
+
"range": true,
|
| 2882 |
+
"refId": "A"
|
| 2883 |
+
}
|
| 2884 |
+
],
|
| 2885 |
+
"title": "Batch performance",
|
| 2886 |
+
"type": "timeseries"
|
| 2887 |
+
},
|
| 2888 |
+
{
|
| 2889 |
+
"datasource": {
|
| 2890 |
+
"type": "prometheus",
|
| 2891 |
+
"uid": "prometheus"
|
| 2892 |
+
},
|
| 2893 |
+
"fieldConfig": {
|
| 2894 |
+
"defaults": {
|
| 2895 |
+
"color": {
|
| 2896 |
+
"mode": "palette-classic"
|
| 2897 |
+
},
|
| 2898 |
+
"custom": {
|
| 2899 |
+
"axisBorderShow": false,
|
| 2900 |
+
"axisCenteredZero": false,
|
| 2901 |
+
"axisColorMode": "text",
|
| 2902 |
+
"axisLabel": "",
|
| 2903 |
+
"axisPlacement": "auto",
|
| 2904 |
+
"barAlignment": 0,
|
| 2905 |
+
"barWidthFactor": 0.6,
|
| 2906 |
+
"drawStyle": "line",
|
| 2907 |
+
"fillOpacity": 0,
|
| 2908 |
+
"gradientMode": "none",
|
| 2909 |
+
"hideFrom": {
|
| 2910 |
+
"legend": false,
|
| 2911 |
+
"tooltip": false,
|
| 2912 |
+
"viz": false
|
| 2913 |
+
},
|
| 2914 |
+
"insertNulls": false,
|
| 2915 |
+
"lineInterpolation": "linear",
|
| 2916 |
+
"lineWidth": 1,
|
| 2917 |
+
"pointSize": 2,
|
| 2918 |
+
"scaleDistribution": {
|
| 2919 |
+
"type": "linear"
|
| 2920 |
+
},
|
| 2921 |
+
"showPoints": "auto",
|
| 2922 |
+
"spanNulls": 600000,
|
| 2923 |
+
"stacking": {
|
| 2924 |
+
"group": "A",
|
| 2925 |
+
"mode": "none"
|
| 2926 |
+
},
|
| 2927 |
+
"thresholdsStyle": {
|
| 2928 |
+
"mode": "off"
|
| 2929 |
+
}
|
| 2930 |
+
},
|
| 2931 |
+
"mappings": [],
|
| 2932 |
+
"thresholds": {
|
| 2933 |
+
"mode": "absolute",
|
| 2934 |
+
"steps": [
|
| 2935 |
+
{
|
| 2936 |
+
"color": "green",
|
| 2937 |
+
"value": null
|
| 2938 |
+
},
|
| 2939 |
+
{
|
| 2940 |
+
"color": "red",
|
| 2941 |
+
"value": 80
|
| 2942 |
+
}
|
| 2943 |
+
]
|
| 2944 |
+
},
|
| 2945 |
+
"unit": "ms"
|
| 2946 |
+
},
|
| 2947 |
+
"overrides": []
|
| 2948 |
+
},
|
| 2949 |
+
"gridPos": {
|
| 2950 |
+
"h": 8,
|
| 2951 |
+
"w": 12,
|
| 2952 |
+
"x": 0,
|
| 2953 |
+
"y": 66
|
| 2954 |
+
},
|
| 2955 |
+
"id": 45,
|
| 2956 |
+
"options": {
|
| 2957 |
+
"legend": {
|
| 2958 |
+
"calcs": [],
|
| 2959 |
+
"displayMode": "list",
|
| 2960 |
+
"placement": "bottom",
|
| 2961 |
+
"showLegend": true
|
| 2962 |
+
},
|
| 2963 |
+
"tooltip": {
|
| 2964 |
+
"hideZeros": false,
|
| 2965 |
+
"mode": "single",
|
| 2966 |
+
"sort": "none"
|
| 2967 |
+
}
|
| 2968 |
+
},
|
| 2969 |
+
"pluginVersion": "11.5.2",
|
| 2970 |
+
"targets": [
|
| 2971 |
+
{
|
| 2972 |
+
"datasource": {
|
| 2973 |
+
"type": "prometheus",
|
| 2974 |
+
"uid": "prometheus"
|
| 2975 |
+
},
|
| 2976 |
+
"editorMode": "code",
|
| 2977 |
+
"expr": "histogram_quantile(0.50, sum(rate(queries_durations_ms_bucket{}[$__rate_interval])) by (le,class_name,instance))",
|
| 2978 |
+
"legendFormat": "{{class_name}} - P50",
|
| 2979 |
+
"range": true,
|
| 2980 |
+
"refId": "A"
|
| 2981 |
+
},
|
| 2982 |
+
{
|
| 2983 |
+
"datasource": {
|
| 2984 |
+
"type": "prometheus",
|
| 2985 |
+
"uid": "prometheus"
|
| 2986 |
+
},
|
| 2987 |
+
"editorMode": "code",
|
| 2988 |
+
"expr": "histogram_quantile(0.75, sum(rate(queries_durations_ms_bucket{}[$__rate_interval])) by (le,class_name,instance))",
|
| 2989 |
+
"hide": false,
|
| 2990 |
+
"legendFormat": "{{class_name}} - P75",
|
| 2991 |
+
"range": true,
|
| 2992 |
+
"refId": "D"
|
| 2993 |
+
},
|
| 2994 |
+
{
|
| 2995 |
+
"datasource": {
|
| 2996 |
+
"type": "prometheus",
|
| 2997 |
+
"uid": "prometheus"
|
| 2998 |
+
},
|
| 2999 |
+
"editorMode": "code",
|
| 3000 |
+
"expr": "histogram_quantile(0.90, sum(rate(queries_durations_ms_bucket{}[$__rate_interval])) by (le,class_name,instance))",
|
| 3001 |
+
"hide": false,
|
| 3002 |
+
"legendFormat": "{{class_name}} - P90",
|
| 3003 |
+
"range": true,
|
| 3004 |
+
"refId": "B"
|
| 3005 |
+
},
|
| 3006 |
+
{
|
| 3007 |
+
"datasource": {
|
| 3008 |
+
"type": "prometheus",
|
| 3009 |
+
"uid": "prometheus"
|
| 3010 |
+
},
|
| 3011 |
+
"editorMode": "code",
|
| 3012 |
+
"expr": "histogram_quantile(0.95, sum(rate(queries_durations_ms_bucket{}[$__rate_interval])) by (le,class_name,instance))",
|
| 3013 |
+
"hide": false,
|
| 3014 |
+
"legendFormat": "{{class_name}} - P95",
|
| 3015 |
+
"range": true,
|
| 3016 |
+
"refId": "C"
|
| 3017 |
+
},
|
| 3018 |
+
{
|
| 3019 |
+
"datasource": {
|
| 3020 |
+
"type": "prometheus",
|
| 3021 |
+
"uid": "prometheus"
|
| 3022 |
+
},
|
| 3023 |
+
"editorMode": "code",
|
| 3024 |
+
"expr": "histogram_quantile(0.99, sum(rate(queries_durations_ms_bucket{}[$__rate_interval])) by (le,class_name,instance))",
|
| 3025 |
+
"hide": false,
|
| 3026 |
+
"legendFormat": "{{class_name}} - P99",
|
| 3027 |
+
"range": true,
|
| 3028 |
+
"refId": "E"
|
| 3029 |
+
}
|
| 3030 |
+
],
|
| 3031 |
+
"title": "Query latency percentiles per class",
|
| 3032 |
+
"type": "timeseries"
|
| 3033 |
+
},
|
| 3034 |
+
{
|
| 3035 |
+
"datasource": {
|
| 3036 |
+
"type": "prometheus",
|
| 3037 |
+
"uid": "prometheus"
|
| 3038 |
+
},
|
| 3039 |
+
"fieldConfig": {
|
| 3040 |
+
"defaults": {
|
| 3041 |
+
"color": {
|
| 3042 |
+
"mode": "palette-classic"
|
| 3043 |
+
},
|
| 3044 |
+
"custom": {
|
| 3045 |
+
"axisBorderShow": false,
|
| 3046 |
+
"axisCenteredZero": false,
|
| 3047 |
+
"axisColorMode": "text",
|
| 3048 |
+
"axisLabel": "",
|
| 3049 |
+
"axisPlacement": "auto",
|
| 3050 |
+
"barAlignment": 0,
|
| 3051 |
+
"barWidthFactor": 0.6,
|
| 3052 |
+
"drawStyle": "line",
|
| 3053 |
+
"fillOpacity": 0,
|
| 3054 |
+
"gradientMode": "none",
|
| 3055 |
+
"hideFrom": {
|
| 3056 |
+
"legend": false,
|
| 3057 |
+
"tooltip": false,
|
| 3058 |
+
"viz": false
|
| 3059 |
+
},
|
| 3060 |
+
"insertNulls": false,
|
| 3061 |
+
"lineInterpolation": "linear",
|
| 3062 |
+
"lineWidth": 1,
|
| 3063 |
+
"pointSize": 5,
|
| 3064 |
+
"scaleDistribution": {
|
| 3065 |
+
"type": "linear"
|
| 3066 |
+
},
|
| 3067 |
+
"showPoints": "auto",
|
| 3068 |
+
"spanNulls": false,
|
| 3069 |
+
"stacking": {
|
| 3070 |
+
"group": "A",
|
| 3071 |
+
"mode": "none"
|
| 3072 |
+
},
|
| 3073 |
+
"thresholdsStyle": {
|
| 3074 |
+
"mode": "off"
|
| 3075 |
+
}
|
| 3076 |
+
},
|
| 3077 |
+
"mappings": [],
|
| 3078 |
+
"thresholds": {
|
| 3079 |
+
"mode": "absolute",
|
| 3080 |
+
"steps": [
|
| 3081 |
+
{
|
| 3082 |
+
"color": "green",
|
| 3083 |
+
"value": null
|
| 3084 |
+
},
|
| 3085 |
+
{
|
| 3086 |
+
"color": "red",
|
| 3087 |
+
"value": 80
|
| 3088 |
+
}
|
| 3089 |
+
]
|
| 3090 |
+
}
|
| 3091 |
+
},
|
| 3092 |
+
"overrides": []
|
| 3093 |
+
},
|
| 3094 |
+
"gridPos": {
|
| 3095 |
+
"h": 6,
|
| 3096 |
+
"w": 12,
|
| 3097 |
+
"x": 12,
|
| 3098 |
+
"y": 67
|
| 3099 |
+
},
|
| 3100 |
+
"id": 20,
|
| 3101 |
+
"options": {
|
| 3102 |
+
"legend": {
|
| 3103 |
+
"calcs": [],
|
| 3104 |
+
"displayMode": "list",
|
| 3105 |
+
"placement": "bottom",
|
| 3106 |
+
"showLegend": true
|
| 3107 |
+
},
|
| 3108 |
+
"tooltip": {
|
| 3109 |
+
"hideZeros": false,
|
| 3110 |
+
"mode": "single",
|
| 3111 |
+
"sort": "none"
|
| 3112 |
+
}
|
| 3113 |
+
},
|
| 3114 |
+
"pluginVersion": "11.5.2",
|
| 3115 |
+
"targets": [
|
| 3116 |
+
{
|
| 3117 |
+
"datasource": {
|
| 3118 |
+
"type": "prometheus",
|
| 3119 |
+
"uid": "prometheus"
|
| 3120 |
+
},
|
| 3121 |
+
"editorMode": "code",
|
| 3122 |
+
"expr": "process_open_fds{}",
|
| 3123 |
+
"hide": false,
|
| 3124 |
+
"legendFormat": "{{instance}} - CURRENT",
|
| 3125 |
+
"range": true,
|
| 3126 |
+
"refId": "B"
|
| 3127 |
+
},
|
| 3128 |
+
{
|
| 3129 |
+
"datasource": {
|
| 3130 |
+
"type": "prometheus",
|
| 3131 |
+
"uid": "prometheus"
|
| 3132 |
+
},
|
| 3133 |
+
"editorMode": "code",
|
| 3134 |
+
"expr": "process_max_fds{}",
|
| 3135 |
+
"hide": false,
|
| 3136 |
+
"legendFormat": "{{instance}} - MAX",
|
| 3137 |
+
"range": true,
|
| 3138 |
+
"refId": "A"
|
| 3139 |
+
}
|
| 3140 |
+
],
|
| 3141 |
+
"title": "Open File Descriptors",
|
| 3142 |
+
"type": "timeseries"
|
| 3143 |
+
}
|
| 3144 |
+
],
|
| 3145 |
+
"preload": false,
|
| 3146 |
+
"refresh": "1m",
|
| 3147 |
+
"schemaVersion": 40,
|
| 3148 |
+
"tags": [
|
| 3149 |
+
"weaviate"
|
| 3150 |
+
],
|
| 3151 |
+
"templating": {
|
| 3152 |
+
"list": []
|
| 3153 |
+
},
|
| 3154 |
+
"time": {
|
| 3155 |
+
"from": "now-1h",
|
| 3156 |
+
"to": "now"
|
| 3157 |
+
},
|
| 3158 |
+
"timepicker": {},
|
| 3159 |
+
"timezone": "utc",
|
| 3160 |
+
"title": "Weaviate Kubernetes Workload",
|
| 3161 |
+
"uid": "c4a9765e-6982-4154-b796-714b77ee6fda",
|
| 3162 |
+
"version": 11,
|
| 3163 |
+
"weekStart": ""
|
| 3164 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/lsm.json
ADDED
|
@@ -0,0 +1,732 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"target": {
|
| 15 |
+
"limit": 100,
|
| 16 |
+
"matchAny": false,
|
| 17 |
+
"tags": [],
|
| 18 |
+
"type": "dashboard"
|
| 19 |
+
},
|
| 20 |
+
"type": "dashboard"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"editable": true,
|
| 25 |
+
"fiscalYearStartMonth": 0,
|
| 26 |
+
"graphTooltip": 0,
|
| 27 |
+
"links": [],
|
| 28 |
+
"liveNow": false,
|
| 29 |
+
"panels": [
|
| 30 |
+
{
|
| 31 |
+
"datasource": {
|
| 32 |
+
"type": "prometheus",
|
| 33 |
+
"uid": "Prometheus"
|
| 34 |
+
},
|
| 35 |
+
"description": "Replace is used primarly for object storage.",
|
| 36 |
+
"fieldConfig": {
|
| 37 |
+
"defaults": {
|
| 38 |
+
"color": {
|
| 39 |
+
"mode": "thresholds"
|
| 40 |
+
},
|
| 41 |
+
"mappings": [],
|
| 42 |
+
"thresholds": {
|
| 43 |
+
"mode": "absolute",
|
| 44 |
+
"steps": [
|
| 45 |
+
{
|
| 46 |
+
"color": "text",
|
| 47 |
+
"value": null
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
},
|
| 51 |
+
"unit": "decbytes"
|
| 52 |
+
},
|
| 53 |
+
"overrides": []
|
| 54 |
+
},
|
| 55 |
+
"gridPos": {
|
| 56 |
+
"h": 10,
|
| 57 |
+
"w": 8,
|
| 58 |
+
"x": 0,
|
| 59 |
+
"y": 0
|
| 60 |
+
},
|
| 61 |
+
"id": 8,
|
| 62 |
+
"options": {
|
| 63 |
+
"colorMode": "value",
|
| 64 |
+
"graphMode": "area",
|
| 65 |
+
"justifyMode": "auto",
|
| 66 |
+
"orientation": "auto",
|
| 67 |
+
"reduceOptions": {
|
| 68 |
+
"calcs": [
|
| 69 |
+
"lastNotNull"
|
| 70 |
+
],
|
| 71 |
+
"fields": "",
|
| 72 |
+
"values": false
|
| 73 |
+
},
|
| 74 |
+
"textMode": "auto"
|
| 75 |
+
},
|
| 76 |
+
"pluginVersion": "9.0.0-beta2",
|
| 77 |
+
"targets": [
|
| 78 |
+
{
|
| 79 |
+
"datasource": {
|
| 80 |
+
"type": "prometheus",
|
| 81 |
+
"uid": "Prometheus"
|
| 82 |
+
},
|
| 83 |
+
"editorMode": "code",
|
| 84 |
+
"expr": "sum by (level, unit) (lsm_segment_size{strategy=\"replace\"})",
|
| 85 |
+
"legendFormat": "Level {{level}} / {{unit}} ",
|
| 86 |
+
"range": true,
|
| 87 |
+
"refId": "A"
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"title": "LSM Strategy Replace by Level (Object Storage)",
|
| 91 |
+
"type": "stat"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"datasource": {
|
| 95 |
+
"type": "prometheus",
|
| 96 |
+
"uid": "Prometheus"
|
| 97 |
+
},
|
| 98 |
+
"description": "SetCollections are used in the inverted index for anything that does not have a frequency, e.g. numbers, bools, etc.",
|
| 99 |
+
"fieldConfig": {
|
| 100 |
+
"defaults": {
|
| 101 |
+
"color": {
|
| 102 |
+
"mode": "thresholds"
|
| 103 |
+
},
|
| 104 |
+
"mappings": [],
|
| 105 |
+
"thresholds": {
|
| 106 |
+
"mode": "absolute",
|
| 107 |
+
"steps": [
|
| 108 |
+
{
|
| 109 |
+
"color": "text",
|
| 110 |
+
"value": null
|
| 111 |
+
}
|
| 112 |
+
]
|
| 113 |
+
},
|
| 114 |
+
"unit": "decbytes"
|
| 115 |
+
},
|
| 116 |
+
"overrides": []
|
| 117 |
+
},
|
| 118 |
+
"gridPos": {
|
| 119 |
+
"h": 10,
|
| 120 |
+
"w": 8,
|
| 121 |
+
"x": 8,
|
| 122 |
+
"y": 0
|
| 123 |
+
},
|
| 124 |
+
"id": 9,
|
| 125 |
+
"options": {
|
| 126 |
+
"colorMode": "value",
|
| 127 |
+
"graphMode": "area",
|
| 128 |
+
"justifyMode": "auto",
|
| 129 |
+
"orientation": "auto",
|
| 130 |
+
"reduceOptions": {
|
| 131 |
+
"calcs": [
|
| 132 |
+
"lastNotNull"
|
| 133 |
+
],
|
| 134 |
+
"fields": "",
|
| 135 |
+
"values": false
|
| 136 |
+
},
|
| 137 |
+
"textMode": "auto"
|
| 138 |
+
},
|
| 139 |
+
"pluginVersion": "9.0.0-beta2",
|
| 140 |
+
"targets": [
|
| 141 |
+
{
|
| 142 |
+
"datasource": {
|
| 143 |
+
"type": "prometheus",
|
| 144 |
+
"uid": "Prometheus"
|
| 145 |
+
},
|
| 146 |
+
"editorMode": "code",
|
| 147 |
+
"expr": "sum by (level, unit) (lsm_segment_size{strategy=\"setcollection\"})",
|
| 148 |
+
"legendFormat": "Level {{level}} / {{unit}} ",
|
| 149 |
+
"range": true,
|
| 150 |
+
"refId": "A"
|
| 151 |
+
}
|
| 152 |
+
],
|
| 153 |
+
"title": "LSM Strategy SetCollection by Level (Inverted without frequency)",
|
| 154 |
+
"type": "stat"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"datasource": {
|
| 158 |
+
"type": "prometheus",
|
| 159 |
+
"uid": "Prometheus"
|
| 160 |
+
},
|
| 161 |
+
"description": "MapCollections are used in the inverted index for anything that has a frequency, which is mainly text and string props. Those need a frequency for BM25 calculations.",
|
| 162 |
+
"fieldConfig": {
|
| 163 |
+
"defaults": {
|
| 164 |
+
"color": {
|
| 165 |
+
"mode": "thresholds"
|
| 166 |
+
},
|
| 167 |
+
"mappings": [],
|
| 168 |
+
"thresholds": {
|
| 169 |
+
"mode": "absolute",
|
| 170 |
+
"steps": [
|
| 171 |
+
{
|
| 172 |
+
"color": "text",
|
| 173 |
+
"value": null
|
| 174 |
+
}
|
| 175 |
+
]
|
| 176 |
+
},
|
| 177 |
+
"unit": "decbytes"
|
| 178 |
+
},
|
| 179 |
+
"overrides": []
|
| 180 |
+
},
|
| 181 |
+
"gridPos": {
|
| 182 |
+
"h": 10,
|
| 183 |
+
"w": 8,
|
| 184 |
+
"x": 16,
|
| 185 |
+
"y": 0
|
| 186 |
+
},
|
| 187 |
+
"id": 10,
|
| 188 |
+
"options": {
|
| 189 |
+
"colorMode": "value",
|
| 190 |
+
"graphMode": "area",
|
| 191 |
+
"justifyMode": "auto",
|
| 192 |
+
"orientation": "auto",
|
| 193 |
+
"reduceOptions": {
|
| 194 |
+
"calcs": [
|
| 195 |
+
"lastNotNull"
|
| 196 |
+
],
|
| 197 |
+
"fields": "",
|
| 198 |
+
"values": false
|
| 199 |
+
},
|
| 200 |
+
"textMode": "auto"
|
| 201 |
+
},
|
| 202 |
+
"pluginVersion": "9.0.0-beta2",
|
| 203 |
+
"targets": [
|
| 204 |
+
{
|
| 205 |
+
"datasource": {
|
| 206 |
+
"type": "prometheus",
|
| 207 |
+
"uid": "Prometheus"
|
| 208 |
+
},
|
| 209 |
+
"editorMode": "code",
|
| 210 |
+
"expr": "sum by (level, unit) (lsm_segment_size{strategy=\"mapcollection\"})",
|
| 211 |
+
"legendFormat": "Level {{level}} / {{unit}} ",
|
| 212 |
+
"range": true,
|
| 213 |
+
"refId": "A"
|
| 214 |
+
}
|
| 215 |
+
],
|
| 216 |
+
"title": "LSM Strategy MapCollection by Level (Inverted with frequency)",
|
| 217 |
+
"type": "stat"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"datasource": {
|
| 221 |
+
"type": "prometheus",
|
| 222 |
+
"uid": "Prometheus"
|
| 223 |
+
},
|
| 224 |
+
"fieldConfig": {
|
| 225 |
+
"defaults": {
|
| 226 |
+
"color": {
|
| 227 |
+
"mode": "palette-classic"
|
| 228 |
+
},
|
| 229 |
+
"custom": {
|
| 230 |
+
"axisLabel": "",
|
| 231 |
+
"axisPlacement": "auto",
|
| 232 |
+
"barAlignment": 0,
|
| 233 |
+
"drawStyle": "line",
|
| 234 |
+
"fillOpacity": 0,
|
| 235 |
+
"gradientMode": "none",
|
| 236 |
+
"hideFrom": {
|
| 237 |
+
"legend": false,
|
| 238 |
+
"tooltip": false,
|
| 239 |
+
"viz": false
|
| 240 |
+
},
|
| 241 |
+
"lineInterpolation": "linear",
|
| 242 |
+
"lineWidth": 1,
|
| 243 |
+
"pointSize": 5,
|
| 244 |
+
"scaleDistribution": {
|
| 245 |
+
"type": "linear"
|
| 246 |
+
},
|
| 247 |
+
"showPoints": "auto",
|
| 248 |
+
"spanNulls": false,
|
| 249 |
+
"stacking": {
|
| 250 |
+
"group": "A",
|
| 251 |
+
"mode": "none"
|
| 252 |
+
},
|
| 253 |
+
"thresholdsStyle": {
|
| 254 |
+
"mode": "off"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"mappings": [],
|
| 258 |
+
"thresholds": {
|
| 259 |
+
"mode": "absolute",
|
| 260 |
+
"steps": [
|
| 261 |
+
{
|
| 262 |
+
"color": "green",
|
| 263 |
+
"value": null
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"color": "red",
|
| 267 |
+
"value": 80
|
| 268 |
+
}
|
| 269 |
+
]
|
| 270 |
+
},
|
| 271 |
+
"unit": "decbytes"
|
| 272 |
+
},
|
| 273 |
+
"overrides": []
|
| 274 |
+
},
|
| 275 |
+
"gridPos": {
|
| 276 |
+
"h": 8,
|
| 277 |
+
"w": 11,
|
| 278 |
+
"x": 0,
|
| 279 |
+
"y": 10
|
| 280 |
+
},
|
| 281 |
+
"id": 14,
|
| 282 |
+
"options": {
|
| 283 |
+
"legend": {
|
| 284 |
+
"calcs": [],
|
| 285 |
+
"displayMode": "list",
|
| 286 |
+
"placement": "bottom"
|
| 287 |
+
},
|
| 288 |
+
"tooltip": {
|
| 289 |
+
"mode": "single",
|
| 290 |
+
"sort": "none"
|
| 291 |
+
}
|
| 292 |
+
},
|
| 293 |
+
"targets": [
|
| 294 |
+
{
|
| 295 |
+
"datasource": {
|
| 296 |
+
"type": "prometheus",
|
| 297 |
+
"uid": "Prometheus"
|
| 298 |
+
},
|
| 299 |
+
"editorMode": "code",
|
| 300 |
+
"expr": "lsm_memtable_size{}",
|
| 301 |
+
"legendFormat": "{{path}}",
|
| 302 |
+
"range": true,
|
| 303 |
+
"refId": "A"
|
| 304 |
+
}
|
| 305 |
+
],
|
| 306 |
+
"title": "Memtable Size (Individual)",
|
| 307 |
+
"type": "timeseries"
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"datasource": {
|
| 311 |
+
"type": "prometheus",
|
| 312 |
+
"uid": "Prometheus"
|
| 313 |
+
},
|
| 314 |
+
"fieldConfig": {
|
| 315 |
+
"defaults": {
|
| 316 |
+
"color": {
|
| 317 |
+
"mode": "palette-classic"
|
| 318 |
+
},
|
| 319 |
+
"custom": {
|
| 320 |
+
"axisLabel": "",
|
| 321 |
+
"axisPlacement": "auto",
|
| 322 |
+
"barAlignment": 0,
|
| 323 |
+
"drawStyle": "line",
|
| 324 |
+
"fillOpacity": 0,
|
| 325 |
+
"gradientMode": "none",
|
| 326 |
+
"hideFrom": {
|
| 327 |
+
"legend": false,
|
| 328 |
+
"tooltip": false,
|
| 329 |
+
"viz": false
|
| 330 |
+
},
|
| 331 |
+
"lineInterpolation": "linear",
|
| 332 |
+
"lineWidth": 1,
|
| 333 |
+
"pointSize": 5,
|
| 334 |
+
"scaleDistribution": {
|
| 335 |
+
"type": "linear"
|
| 336 |
+
},
|
| 337 |
+
"showPoints": "auto",
|
| 338 |
+
"spanNulls": false,
|
| 339 |
+
"stacking": {
|
| 340 |
+
"group": "A",
|
| 341 |
+
"mode": "none"
|
| 342 |
+
},
|
| 343 |
+
"thresholdsStyle": {
|
| 344 |
+
"mode": "off"
|
| 345 |
+
}
|
| 346 |
+
},
|
| 347 |
+
"mappings": [],
|
| 348 |
+
"thresholds": {
|
| 349 |
+
"mode": "absolute",
|
| 350 |
+
"steps": [
|
| 351 |
+
{
|
| 352 |
+
"color": "green",
|
| 353 |
+
"value": null
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"color": "red",
|
| 357 |
+
"value": 80
|
| 358 |
+
}
|
| 359 |
+
]
|
| 360 |
+
}
|
| 361 |
+
},
|
| 362 |
+
"overrides": []
|
| 363 |
+
},
|
| 364 |
+
"gridPos": {
|
| 365 |
+
"h": 8,
|
| 366 |
+
"w": 12,
|
| 367 |
+
"x": 11,
|
| 368 |
+
"y": 10
|
| 369 |
+
},
|
| 370 |
+
"id": 16,
|
| 371 |
+
"options": {
|
| 372 |
+
"legend": {
|
| 373 |
+
"calcs": [],
|
| 374 |
+
"displayMode": "list",
|
| 375 |
+
"placement": "bottom"
|
| 376 |
+
},
|
| 377 |
+
"tooltip": {
|
| 378 |
+
"mode": "single",
|
| 379 |
+
"sort": "none"
|
| 380 |
+
}
|
| 381 |
+
},
|
| 382 |
+
"targets": [
|
| 383 |
+
{
|
| 384 |
+
"datasource": {
|
| 385 |
+
"type": "prometheus",
|
| 386 |
+
"uid": "Prometheus"
|
| 387 |
+
},
|
| 388 |
+
"editorMode": "code",
|
| 389 |
+
"expr": "rate(lsm_memtable_durations_ms_sum{}[$__interval])/rate(lsm_memtable_durations_ms_count{}[$__interval])",
|
| 390 |
+
"legendFormat": "{{operation}} ({{path}})",
|
| 391 |
+
"range": true,
|
| 392 |
+
"refId": "A"
|
| 393 |
+
}
|
| 394 |
+
],
|
| 395 |
+
"title": "Memtable Operations (individual)",
|
| 396 |
+
"type": "timeseries"
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"datasource": {
|
| 400 |
+
"type": "prometheus",
|
| 401 |
+
"uid": "Prometheus"
|
| 402 |
+
},
|
| 403 |
+
"description": "The bloom filters are designed to quickly produce true negatives, but sometimes they have false positive which require an actual disk lookup.",
|
| 404 |
+
"fieldConfig": {
|
| 405 |
+
"defaults": {
|
| 406 |
+
"color": {
|
| 407 |
+
"mode": "palette-classic"
|
| 408 |
+
},
|
| 409 |
+
"custom": {
|
| 410 |
+
"axisLabel": "",
|
| 411 |
+
"axisPlacement": "auto",
|
| 412 |
+
"barAlignment": 0,
|
| 413 |
+
"drawStyle": "line",
|
| 414 |
+
"fillOpacity": 0,
|
| 415 |
+
"gradientMode": "none",
|
| 416 |
+
"hideFrom": {
|
| 417 |
+
"legend": false,
|
| 418 |
+
"tooltip": false,
|
| 419 |
+
"viz": false
|
| 420 |
+
},
|
| 421 |
+
"lineInterpolation": "linear",
|
| 422 |
+
"lineWidth": 1,
|
| 423 |
+
"pointSize": 5,
|
| 424 |
+
"scaleDistribution": {
|
| 425 |
+
"type": "linear"
|
| 426 |
+
},
|
| 427 |
+
"showPoints": "auto",
|
| 428 |
+
"spanNulls": false,
|
| 429 |
+
"stacking": {
|
| 430 |
+
"group": "A",
|
| 431 |
+
"mode": "none"
|
| 432 |
+
},
|
| 433 |
+
"thresholdsStyle": {
|
| 434 |
+
"mode": "off"
|
| 435 |
+
}
|
| 436 |
+
},
|
| 437 |
+
"mappings": [],
|
| 438 |
+
"thresholds": {
|
| 439 |
+
"mode": "absolute",
|
| 440 |
+
"steps": [
|
| 441 |
+
{
|
| 442 |
+
"color": "green",
|
| 443 |
+
"value": null
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"color": "red",
|
| 447 |
+
"value": 80
|
| 448 |
+
}
|
| 449 |
+
]
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"overrides": []
|
| 453 |
+
},
|
| 454 |
+
"gridPos": {
|
| 455 |
+
"h": 8,
|
| 456 |
+
"w": 8,
|
| 457 |
+
"x": 0,
|
| 458 |
+
"y": 18
|
| 459 |
+
},
|
| 460 |
+
"id": 2,
|
| 461 |
+
"options": {
|
| 462 |
+
"legend": {
|
| 463 |
+
"calcs": [],
|
| 464 |
+
"displayMode": "list",
|
| 465 |
+
"placement": "bottom"
|
| 466 |
+
},
|
| 467 |
+
"tooltip": {
|
| 468 |
+
"mode": "single",
|
| 469 |
+
"sort": "none"
|
| 470 |
+
}
|
| 471 |
+
},
|
| 472 |
+
"targets": [
|
| 473 |
+
{
|
| 474 |
+
"datasource": {
|
| 475 |
+
"type": "prometheus",
|
| 476 |
+
"uid": "Prometheus"
|
| 477 |
+
},
|
| 478 |
+
"editorMode": "code",
|
| 479 |
+
"expr": "rate(lsm_bloom_filters_duration_ms_sum{strategy=\"replace\"}[$__interval])/rate(lsm_bloom_filters_duration_ms_count{strategy=\"replace\"}[$__interval])",
|
| 480 |
+
"legendFormat": "{{operation}} ({{class_name}}/{{shard_name}})",
|
| 481 |
+
"range": true,
|
| 482 |
+
"refId": "A"
|
| 483 |
+
}
|
| 484 |
+
],
|
| 485 |
+
"title": "Bloom Filter Hits and Misses Duration",
|
| 486 |
+
"type": "timeseries"
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"datasource": {
|
| 490 |
+
"type": "prometheus",
|
| 491 |
+
"uid": "Prometheus"
|
| 492 |
+
},
|
| 493 |
+
"description": "Ratio of false-positive to all requests to the bloom filter, i.e. those that required an unnecessary disk lookup.",
|
| 494 |
+
"fieldConfig": {
|
| 495 |
+
"defaults": {
|
| 496 |
+
"color": {
|
| 497 |
+
"mode": "thresholds"
|
| 498 |
+
},
|
| 499 |
+
"mappings": [],
|
| 500 |
+
"thresholds": {
|
| 501 |
+
"mode": "absolute",
|
| 502 |
+
"steps": [
|
| 503 |
+
{
|
| 504 |
+
"color": "green",
|
| 505 |
+
"value": null
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"color": "red",
|
| 509 |
+
"value": 80
|
| 510 |
+
}
|
| 511 |
+
]
|
| 512 |
+
},
|
| 513 |
+
"unit": "percentunit"
|
| 514 |
+
},
|
| 515 |
+
"overrides": []
|
| 516 |
+
},
|
| 517 |
+
"gridPos": {
|
| 518 |
+
"h": 8,
|
| 519 |
+
"w": 3,
|
| 520 |
+
"x": 8,
|
| 521 |
+
"y": 18
|
| 522 |
+
},
|
| 523 |
+
"id": 4,
|
| 524 |
+
"options": {
|
| 525 |
+
"orientation": "auto",
|
| 526 |
+
"reduceOptions": {
|
| 527 |
+
"calcs": [
|
| 528 |
+
"lastNotNull"
|
| 529 |
+
],
|
| 530 |
+
"fields": "",
|
| 531 |
+
"values": false
|
| 532 |
+
},
|
| 533 |
+
"showThresholdLabels": false,
|
| 534 |
+
"showThresholdMarkers": true
|
| 535 |
+
},
|
| 536 |
+
"pluginVersion": "9.0.0-beta2",
|
| 537 |
+
"targets": [
|
| 538 |
+
{
|
| 539 |
+
"datasource": {
|
| 540 |
+
"type": "prometheus",
|
| 541 |
+
"uid": "Prometheus"
|
| 542 |
+
},
|
| 543 |
+
"expr": "sum(lsm_bloom_filters_duration_ms_count{operation=\"get_false_positive\"})/(sum(lsm_bloom_filters_duration_ms_count{operation=\"get_true_negative\"})+sum(lsm_bloom_filters_duration_ms_count{operation=\"get_true_positive\"})+sum(lsm_bloom_filters_duration_ms_count{operation=\"get_false_positive\"}))",
|
| 544 |
+
"refId": "A"
|
| 545 |
+
}
|
| 546 |
+
],
|
| 547 |
+
"title": "Bloom Filter False Positive Ratio",
|
| 548 |
+
"type": "gauge"
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"datasource": {
|
| 552 |
+
"type": "prometheus",
|
| 553 |
+
"uid": "Prometheus"
|
| 554 |
+
},
|
| 555 |
+
"fieldConfig": {
|
| 556 |
+
"defaults": {
|
| 557 |
+
"color": {
|
| 558 |
+
"mode": "thresholds"
|
| 559 |
+
},
|
| 560 |
+
"decimals": 0,
|
| 561 |
+
"mappings": [],
|
| 562 |
+
"thresholds": {
|
| 563 |
+
"mode": "absolute",
|
| 564 |
+
"steps": [
|
| 565 |
+
{
|
| 566 |
+
"color": "text",
|
| 567 |
+
"value": null
|
| 568 |
+
}
|
| 569 |
+
]
|
| 570 |
+
},
|
| 571 |
+
"unit": "none"
|
| 572 |
+
},
|
| 573 |
+
"overrides": []
|
| 574 |
+
},
|
| 575 |
+
"gridPos": {
|
| 576 |
+
"h": 8,
|
| 577 |
+
"w": 7,
|
| 578 |
+
"x": 11,
|
| 579 |
+
"y": 18
|
| 580 |
+
},
|
| 581 |
+
"id": 6,
|
| 582 |
+
"options": {
|
| 583 |
+
"colorMode": "value",
|
| 584 |
+
"graphMode": "area",
|
| 585 |
+
"justifyMode": "auto",
|
| 586 |
+
"orientation": "auto",
|
| 587 |
+
"reduceOptions": {
|
| 588 |
+
"calcs": [
|
| 589 |
+
"lastNotNull"
|
| 590 |
+
],
|
| 591 |
+
"fields": "",
|
| 592 |
+
"values": false
|
| 593 |
+
},
|
| 594 |
+
"text": {},
|
| 595 |
+
"textMode": "auto"
|
| 596 |
+
},
|
| 597 |
+
"pluginVersion": "9.0.0-beta2",
|
| 598 |
+
"targets": [
|
| 599 |
+
{
|
| 600 |
+
"datasource": {
|
| 601 |
+
"type": "prometheus",
|
| 602 |
+
"uid": "Prometheus"
|
| 603 |
+
},
|
| 604 |
+
"editorMode": "code",
|
| 605 |
+
"expr": "sum(lsm_bloom_filters_duration_ms_count{operation=\"get_true_positive\"})",
|
| 606 |
+
"legendFormat": "True Positives",
|
| 607 |
+
"range": true,
|
| 608 |
+
"refId": "A"
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"datasource": {
|
| 612 |
+
"type": "prometheus",
|
| 613 |
+
"uid": "Prometheus"
|
| 614 |
+
},
|
| 615 |
+
"editorMode": "code",
|
| 616 |
+
"expr": "sum(lsm_bloom_filters_duration_ms_count{operation=\"get_true_negative\"})",
|
| 617 |
+
"hide": false,
|
| 618 |
+
"legendFormat": "True Negatives",
|
| 619 |
+
"range": true,
|
| 620 |
+
"refId": "B"
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"datasource": {
|
| 624 |
+
"type": "prometheus",
|
| 625 |
+
"uid": "Prometheus"
|
| 626 |
+
},
|
| 627 |
+
"editorMode": "code",
|
| 628 |
+
"expr": "sum(lsm_bloom_filters_duration_ms_count{operation=\"get_false_positive\"})",
|
| 629 |
+
"hide": false,
|
| 630 |
+
"legendFormat": "False Positives",
|
| 631 |
+
"range": true,
|
| 632 |
+
"refId": "C"
|
| 633 |
+
}
|
| 634 |
+
],
|
| 635 |
+
"title": "Bloom Filter Access",
|
| 636 |
+
"type": "stat"
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"datasource": {
|
| 640 |
+
"type": "prometheus",
|
| 641 |
+
"uid": "Prometheus"
|
| 642 |
+
},
|
| 643 |
+
"description": "The grouping is done by strategy which means the reported Object storage value may be slightly too high, due to other buckets using replace strategy.",
|
| 644 |
+
"fieldConfig": {
|
| 645 |
+
"defaults": {
|
| 646 |
+
"color": {
|
| 647 |
+
"mode": "thresholds"
|
| 648 |
+
},
|
| 649 |
+
"mappings": [],
|
| 650 |
+
"min": 0,
|
| 651 |
+
"thresholds": {
|
| 652 |
+
"mode": "absolute",
|
| 653 |
+
"steps": [
|
| 654 |
+
{
|
| 655 |
+
"color": "text",
|
| 656 |
+
"value": null
|
| 657 |
+
}
|
| 658 |
+
]
|
| 659 |
+
},
|
| 660 |
+
"unit": "decbytes"
|
| 661 |
+
},
|
| 662 |
+
"overrides": []
|
| 663 |
+
},
|
| 664 |
+
"gridPos": {
|
| 665 |
+
"h": 8,
|
| 666 |
+
"w": 6,
|
| 667 |
+
"x": 18,
|
| 668 |
+
"y": 18
|
| 669 |
+
},
|
| 670 |
+
"id": 12,
|
| 671 |
+
"options": {
|
| 672 |
+
"displayMode": "gradient",
|
| 673 |
+
"minVizHeight": 10,
|
| 674 |
+
"minVizWidth": 0,
|
| 675 |
+
"orientation": "auto",
|
| 676 |
+
"reduceOptions": {
|
| 677 |
+
"calcs": [
|
| 678 |
+
"lastNotNull"
|
| 679 |
+
],
|
| 680 |
+
"fields": "",
|
| 681 |
+
"values": false
|
| 682 |
+
},
|
| 683 |
+
"showUnfilled": true
|
| 684 |
+
},
|
| 685 |
+
"pluginVersion": "9.0.0-beta2",
|
| 686 |
+
"targets": [
|
| 687 |
+
{
|
| 688 |
+
"datasource": {
|
| 689 |
+
"type": "prometheus",
|
| 690 |
+
"uid": "Prometheus"
|
| 691 |
+
},
|
| 692 |
+
"editorMode": "code",
|
| 693 |
+
"expr": "sum(lsm_segment_size{strategy=\"replace\"})",
|
| 694 |
+
"legendFormat": "Object Storage",
|
| 695 |
+
"range": true,
|
| 696 |
+
"refId": "A"
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"datasource": {
|
| 700 |
+
"type": "prometheus",
|
| 701 |
+
"uid": "Prometheus"
|
| 702 |
+
},
|
| 703 |
+
"editorMode": "code",
|
| 704 |
+
"expr": "sum(lsm_segment_size{strategy=\"mapcollection\"}) + ignoring(strategy) sum(lsm_segment_size{strategy=\"setcollection\"})",
|
| 705 |
+
"hide": false,
|
| 706 |
+
"legendFormat": "Inverted Index",
|
| 707 |
+
"range": true,
|
| 708 |
+
"refId": "B"
|
| 709 |
+
}
|
| 710 |
+
],
|
| 711 |
+
"title": "Estimated Sizes LSM stores",
|
| 712 |
+
"type": "bargauge"
|
| 713 |
+
}
|
| 714 |
+
],
|
| 715 |
+
"refresh": false,
|
| 716 |
+
"schemaVersion": 36,
|
| 717 |
+
"style": "dark",
|
| 718 |
+
"tags": [],
|
| 719 |
+
"templating": {
|
| 720 |
+
"list": []
|
| 721 |
+
},
|
| 722 |
+
"time": {
|
| 723 |
+
"from": "now-15m",
|
| 724 |
+
"to": "now"
|
| 725 |
+
},
|
| 726 |
+
"timepicker": {},
|
| 727 |
+
"timezone": "",
|
| 728 |
+
"title": "LSM Store",
|
| 729 |
+
"uid": "hPd0sernz",
|
| 730 |
+
"version": 1,
|
| 731 |
+
"weekStart": ""
|
| 732 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/objects.json
ADDED
|
@@ -0,0 +1,532 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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Alerts",
|
| 14 |
+
"target": {
|
| 15 |
+
"limit": 100,
|
| 16 |
+
"matchAny": false,
|
| 17 |
+
"tags": [],
|
| 18 |
+
"type": "dashboard"
|
| 19 |
+
},
|
| 20 |
+
"type": "dashboard"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"editable": true,
|
| 25 |
+
"fiscalYearStartMonth": 0,
|
| 26 |
+
"graphTooltip": 0,
|
| 27 |
+
"links": [],
|
| 28 |
+
"liveNow": false,
|
| 29 |
+
"panels": [
|
| 30 |
+
{
|
| 31 |
+
"datasource": {
|
| 32 |
+
"type": "prometheus",
|
| 33 |
+
"uid": "Prometheus"
|
| 34 |
+
},
|
| 35 |
+
"description": "Operations typically happen highly concurrently, so the per object time is often close to the overall batch time. Use this data to draw conclusions about relative changes over time, not for interpreting absolute values.",
|
| 36 |
+
"fieldConfig": {
|
| 37 |
+
"defaults": {
|
| 38 |
+
"color": {
|
| 39 |
+
"mode": "palette-classic"
|
| 40 |
+
},
|
| 41 |
+
"custom": {
|
| 42 |
+
"axisCenteredZero": false,
|
| 43 |
+
"axisColorMode": "text",
|
| 44 |
+
"axisLabel": "",
|
| 45 |
+
"axisPlacement": "auto",
|
| 46 |
+
"barAlignment": 0,
|
| 47 |
+
"drawStyle": "line",
|
| 48 |
+
"fillOpacity": 0,
|
| 49 |
+
"gradientMode": "none",
|
| 50 |
+
"hideFrom": {
|
| 51 |
+
"legend": false,
|
| 52 |
+
"tooltip": false,
|
| 53 |
+
"viz": false
|
| 54 |
+
},
|
| 55 |
+
"lineInterpolation": "linear",
|
| 56 |
+
"lineWidth": 1,
|
| 57 |
+
"pointSize": 5,
|
| 58 |
+
"scaleDistribution": {
|
| 59 |
+
"type": "linear"
|
| 60 |
+
},
|
| 61 |
+
"showPoints": "auto",
|
| 62 |
+
"spanNulls": false,
|
| 63 |
+
"stacking": {
|
| 64 |
+
"group": "A",
|
| 65 |
+
"mode": "none"
|
| 66 |
+
},
|
| 67 |
+
"thresholdsStyle": {
|
| 68 |
+
"mode": "off"
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
"mappings": [],
|
| 72 |
+
"thresholds": {
|
| 73 |
+
"mode": "absolute",
|
| 74 |
+
"steps": [
|
| 75 |
+
{
|
| 76 |
+
"color": "green",
|
| 77 |
+
"value": null
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"color": "red",
|
| 81 |
+
"value": 80
|
| 82 |
+
}
|
| 83 |
+
]
|
| 84 |
+
},
|
| 85 |
+
"unit": "ms"
|
| 86 |
+
},
|
| 87 |
+
"overrides": []
|
| 88 |
+
},
|
| 89 |
+
"gridPos": {
|
| 90 |
+
"h": 8,
|
| 91 |
+
"w": 12,
|
| 92 |
+
"x": 0,
|
| 93 |
+
"y": 0
|
| 94 |
+
},
|
| 95 |
+
"id": 2,
|
| 96 |
+
"options": {
|
| 97 |
+
"legend": {
|
| 98 |
+
"calcs": [],
|
| 99 |
+
"displayMode": "list",
|
| 100 |
+
"placement": "bottom",
|
| 101 |
+
"showLegend": true
|
| 102 |
+
},
|
| 103 |
+
"tooltip": {
|
| 104 |
+
"mode": "single",
|
| 105 |
+
"sort": "none"
|
| 106 |
+
}
|
| 107 |
+
},
|
| 108 |
+
"targets": [
|
| 109 |
+
{
|
| 110 |
+
"datasource": {
|
| 111 |
+
"type": "prometheus",
|
| 112 |
+
"uid": "Prometheus"
|
| 113 |
+
},
|
| 114 |
+
"editorMode": "code",
|
| 115 |
+
"expr": "rate(objects_durations_ms_sum{operation=\"put\"}[$__interval])/rate(objects_durations_ms_count{operation=\"put\"}[$__interval])",
|
| 116 |
+
"legendFormat": "{{step}} ({{class_name}}/{{shard_name}})",
|
| 117 |
+
"range": true,
|
| 118 |
+
"refId": "A"
|
| 119 |
+
}
|
| 120 |
+
],
|
| 121 |
+
"title": "PUT (individual operations)",
|
| 122 |
+
"type": "timeseries"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"datasource": {
|
| 126 |
+
"type": "prometheus",
|
| 127 |
+
"uid": "Prometheus"
|
| 128 |
+
},
|
| 129 |
+
"description": "",
|
| 130 |
+
"fieldConfig": {
|
| 131 |
+
"defaults": {
|
| 132 |
+
"color": {
|
| 133 |
+
"mode": "continuous-RdYlGr"
|
| 134 |
+
},
|
| 135 |
+
"custom": {
|
| 136 |
+
"axisCenteredZero": false,
|
| 137 |
+
"axisColorMode": "text",
|
| 138 |
+
"axisLabel": "",
|
| 139 |
+
"axisPlacement": "auto",
|
| 140 |
+
"barAlignment": 0,
|
| 141 |
+
"drawStyle": "line",
|
| 142 |
+
"fillOpacity": 0,
|
| 143 |
+
"gradientMode": "none",
|
| 144 |
+
"hideFrom": {
|
| 145 |
+
"legend": false,
|
| 146 |
+
"tooltip": false,
|
| 147 |
+
"viz": false
|
| 148 |
+
},
|
| 149 |
+
"lineInterpolation": "linear",
|
| 150 |
+
"lineWidth": 1,
|
| 151 |
+
"pointSize": 5,
|
| 152 |
+
"scaleDistribution": {
|
| 153 |
+
"type": "linear"
|
| 154 |
+
},
|
| 155 |
+
"showPoints": "auto",
|
| 156 |
+
"spanNulls": false,
|
| 157 |
+
"stacking": {
|
| 158 |
+
"group": "A",
|
| 159 |
+
"mode": "none"
|
| 160 |
+
},
|
| 161 |
+
"thresholdsStyle": {
|
| 162 |
+
"mode": "off"
|
| 163 |
+
}
|
| 164 |
+
},
|
| 165 |
+
"mappings": [],
|
| 166 |
+
"thresholds": {
|
| 167 |
+
"mode": "absolute",
|
| 168 |
+
"steps": [
|
| 169 |
+
{
|
| 170 |
+
"color": "green",
|
| 171 |
+
"value": null
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"color": "red",
|
| 175 |
+
"value": 80
|
| 176 |
+
}
|
| 177 |
+
]
|
| 178 |
+
},
|
| 179 |
+
"unit": "ms"
|
| 180 |
+
},
|
| 181 |
+
"overrides": []
|
| 182 |
+
},
|
| 183 |
+
"gridPos": {
|
| 184 |
+
"h": 7,
|
| 185 |
+
"w": 12,
|
| 186 |
+
"x": 12,
|
| 187 |
+
"y": 0
|
| 188 |
+
},
|
| 189 |
+
"id": 4,
|
| 190 |
+
"maxDataPoints": 25,
|
| 191 |
+
"options": {
|
| 192 |
+
"legend": {
|
| 193 |
+
"calcs": [],
|
| 194 |
+
"displayMode": "list",
|
| 195 |
+
"placement": "bottom",
|
| 196 |
+
"showLegend": true
|
| 197 |
+
},
|
| 198 |
+
"tooltip": {
|
| 199 |
+
"mode": "single",
|
| 200 |
+
"sort": "none"
|
| 201 |
+
}
|
| 202 |
+
},
|
| 203 |
+
"pluginVersion": "9.3.6",
|
| 204 |
+
"targets": [
|
| 205 |
+
{
|
| 206 |
+
"datasource": {
|
| 207 |
+
"type": "prometheus",
|
| 208 |
+
"uid": "Prometheus"
|
| 209 |
+
},
|
| 210 |
+
"editorMode": "code",
|
| 211 |
+
"exemplar": true,
|
| 212 |
+
"expr": "rate(objects_durations_ms_sum{step=\"total\"}[$__interval]) / rate(objects_durations_ms_count{step=\"total\"}[$__interval])",
|
| 213 |
+
"format": "time_series",
|
| 214 |
+
"interval": "",
|
| 215 |
+
"legendFormat": "{{step}} ({{class_name}}/{{shard_name}})",
|
| 216 |
+
"range": true,
|
| 217 |
+
"refId": "A"
|
| 218 |
+
}
|
| 219 |
+
],
|
| 220 |
+
"title": "PUT Object (Total)",
|
| 221 |
+
"type": "timeseries"
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"datasource": {
|
| 225 |
+
"type": "prometheus",
|
| 226 |
+
"uid": "Prometheus"
|
| 227 |
+
},
|
| 228 |
+
"description": "",
|
| 229 |
+
"fieldConfig": {
|
| 230 |
+
"defaults": {
|
| 231 |
+
"color": {
|
| 232 |
+
"mode": "continuous-GrYlRd"
|
| 233 |
+
},
|
| 234 |
+
"custom": {
|
| 235 |
+
"axisCenteredZero": false,
|
| 236 |
+
"axisColorMode": "text",
|
| 237 |
+
"axisLabel": "",
|
| 238 |
+
"axisPlacement": "auto",
|
| 239 |
+
"barAlignment": 0,
|
| 240 |
+
"drawStyle": "line",
|
| 241 |
+
"fillOpacity": 0,
|
| 242 |
+
"gradientMode": "none",
|
| 243 |
+
"hideFrom": {
|
| 244 |
+
"legend": false,
|
| 245 |
+
"tooltip": false,
|
| 246 |
+
"viz": false
|
| 247 |
+
},
|
| 248 |
+
"lineInterpolation": "linear",
|
| 249 |
+
"lineWidth": 1,
|
| 250 |
+
"pointSize": 5,
|
| 251 |
+
"scaleDistribution": {
|
| 252 |
+
"type": "linear"
|
| 253 |
+
},
|
| 254 |
+
"showPoints": "auto",
|
| 255 |
+
"spanNulls": false,
|
| 256 |
+
"stacking": {
|
| 257 |
+
"group": "A",
|
| 258 |
+
"mode": "none"
|
| 259 |
+
},
|
| 260 |
+
"thresholdsStyle": {
|
| 261 |
+
"mode": "off"
|
| 262 |
+
}
|
| 263 |
+
},
|
| 264 |
+
"mappings": [],
|
| 265 |
+
"thresholds": {
|
| 266 |
+
"mode": "absolute",
|
| 267 |
+
"steps": [
|
| 268 |
+
{
|
| 269 |
+
"color": "green",
|
| 270 |
+
"value": null
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"color": "red",
|
| 274 |
+
"value": 80
|
| 275 |
+
}
|
| 276 |
+
]
|
| 277 |
+
},
|
| 278 |
+
"unit": "ms"
|
| 279 |
+
},
|
| 280 |
+
"overrides": []
|
| 281 |
+
},
|
| 282 |
+
"gridPos": {
|
| 283 |
+
"h": 8,
|
| 284 |
+
"w": 12,
|
| 285 |
+
"x": 12,
|
| 286 |
+
"y": 7
|
| 287 |
+
},
|
| 288 |
+
"id": 5,
|
| 289 |
+
"maxDataPoints": 25,
|
| 290 |
+
"options": {
|
| 291 |
+
"legend": {
|
| 292 |
+
"calcs": [],
|
| 293 |
+
"displayMode": "list",
|
| 294 |
+
"placement": "bottom",
|
| 295 |
+
"showLegend": true
|
| 296 |
+
},
|
| 297 |
+
"tooltip": {
|
| 298 |
+
"mode": "single",
|
| 299 |
+
"sort": "none"
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
"pluginVersion": "9.3.6",
|
| 303 |
+
"targets": [
|
| 304 |
+
{
|
| 305 |
+
"datasource": {
|
| 306 |
+
"type": "prometheus",
|
| 307 |
+
"uid": "Prometheus"
|
| 308 |
+
},
|
| 309 |
+
"editorMode": "code",
|
| 310 |
+
"exemplar": true,
|
| 311 |
+
"expr": "rate(objects_durations_ms_sum{step=\"upsert_object_store\"}[$__interval]) / rate(objects_durations_ms_count{step=\"upsert_object_store\"}[$__interval])",
|
| 312 |
+
"format": "time_series",
|
| 313 |
+
"interval": "",
|
| 314 |
+
"legendFormat": "{{step}} ({{class_name}}/{{shard_name}})",
|
| 315 |
+
"range": true,
|
| 316 |
+
"refId": "A"
|
| 317 |
+
}
|
| 318 |
+
],
|
| 319 |
+
"title": "PUT Object (Upsert Object)",
|
| 320 |
+
"type": "timeseries"
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"datasource": {
|
| 324 |
+
"type": "prometheus",
|
| 325 |
+
"uid": "Prometheus"
|
| 326 |
+
},
|
| 327 |
+
"fieldConfig": {
|
| 328 |
+
"defaults": {
|
| 329 |
+
"color": {
|
| 330 |
+
"mode": "palette-classic"
|
| 331 |
+
},
|
| 332 |
+
"custom": {
|
| 333 |
+
"axisCenteredZero": false,
|
| 334 |
+
"axisColorMode": "text",
|
| 335 |
+
"axisLabel": "",
|
| 336 |
+
"axisPlacement": "auto",
|
| 337 |
+
"barAlignment": 0,
|
| 338 |
+
"drawStyle": "line",
|
| 339 |
+
"fillOpacity": 0,
|
| 340 |
+
"gradientMode": "none",
|
| 341 |
+
"hideFrom": {
|
| 342 |
+
"legend": false,
|
| 343 |
+
"tooltip": false,
|
| 344 |
+
"viz": false
|
| 345 |
+
},
|
| 346 |
+
"lineInterpolation": "linear",
|
| 347 |
+
"lineWidth": 1,
|
| 348 |
+
"pointSize": 5,
|
| 349 |
+
"scaleDistribution": {
|
| 350 |
+
"type": "linear"
|
| 351 |
+
},
|
| 352 |
+
"showPoints": "auto",
|
| 353 |
+
"spanNulls": false,
|
| 354 |
+
"stacking": {
|
| 355 |
+
"group": "A",
|
| 356 |
+
"mode": "none"
|
| 357 |
+
},
|
| 358 |
+
"thresholdsStyle": {
|
| 359 |
+
"mode": "off"
|
| 360 |
+
}
|
| 361 |
+
},
|
| 362 |
+
"mappings": [],
|
| 363 |
+
"thresholds": {
|
| 364 |
+
"mode": "absolute",
|
| 365 |
+
"steps": [
|
| 366 |
+
{
|
| 367 |
+
"color": "green",
|
| 368 |
+
"value": null
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"color": "red",
|
| 372 |
+
"value": 80
|
| 373 |
+
}
|
| 374 |
+
]
|
| 375 |
+
},
|
| 376 |
+
"unit": "ms"
|
| 377 |
+
},
|
| 378 |
+
"overrides": []
|
| 379 |
+
},
|
| 380 |
+
"gridPos": {
|
| 381 |
+
"h": 8,
|
| 382 |
+
"w": 12,
|
| 383 |
+
"x": 0,
|
| 384 |
+
"y": 8
|
| 385 |
+
},
|
| 386 |
+
"id": 8,
|
| 387 |
+
"options": {
|
| 388 |
+
"legend": {
|
| 389 |
+
"calcs": [],
|
| 390 |
+
"displayMode": "list",
|
| 391 |
+
"placement": "bottom",
|
| 392 |
+
"showLegend": true
|
| 393 |
+
},
|
| 394 |
+
"tooltip": {
|
| 395 |
+
"mode": "single",
|
| 396 |
+
"sort": "none"
|
| 397 |
+
}
|
| 398 |
+
},
|
| 399 |
+
"targets": [
|
| 400 |
+
{
|
| 401 |
+
"datasource": {
|
| 402 |
+
"type": "prometheus",
|
| 403 |
+
"uid": "Prometheus"
|
| 404 |
+
},
|
| 405 |
+
"exemplar": true,
|
| 406 |
+
"expr": "rate(batch_delete_durations_ms_sum{}[$__interval])/rate(batch_delete_durations_ms_count{}[$__interval])",
|
| 407 |
+
"interval": "",
|
| 408 |
+
"legendFormat": "{{ operation }} ({{class_name}}/{{shard_name}})",
|
| 409 |
+
"refId": "A"
|
| 410 |
+
}
|
| 411 |
+
],
|
| 412 |
+
"title": "Batch Delete Durations",
|
| 413 |
+
"type": "timeseries"
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"datasource": {
|
| 417 |
+
"type": "prometheus",
|
| 418 |
+
"uid": "Prometheus"
|
| 419 |
+
},
|
| 420 |
+
"description": "",
|
| 421 |
+
"fieldConfig": {
|
| 422 |
+
"defaults": {
|
| 423 |
+
"color": {
|
| 424 |
+
"mode": "continuous-BlYlRd"
|
| 425 |
+
},
|
| 426 |
+
"custom": {
|
| 427 |
+
"axisCenteredZero": false,
|
| 428 |
+
"axisColorMode": "text",
|
| 429 |
+
"axisLabel": "",
|
| 430 |
+
"axisPlacement": "auto",
|
| 431 |
+
"barAlignment": 0,
|
| 432 |
+
"drawStyle": "line",
|
| 433 |
+
"fillOpacity": 0,
|
| 434 |
+
"gradientMode": "none",
|
| 435 |
+
"hideFrom": {
|
| 436 |
+
"legend": false,
|
| 437 |
+
"tooltip": false,
|
| 438 |
+
"viz": false
|
| 439 |
+
},
|
| 440 |
+
"lineInterpolation": "linear",
|
| 441 |
+
"lineWidth": 1,
|
| 442 |
+
"pointSize": 5,
|
| 443 |
+
"scaleDistribution": {
|
| 444 |
+
"type": "linear"
|
| 445 |
+
},
|
| 446 |
+
"showPoints": "auto",
|
| 447 |
+
"spanNulls": false,
|
| 448 |
+
"stacking": {
|
| 449 |
+
"group": "A",
|
| 450 |
+
"mode": "none"
|
| 451 |
+
},
|
| 452 |
+
"thresholdsStyle": {
|
| 453 |
+
"mode": "off"
|
| 454 |
+
}
|
| 455 |
+
},
|
| 456 |
+
"mappings": [],
|
| 457 |
+
"thresholds": {
|
| 458 |
+
"mode": "absolute",
|
| 459 |
+
"steps": [
|
| 460 |
+
{
|
| 461 |
+
"color": "green",
|
| 462 |
+
"value": null
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"color": "red",
|
| 466 |
+
"value": 80
|
| 467 |
+
}
|
| 468 |
+
]
|
| 469 |
+
},
|
| 470 |
+
"unit": "ms"
|
| 471 |
+
},
|
| 472 |
+
"overrides": []
|
| 473 |
+
},
|
| 474 |
+
"gridPos": {
|
| 475 |
+
"h": 8,
|
| 476 |
+
"w": 12,
|
| 477 |
+
"x": 12,
|
| 478 |
+
"y": 15
|
| 479 |
+
},
|
| 480 |
+
"id": 6,
|
| 481 |
+
"maxDataPoints": 25,
|
| 482 |
+
"options": {
|
| 483 |
+
"legend": {
|
| 484 |
+
"calcs": [],
|
| 485 |
+
"displayMode": "list",
|
| 486 |
+
"placement": "bottom",
|
| 487 |
+
"showLegend": true
|
| 488 |
+
},
|
| 489 |
+
"tooltip": {
|
| 490 |
+
"mode": "single",
|
| 491 |
+
"sort": "none"
|
| 492 |
+
}
|
| 493 |
+
},
|
| 494 |
+
"pluginVersion": "9.3.6",
|
| 495 |
+
"targets": [
|
| 496 |
+
{
|
| 497 |
+
"datasource": {
|
| 498 |
+
"type": "prometheus",
|
| 499 |
+
"uid": "Prometheus"
|
| 500 |
+
},
|
| 501 |
+
"editorMode": "code",
|
| 502 |
+
"exemplar": true,
|
| 503 |
+
"expr": "rate(objects_durations_ms_sum{step=\"inverted_total\"}[$__interval]) / rate(objects_durations_ms_count{step=\"inverted_total\"}[$__interval])",
|
| 504 |
+
"format": "time_series",
|
| 505 |
+
"interval": "",
|
| 506 |
+
"legendFormat": "{{step}} ({{class_name}}/{{shard_name}})",
|
| 507 |
+
"range": true,
|
| 508 |
+
"refId": "A"
|
| 509 |
+
}
|
| 510 |
+
],
|
| 511 |
+
"title": "PUT Object (Inverted Index)",
|
| 512 |
+
"type": "timeseries"
|
| 513 |
+
}
|
| 514 |
+
],
|
| 515 |
+
"refresh": "5s",
|
| 516 |
+
"schemaVersion": 37,
|
| 517 |
+
"style": "dark",
|
| 518 |
+
"tags": [],
|
| 519 |
+
"templating": {
|
| 520 |
+
"list": []
|
| 521 |
+
},
|
| 522 |
+
"time": {
|
| 523 |
+
"from": "now-15m",
|
| 524 |
+
"to": "now"
|
| 525 |
+
},
|
| 526 |
+
"timepicker": {},
|
| 527 |
+
"timezone": "",
|
| 528 |
+
"title": "Object Operations",
|
| 529 |
+
"uid": "X48CZzj7k",
|
| 530 |
+
"version": 1,
|
| 531 |
+
"weekStart": ""
|
| 532 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/openai_vectoriser_metrics.json
ADDED
|
@@ -0,0 +1,998 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"type": "dashboard"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
"description": "New stats, mostly for openai, regarding the vectoriser",
|
| 19 |
+
"editable": true,
|
| 20 |
+
"fiscalYearStartMonth": 0,
|
| 21 |
+
"graphTooltip": 0,
|
| 22 |
+
"id": 1,
|
| 23 |
+
"links": [],
|
| 24 |
+
"panels": [
|
| 25 |
+
{
|
| 26 |
+
"datasource": {
|
| 27 |
+
"type": "prometheus",
|
| 28 |
+
"uid": "aeiuom414581sa"
|
| 29 |
+
},
|
| 30 |
+
"fieldConfig": {
|
| 31 |
+
"defaults": {
|
| 32 |
+
"custom": {
|
| 33 |
+
"hideFrom": {
|
| 34 |
+
"legend": false,
|
| 35 |
+
"tooltip": false,
|
| 36 |
+
"viz": false
|
| 37 |
+
},
|
| 38 |
+
"scaleDistribution": {
|
| 39 |
+
"type": "linear"
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
},
|
| 43 |
+
"overrides": []
|
| 44 |
+
},
|
| 45 |
+
"gridPos": {
|
| 46 |
+
"h": 12,
|
| 47 |
+
"w": 12,
|
| 48 |
+
"x": 0,
|
| 49 |
+
"y": 0
|
| 50 |
+
},
|
| 51 |
+
"id": 10,
|
| 52 |
+
"options": {
|
| 53 |
+
"calculate": false,
|
| 54 |
+
"cellGap": 1,
|
| 55 |
+
"color": {
|
| 56 |
+
"exponent": 0.5,
|
| 57 |
+
"fill": "dark-orange",
|
| 58 |
+
"mode": "scheme",
|
| 59 |
+
"reverse": false,
|
| 60 |
+
"scale": "exponential",
|
| 61 |
+
"scheme": "Oranges",
|
| 62 |
+
"steps": 64
|
| 63 |
+
},
|
| 64 |
+
"exemplars": {
|
| 65 |
+
"color": "rgba(255,0,255,0.7)"
|
| 66 |
+
},
|
| 67 |
+
"filterValues": {
|
| 68 |
+
"le": 1e-9
|
| 69 |
+
},
|
| 70 |
+
"legend": {
|
| 71 |
+
"show": true
|
| 72 |
+
},
|
| 73 |
+
"rowsFrame": {
|
| 74 |
+
"layout": "unknown"
|
| 75 |
+
},
|
| 76 |
+
"tooltip": {
|
| 77 |
+
"mode": "single",
|
| 78 |
+
"showColorScale": false,
|
| 79 |
+
"yHistogram": false
|
| 80 |
+
},
|
| 81 |
+
"yAxis": {
|
| 82 |
+
"axisPlacement": "left",
|
| 83 |
+
"reverse": false,
|
| 84 |
+
"unit": "s"
|
| 85 |
+
}
|
| 86 |
+
},
|
| 87 |
+
"pluginVersion": "11.6.0-pre",
|
| 88 |
+
"targets": [
|
| 89 |
+
{
|
| 90 |
+
"disableTextWrap": false,
|
| 91 |
+
"editorMode": "builder",
|
| 92 |
+
"expr": "weaviate_module_request_duration_seconds_bucket",
|
| 93 |
+
"fullMetaSearch": false,
|
| 94 |
+
"includeNullMetadata": false,
|
| 95 |
+
"legendFormat": "{{le}}",
|
| 96 |
+
"range": true,
|
| 97 |
+
"refId": "A",
|
| 98 |
+
"useBackend": false
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
"title": "External Request duration",
|
| 102 |
+
"type": "heatmap"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"datasource": {
|
| 106 |
+
"type": "prometheus",
|
| 107 |
+
"uid": "aeiuom414581sa"
|
| 108 |
+
},
|
| 109 |
+
"fieldConfig": {
|
| 110 |
+
"defaults": {
|
| 111 |
+
"color": {
|
| 112 |
+
"mode": "palette-classic"
|
| 113 |
+
},
|
| 114 |
+
"custom": {
|
| 115 |
+
"hideFrom": {
|
| 116 |
+
"legend": false,
|
| 117 |
+
"tooltip": false,
|
| 118 |
+
"viz": false
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
"mappings": []
|
| 122 |
+
},
|
| 123 |
+
"overrides": []
|
| 124 |
+
},
|
| 125 |
+
"gridPos": {
|
| 126 |
+
"h": 6,
|
| 127 |
+
"w": 12,
|
| 128 |
+
"x": 12,
|
| 129 |
+
"y": 0
|
| 130 |
+
},
|
| 131 |
+
"id": 3,
|
| 132 |
+
"options": {
|
| 133 |
+
"legend": {
|
| 134 |
+
"displayMode": "list",
|
| 135 |
+
"placement": "bottom",
|
| 136 |
+
"showLegend": true
|
| 137 |
+
},
|
| 138 |
+
"pieType": "pie",
|
| 139 |
+
"reduceOptions": {
|
| 140 |
+
"calcs": [
|
| 141 |
+
"lastNotNull"
|
| 142 |
+
],
|
| 143 |
+
"fields": "",
|
| 144 |
+
"values": false
|
| 145 |
+
},
|
| 146 |
+
"tooltip": {
|
| 147 |
+
"hideZeros": false,
|
| 148 |
+
"mode": "single",
|
| 149 |
+
"sort": "none"
|
| 150 |
+
}
|
| 151 |
+
},
|
| 152 |
+
"pluginVersion": "11.6.0-pre",
|
| 153 |
+
"targets": [
|
| 154 |
+
{
|
| 155 |
+
"disableTextWrap": false,
|
| 156 |
+
"editorMode": "builder",
|
| 157 |
+
"expr": "rate(weaviate_module_response_status_total[$__rate_interval])",
|
| 158 |
+
"fullMetaSearch": false,
|
| 159 |
+
"includeNullMetadata": true,
|
| 160 |
+
"legendFormat": "{{status}}",
|
| 161 |
+
"range": true,
|
| 162 |
+
"refId": "A",
|
| 163 |
+
"useBackend": false
|
| 164 |
+
}
|
| 165 |
+
],
|
| 166 |
+
"title": "Response status",
|
| 167 |
+
"type": "piechart"
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"datasource": {
|
| 171 |
+
"type": "prometheus",
|
| 172 |
+
"uid": "aeiuom414581sa"
|
| 173 |
+
},
|
| 174 |
+
"fieldConfig": {
|
| 175 |
+
"defaults": {
|
| 176 |
+
"color": {
|
| 177 |
+
"mode": "palette-classic"
|
| 178 |
+
},
|
| 179 |
+
"custom": {
|
| 180 |
+
"axisBorderShow": false,
|
| 181 |
+
"axisCenteredZero": false,
|
| 182 |
+
"axisColorMode": "text",
|
| 183 |
+
"axisLabel": "",
|
| 184 |
+
"axisPlacement": "auto",
|
| 185 |
+
"barAlignment": 0,
|
| 186 |
+
"barWidthFactor": 0.6,
|
| 187 |
+
"drawStyle": "line",
|
| 188 |
+
"fillOpacity": 0,
|
| 189 |
+
"gradientMode": "none",
|
| 190 |
+
"hideFrom": {
|
| 191 |
+
"legend": false,
|
| 192 |
+
"tooltip": false,
|
| 193 |
+
"viz": false
|
| 194 |
+
},
|
| 195 |
+
"insertNulls": false,
|
| 196 |
+
"lineInterpolation": "linear",
|
| 197 |
+
"lineWidth": 1,
|
| 198 |
+
"pointSize": 5,
|
| 199 |
+
"scaleDistribution": {
|
| 200 |
+
"type": "linear"
|
| 201 |
+
},
|
| 202 |
+
"showPoints": "auto",
|
| 203 |
+
"spanNulls": false,
|
| 204 |
+
"stacking": {
|
| 205 |
+
"group": "A",
|
| 206 |
+
"mode": "none"
|
| 207 |
+
},
|
| 208 |
+
"thresholdsStyle": {
|
| 209 |
+
"mode": "off"
|
| 210 |
+
}
|
| 211 |
+
},
|
| 212 |
+
"mappings": [],
|
| 213 |
+
"thresholds": {
|
| 214 |
+
"mode": "absolute",
|
| 215 |
+
"steps": [
|
| 216 |
+
{
|
| 217 |
+
"color": "green"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"color": "red",
|
| 221 |
+
"value": 80
|
| 222 |
+
}
|
| 223 |
+
]
|
| 224 |
+
}
|
| 225 |
+
},
|
| 226 |
+
"overrides": []
|
| 227 |
+
},
|
| 228 |
+
"gridPos": {
|
| 229 |
+
"h": 5,
|
| 230 |
+
"w": 12,
|
| 231 |
+
"x": 12,
|
| 232 |
+
"y": 6
|
| 233 |
+
},
|
| 234 |
+
"id": 2,
|
| 235 |
+
"options": {
|
| 236 |
+
"legend": {
|
| 237 |
+
"calcs": [],
|
| 238 |
+
"displayMode": "list",
|
| 239 |
+
"placement": "bottom",
|
| 240 |
+
"showLegend": true
|
| 241 |
+
},
|
| 242 |
+
"tooltip": {
|
| 243 |
+
"hideZeros": false,
|
| 244 |
+
"mode": "single",
|
| 245 |
+
"sort": "none"
|
| 246 |
+
}
|
| 247 |
+
},
|
| 248 |
+
"pluginVersion": "11.6.0-pre",
|
| 249 |
+
"targets": [
|
| 250 |
+
{
|
| 251 |
+
"datasource": {
|
| 252 |
+
"type": "prometheus",
|
| 253 |
+
"uid": "aeiuom414581sa"
|
| 254 |
+
},
|
| 255 |
+
"disableTextWrap": false,
|
| 256 |
+
"editorMode": "builder",
|
| 257 |
+
"expr": "changes(weaviate_module_call_error_total[$__interval])",
|
| 258 |
+
"fullMetaSearch": false,
|
| 259 |
+
"hide": false,
|
| 260 |
+
"includeNullMetadata": true,
|
| 261 |
+
"instant": false,
|
| 262 |
+
"legendFormat": "{{module}}, {{status_code}}",
|
| 263 |
+
"range": true,
|
| 264 |
+
"refId": "C",
|
| 265 |
+
"useBackend": false
|
| 266 |
+
}
|
| 267 |
+
],
|
| 268 |
+
"title": "Single error rate",
|
| 269 |
+
"type": "timeseries"
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"datasource": {
|
| 273 |
+
"type": "prometheus",
|
| 274 |
+
"uid": "aeiuom414581sa"
|
| 275 |
+
},
|
| 276 |
+
"fieldConfig": {
|
| 277 |
+
"defaults": {
|
| 278 |
+
"color": {
|
| 279 |
+
"fixedColor": "#FADE2A",
|
| 280 |
+
"mode": "continuous-YlBl"
|
| 281 |
+
},
|
| 282 |
+
"decimals": 0,
|
| 283 |
+
"mappings": [],
|
| 284 |
+
"thresholds": {
|
| 285 |
+
"mode": "absolute",
|
| 286 |
+
"steps": [
|
| 287 |
+
{
|
| 288 |
+
"color": "green"
|
| 289 |
+
}
|
| 290 |
+
]
|
| 291 |
+
}
|
| 292 |
+
},
|
| 293 |
+
"overrides": []
|
| 294 |
+
},
|
| 295 |
+
"gridPos": {
|
| 296 |
+
"h": 11,
|
| 297 |
+
"w": 12,
|
| 298 |
+
"x": 12,
|
| 299 |
+
"y": 11
|
| 300 |
+
},
|
| 301 |
+
"id": 6,
|
| 302 |
+
"options": {
|
| 303 |
+
"displayMode": "lcd",
|
| 304 |
+
"legend": {
|
| 305 |
+
"calcs": [],
|
| 306 |
+
"displayMode": "list",
|
| 307 |
+
"placement": "bottom",
|
| 308 |
+
"showLegend": true
|
| 309 |
+
},
|
| 310 |
+
"maxVizHeight": 300,
|
| 311 |
+
"minVizHeight": 16,
|
| 312 |
+
"minVizWidth": 8,
|
| 313 |
+
"namePlacement": "auto",
|
| 314 |
+
"orientation": "horizontal",
|
| 315 |
+
"reduceOptions": {
|
| 316 |
+
"calcs": [
|
| 317 |
+
"lastNotNull"
|
| 318 |
+
],
|
| 319 |
+
"fields": "",
|
| 320 |
+
"values": false
|
| 321 |
+
},
|
| 322 |
+
"showUnfilled": true,
|
| 323 |
+
"sizing": "auto",
|
| 324 |
+
"text": {
|
| 325 |
+
"valueSize": 1
|
| 326 |
+
},
|
| 327 |
+
"valueMode": "color"
|
| 328 |
+
},
|
| 329 |
+
"pluginVersion": "11.6.0-pre",
|
| 330 |
+
"targets": [
|
| 331 |
+
{
|
| 332 |
+
"datasource": {
|
| 333 |
+
"type": "prometheus",
|
| 334 |
+
"uid": "aeiuom414581sa"
|
| 335 |
+
},
|
| 336 |
+
"disableTextWrap": false,
|
| 337 |
+
"editorMode": "builder",
|
| 338 |
+
"expr": "weaviate_module_request_duration_seconds_bucket",
|
| 339 |
+
"format": "heatmap",
|
| 340 |
+
"fullMetaSearch": false,
|
| 341 |
+
"hide": false,
|
| 342 |
+
"includeNullMetadata": true,
|
| 343 |
+
"instant": false,
|
| 344 |
+
"legendFormat": "{{le}}",
|
| 345 |
+
"range": true,
|
| 346 |
+
"refId": "A",
|
| 347 |
+
"useBackend": false
|
| 348 |
+
}
|
| 349 |
+
],
|
| 350 |
+
"title": "Module External Request Duration",
|
| 351 |
+
"type": "bargauge"
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"datasource": {
|
| 355 |
+
"type": "prometheus",
|
| 356 |
+
"uid": "aeiuom414581sa"
|
| 357 |
+
},
|
| 358 |
+
"fieldConfig": {
|
| 359 |
+
"defaults": {
|
| 360 |
+
"custom": {
|
| 361 |
+
"hideFrom": {
|
| 362 |
+
"legend": false,
|
| 363 |
+
"tooltip": false,
|
| 364 |
+
"viz": false
|
| 365 |
+
},
|
| 366 |
+
"scaleDistribution": {
|
| 367 |
+
"type": "linear"
|
| 368 |
+
}
|
| 369 |
+
}
|
| 370 |
+
},
|
| 371 |
+
"overrides": []
|
| 372 |
+
},
|
| 373 |
+
"gridPos": {
|
| 374 |
+
"h": 8,
|
| 375 |
+
"w": 12,
|
| 376 |
+
"x": 0,
|
| 377 |
+
"y": 12
|
| 378 |
+
},
|
| 379 |
+
"id": 8,
|
| 380 |
+
"options": {
|
| 381 |
+
"calculate": false,
|
| 382 |
+
"calculation": {
|
| 383 |
+
"yBuckets": {
|
| 384 |
+
"mode": "count",
|
| 385 |
+
"value": ""
|
| 386 |
+
}
|
| 387 |
+
},
|
| 388 |
+
"cellGap": 0,
|
| 389 |
+
"color": {
|
| 390 |
+
"exponent": 0.5,
|
| 391 |
+
"fill": "dark-orange",
|
| 392 |
+
"mode": "scheme",
|
| 393 |
+
"reverse": false,
|
| 394 |
+
"scale": "exponential",
|
| 395 |
+
"scheme": "Cubehelix",
|
| 396 |
+
"steps": 128
|
| 397 |
+
},
|
| 398 |
+
"exemplars": {
|
| 399 |
+
"color": "rgba(255,0,255,0.7)"
|
| 400 |
+
},
|
| 401 |
+
"filterValues": {
|
| 402 |
+
"le": 1e-9
|
| 403 |
+
},
|
| 404 |
+
"legend": {
|
| 405 |
+
"show": true
|
| 406 |
+
},
|
| 407 |
+
"rowsFrame": {
|
| 408 |
+
"layout": "unknown"
|
| 409 |
+
},
|
| 410 |
+
"tooltip": {
|
| 411 |
+
"mode": "single",
|
| 412 |
+
"showColorScale": false,
|
| 413 |
+
"yHistogram": false
|
| 414 |
+
},
|
| 415 |
+
"yAxis": {
|
| 416 |
+
"axisPlacement": "left",
|
| 417 |
+
"reverse": false,
|
| 418 |
+
"unit": "bytes"
|
| 419 |
+
}
|
| 420 |
+
},
|
| 421 |
+
"pluginVersion": "11.6.0-pre",
|
| 422 |
+
"targets": [
|
| 423 |
+
{
|
| 424 |
+
"datasource": {
|
| 425 |
+
"type": "prometheus",
|
| 426 |
+
"uid": "aeiuom414581sa"
|
| 427 |
+
},
|
| 428 |
+
"disableTextWrap": false,
|
| 429 |
+
"editorMode": "builder",
|
| 430 |
+
"expr": "weaviate_module_request_size_bytes_bucket",
|
| 431 |
+
"fullMetaSearch": false,
|
| 432 |
+
"hide": false,
|
| 433 |
+
"includeNullMetadata": true,
|
| 434 |
+
"instant": false,
|
| 435 |
+
"legendFormat": "{{le}}",
|
| 436 |
+
"range": true,
|
| 437 |
+
"refId": "B",
|
| 438 |
+
"useBackend": false
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"datasource": {
|
| 442 |
+
"type": "prometheus",
|
| 443 |
+
"uid": "aeiuom414581sa"
|
| 444 |
+
},
|
| 445 |
+
"disableTextWrap": false,
|
| 446 |
+
"editorMode": "builder",
|
| 447 |
+
"expr": "weaviate_module_response_size_bytes_bucket",
|
| 448 |
+
"fullMetaSearch": false,
|
| 449 |
+
"hide": false,
|
| 450 |
+
"includeNullMetadata": true,
|
| 451 |
+
"instant": false,
|
| 452 |
+
"legendFormat": "{{le}}",
|
| 453 |
+
"range": true,
|
| 454 |
+
"refId": "F",
|
| 455 |
+
"useBackend": false
|
| 456 |
+
}
|
| 457 |
+
],
|
| 458 |
+
"title": "Module External Traffic Size",
|
| 459 |
+
"type": "heatmap"
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"datasource": {
|
| 463 |
+
"type": "prometheus",
|
| 464 |
+
"uid": "aeiuom414581sa"
|
| 465 |
+
},
|
| 466 |
+
"fieldConfig": {
|
| 467 |
+
"defaults": {
|
| 468 |
+
"custom": {
|
| 469 |
+
"hideFrom": {
|
| 470 |
+
"legend": false,
|
| 471 |
+
"tooltip": false,
|
| 472 |
+
"viz": false
|
| 473 |
+
},
|
| 474 |
+
"scaleDistribution": {
|
| 475 |
+
"type": "linear"
|
| 476 |
+
}
|
| 477 |
+
}
|
| 478 |
+
},
|
| 479 |
+
"overrides": []
|
| 480 |
+
},
|
| 481 |
+
"gridPos": {
|
| 482 |
+
"h": 8,
|
| 483 |
+
"w": 12,
|
| 484 |
+
"x": 0,
|
| 485 |
+
"y": 20
|
| 486 |
+
},
|
| 487 |
+
"id": 7,
|
| 488 |
+
"options": {
|
| 489 |
+
"calculate": false,
|
| 490 |
+
"cellGap": 1,
|
| 491 |
+
"color": {
|
| 492 |
+
"exponent": 0.5,
|
| 493 |
+
"fill": "dark-orange",
|
| 494 |
+
"mode": "scheme",
|
| 495 |
+
"reverse": false,
|
| 496 |
+
"scale": "exponential",
|
| 497 |
+
"scheme": "Rainbow",
|
| 498 |
+
"steps": 128
|
| 499 |
+
},
|
| 500 |
+
"exemplars": {
|
| 501 |
+
"color": "rgba(255,0,255,0.7)"
|
| 502 |
+
},
|
| 503 |
+
"filterValues": {
|
| 504 |
+
"le": 1e-9
|
| 505 |
+
},
|
| 506 |
+
"legend": {
|
| 507 |
+
"show": true
|
| 508 |
+
},
|
| 509 |
+
"rowsFrame": {
|
| 510 |
+
"layout": "auto"
|
| 511 |
+
},
|
| 512 |
+
"tooltip": {
|
| 513 |
+
"mode": "single",
|
| 514 |
+
"showColorScale": false,
|
| 515 |
+
"yHistogram": false
|
| 516 |
+
},
|
| 517 |
+
"yAxis": {
|
| 518 |
+
"axisPlacement": "left",
|
| 519 |
+
"reverse": false,
|
| 520 |
+
"unit": "bytes"
|
| 521 |
+
}
|
| 522 |
+
},
|
| 523 |
+
"pluginVersion": "11.6.0-pre",
|
| 524 |
+
"targets": [
|
| 525 |
+
{
|
| 526 |
+
"datasource": {
|
| 527 |
+
"type": "prometheus",
|
| 528 |
+
"uid": "aeiuom414581sa"
|
| 529 |
+
},
|
| 530 |
+
"disableTextWrap": false,
|
| 531 |
+
"editorMode": "builder",
|
| 532 |
+
"exemplar": false,
|
| 533 |
+
"expr": "weaviate_module_requests_per_batch_bucket",
|
| 534 |
+
"format": "time_series",
|
| 535 |
+
"fullMetaSearch": false,
|
| 536 |
+
"hide": false,
|
| 537 |
+
"includeNullMetadata": true,
|
| 538 |
+
"instant": false,
|
| 539 |
+
"legendFormat": "{{le}}",
|
| 540 |
+
"range": true,
|
| 541 |
+
"refId": "B",
|
| 542 |
+
"useBackend": false
|
| 543 |
+
}
|
| 544 |
+
],
|
| 545 |
+
"title": "Module Batch Size",
|
| 546 |
+
"type": "heatmap"
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"datasource": {
|
| 550 |
+
"type": "prometheus",
|
| 551 |
+
"uid": "aeiuom414581sa"
|
| 552 |
+
},
|
| 553 |
+
"fieldConfig": {
|
| 554 |
+
"defaults": {
|
| 555 |
+
"color": {
|
| 556 |
+
"mode": "palette-classic"
|
| 557 |
+
},
|
| 558 |
+
"custom": {
|
| 559 |
+
"axisBorderShow": false,
|
| 560 |
+
"axisCenteredZero": false,
|
| 561 |
+
"axisColorMode": "text",
|
| 562 |
+
"axisLabel": "",
|
| 563 |
+
"axisPlacement": "auto",
|
| 564 |
+
"barAlignment": 0,
|
| 565 |
+
"barWidthFactor": 0.6,
|
| 566 |
+
"drawStyle": "line",
|
| 567 |
+
"fillOpacity": 0,
|
| 568 |
+
"gradientMode": "none",
|
| 569 |
+
"hideFrom": {
|
| 570 |
+
"legend": false,
|
| 571 |
+
"tooltip": false,
|
| 572 |
+
"viz": false
|
| 573 |
+
},
|
| 574 |
+
"insertNulls": false,
|
| 575 |
+
"lineInterpolation": "linear",
|
| 576 |
+
"lineWidth": 1,
|
| 577 |
+
"pointSize": 5,
|
| 578 |
+
"scaleDistribution": {
|
| 579 |
+
"type": "linear"
|
| 580 |
+
},
|
| 581 |
+
"showPoints": "auto",
|
| 582 |
+
"spanNulls": false,
|
| 583 |
+
"stacking": {
|
| 584 |
+
"group": "A",
|
| 585 |
+
"mode": "none"
|
| 586 |
+
},
|
| 587 |
+
"thresholdsStyle": {
|
| 588 |
+
"mode": "off"
|
| 589 |
+
}
|
| 590 |
+
},
|
| 591 |
+
"mappings": [],
|
| 592 |
+
"thresholds": {
|
| 593 |
+
"mode": "absolute",
|
| 594 |
+
"steps": [
|
| 595 |
+
{
|
| 596 |
+
"color": "green"
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"color": "red",
|
| 600 |
+
"value": 80
|
| 601 |
+
}
|
| 602 |
+
]
|
| 603 |
+
}
|
| 604 |
+
},
|
| 605 |
+
"overrides": []
|
| 606 |
+
},
|
| 607 |
+
"gridPos": {
|
| 608 |
+
"h": 8,
|
| 609 |
+
"w": 12,
|
| 610 |
+
"x": 12,
|
| 611 |
+
"y": 22
|
| 612 |
+
},
|
| 613 |
+
"id": 1,
|
| 614 |
+
"options": {
|
| 615 |
+
"legend": {
|
| 616 |
+
"calcs": [],
|
| 617 |
+
"displayMode": "list",
|
| 618 |
+
"placement": "bottom",
|
| 619 |
+
"showLegend": true
|
| 620 |
+
},
|
| 621 |
+
"tooltip": {
|
| 622 |
+
"hideZeros": false,
|
| 623 |
+
"mode": "single",
|
| 624 |
+
"sort": "none"
|
| 625 |
+
}
|
| 626 |
+
},
|
| 627 |
+
"pluginVersion": "11.6.0-pre",
|
| 628 |
+
"targets": [
|
| 629 |
+
{
|
| 630 |
+
"datasource": {
|
| 631 |
+
"type": "prometheus",
|
| 632 |
+
"uid": "aeiuom414581sa"
|
| 633 |
+
},
|
| 634 |
+
"disableTextWrap": false,
|
| 635 |
+
"editorMode": "builder",
|
| 636 |
+
"expr": "weaviate_module_requests_total",
|
| 637 |
+
"fullMetaSearch": false,
|
| 638 |
+
"includeNullMetadata": true,
|
| 639 |
+
"legendFormat": "{{__name__}}, {{api}}",
|
| 640 |
+
"range": true,
|
| 641 |
+
"refId": "A",
|
| 642 |
+
"useBackend": false
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"datasource": {
|
| 646 |
+
"type": "prometheus",
|
| 647 |
+
"uid": "aeiuom414581sa"
|
| 648 |
+
},
|
| 649 |
+
"disableTextWrap": false,
|
| 650 |
+
"editorMode": "builder",
|
| 651 |
+
"expr": "weaviate_vectorizer_request_single_count",
|
| 652 |
+
"fullMetaSearch": false,
|
| 653 |
+
"hide": false,
|
| 654 |
+
"includeNullMetadata": true,
|
| 655 |
+
"instant": false,
|
| 656 |
+
"legendFormat": "{{__name__}}, {{api}}",
|
| 657 |
+
"range": true,
|
| 658 |
+
"refId": "B",
|
| 659 |
+
"useBackend": false
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"datasource": {
|
| 663 |
+
"type": "prometheus",
|
| 664 |
+
"uid": "aeiuom414581sa"
|
| 665 |
+
},
|
| 666 |
+
"disableTextWrap": false,
|
| 667 |
+
"editorMode": "builder",
|
| 668 |
+
"expr": "weaviate_vectorizer_request_batch_count",
|
| 669 |
+
"fullMetaSearch": false,
|
| 670 |
+
"hide": false,
|
| 671 |
+
"includeNullMetadata": true,
|
| 672 |
+
"instant": false,
|
| 673 |
+
"legendFormat": "{{__name__}}, {{api}}",
|
| 674 |
+
"range": true,
|
| 675 |
+
"refId": "C",
|
| 676 |
+
"useBackend": false
|
| 677 |
+
}
|
| 678 |
+
],
|
| 679 |
+
"title": "Requests",
|
| 680 |
+
"type": "timeseries"
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"datasource": {
|
| 684 |
+
"type": "prometheus",
|
| 685 |
+
"uid": "aeiuom414581sa"
|
| 686 |
+
},
|
| 687 |
+
"fieldConfig": {
|
| 688 |
+
"defaults": {
|
| 689 |
+
"color": {
|
| 690 |
+
"mode": "palette-classic"
|
| 691 |
+
},
|
| 692 |
+
"custom": {
|
| 693 |
+
"axisBorderShow": false,
|
| 694 |
+
"axisCenteredZero": false,
|
| 695 |
+
"axisColorMode": "text",
|
| 696 |
+
"axisLabel": "",
|
| 697 |
+
"axisPlacement": "auto",
|
| 698 |
+
"barAlignment": 0,
|
| 699 |
+
"barWidthFactor": 0.6,
|
| 700 |
+
"drawStyle": "line",
|
| 701 |
+
"fillOpacity": 0,
|
| 702 |
+
"gradientMode": "none",
|
| 703 |
+
"hideFrom": {
|
| 704 |
+
"legend": false,
|
| 705 |
+
"tooltip": false,
|
| 706 |
+
"viz": false
|
| 707 |
+
},
|
| 708 |
+
"insertNulls": false,
|
| 709 |
+
"lineInterpolation": "linear",
|
| 710 |
+
"lineWidth": 1,
|
| 711 |
+
"pointSize": 5,
|
| 712 |
+
"scaleDistribution": {
|
| 713 |
+
"type": "linear"
|
| 714 |
+
},
|
| 715 |
+
"showPoints": "auto",
|
| 716 |
+
"spanNulls": false,
|
| 717 |
+
"stacking": {
|
| 718 |
+
"group": "A",
|
| 719 |
+
"mode": "none"
|
| 720 |
+
},
|
| 721 |
+
"thresholdsStyle": {
|
| 722 |
+
"mode": "off"
|
| 723 |
+
}
|
| 724 |
+
},
|
| 725 |
+
"mappings": [],
|
| 726 |
+
"thresholds": {
|
| 727 |
+
"mode": "absolute",
|
| 728 |
+
"steps": [
|
| 729 |
+
{
|
| 730 |
+
"color": "green"
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"color": "red",
|
| 734 |
+
"value": 80
|
| 735 |
+
}
|
| 736 |
+
]
|
| 737 |
+
}
|
| 738 |
+
},
|
| 739 |
+
"overrides": []
|
| 740 |
+
},
|
| 741 |
+
"gridPos": {
|
| 742 |
+
"h": 8,
|
| 743 |
+
"w": 12,
|
| 744 |
+
"x": 12,
|
| 745 |
+
"y": 30
|
| 746 |
+
},
|
| 747 |
+
"id": 12,
|
| 748 |
+
"options": {
|
| 749 |
+
"legend": {
|
| 750 |
+
"calcs": [],
|
| 751 |
+
"displayMode": "list",
|
| 752 |
+
"placement": "bottom",
|
| 753 |
+
"showLegend": true
|
| 754 |
+
},
|
| 755 |
+
"tooltip": {
|
| 756 |
+
"hideZeros": false,
|
| 757 |
+
"mode": "single",
|
| 758 |
+
"sort": "none"
|
| 759 |
+
}
|
| 760 |
+
},
|
| 761 |
+
"pluginVersion": "11.6.0-pre",
|
| 762 |
+
"targets": [
|
| 763 |
+
{
|
| 764 |
+
"disableTextWrap": false,
|
| 765 |
+
"editorMode": "builder",
|
| 766 |
+
"exemplar": false,
|
| 767 |
+
"expr": "weaviate_batch_vectorize_error_total",
|
| 768 |
+
"format": "time_series",
|
| 769 |
+
"fullMetaSearch": false,
|
| 770 |
+
"includeNullMetadata": true,
|
| 771 |
+
"instant": false,
|
| 772 |
+
"legendFormat": "Errors",
|
| 773 |
+
"range": true,
|
| 774 |
+
"refId": "A",
|
| 775 |
+
"useBackend": false
|
| 776 |
+
}
|
| 777 |
+
],
|
| 778 |
+
"title": "Module batch errors",
|
| 779 |
+
"type": "timeseries"
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"datasource": {
|
| 783 |
+
"type": "prometheus",
|
| 784 |
+
"uid": "aeiuom414581sa"
|
| 785 |
+
},
|
| 786 |
+
"fieldConfig": {
|
| 787 |
+
"defaults": {
|
| 788 |
+
"color": {
|
| 789 |
+
"mode": "palette-classic"
|
| 790 |
+
},
|
| 791 |
+
"custom": {
|
| 792 |
+
"hideFrom": {
|
| 793 |
+
"legend": false,
|
| 794 |
+
"tooltip": false,
|
| 795 |
+
"viz": false
|
| 796 |
+
}
|
| 797 |
+
},
|
| 798 |
+
"mappings": [],
|
| 799 |
+
"unit": "none"
|
| 800 |
+
},
|
| 801 |
+
"overrides": []
|
| 802 |
+
},
|
| 803 |
+
"gridPos": {
|
| 804 |
+
"h": 9,
|
| 805 |
+
"w": 24,
|
| 806 |
+
"x": 0,
|
| 807 |
+
"y": 38
|
| 808 |
+
},
|
| 809 |
+
"id": 11,
|
| 810 |
+
"options": {
|
| 811 |
+
"displayLabels": [
|
| 812 |
+
"name"
|
| 813 |
+
],
|
| 814 |
+
"legend": {
|
| 815 |
+
"displayMode": "list",
|
| 816 |
+
"placement": "bottom",
|
| 817 |
+
"showLegend": true
|
| 818 |
+
},
|
| 819 |
+
"pieType": "donut",
|
| 820 |
+
"reduceOptions": {
|
| 821 |
+
"calcs": [
|
| 822 |
+
"lastNotNull"
|
| 823 |
+
],
|
| 824 |
+
"fields": "",
|
| 825 |
+
"values": false
|
| 826 |
+
},
|
| 827 |
+
"tooltip": {
|
| 828 |
+
"hideZeros": false,
|
| 829 |
+
"mode": "single",
|
| 830 |
+
"sort": "none"
|
| 831 |
+
}
|
| 832 |
+
},
|
| 833 |
+
"pluginVersion": "11.6.0-pre",
|
| 834 |
+
"repeat": "inout",
|
| 835 |
+
"repeatDirection": "h",
|
| 836 |
+
"targets": [
|
| 837 |
+
{
|
| 838 |
+
"datasource": {
|
| 839 |
+
"type": "prometheus",
|
| 840 |
+
"uid": "aeiuom414581sa"
|
| 841 |
+
},
|
| 842 |
+
"disableTextWrap": false,
|
| 843 |
+
"editorMode": "builder",
|
| 844 |
+
"expr": "weaviate_vectorizer_request_tokens_bucket{inout=\"output\"}",
|
| 845 |
+
"fullMetaSearch": false,
|
| 846 |
+
"hide": false,
|
| 847 |
+
"includeNullMetadata": true,
|
| 848 |
+
"instant": false,
|
| 849 |
+
"legendFormat": "{{le}}",
|
| 850 |
+
"range": true,
|
| 851 |
+
"refId": "B",
|
| 852 |
+
"useBackend": false
|
| 853 |
+
}
|
| 854 |
+
],
|
| 855 |
+
"title": "Tokens per response",
|
| 856 |
+
"type": "piechart"
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"datasource": {
|
| 860 |
+
"type": "prometheus",
|
| 861 |
+
"uid": "aeiuom414581sa"
|
| 862 |
+
},
|
| 863 |
+
"fieldConfig": {
|
| 864 |
+
"defaults": {
|
| 865 |
+
"color": {
|
| 866 |
+
"mode": "palette-classic"
|
| 867 |
+
},
|
| 868 |
+
"custom": {
|
| 869 |
+
"hideFrom": {
|
| 870 |
+
"legend": false,
|
| 871 |
+
"tooltip": false,
|
| 872 |
+
"viz": false
|
| 873 |
+
}
|
| 874 |
+
},
|
| 875 |
+
"mappings": []
|
| 876 |
+
},
|
| 877 |
+
"overrides": [
|
| 878 |
+
{
|
| 879 |
+
"__systemRef": "hideSeriesFrom",
|
| 880 |
+
"matcher": {
|
| 881 |
+
"id": "byNames",
|
| 882 |
+
"options": {
|
| 883 |
+
"mode": "exclude",
|
| 884 |
+
"names": [
|
| 885 |
+
"1.0",
|
| 886 |
+
"10.0",
|
| 887 |
+
"100.0",
|
| 888 |
+
"1000.0",
|
| 889 |
+
"10000.0",
|
| 890 |
+
"100000.0",
|
| 891 |
+
"50.0",
|
| 892 |
+
"500.0",
|
| 893 |
+
"5000.0"
|
| 894 |
+
],
|
| 895 |
+
"prefix": "All except:",
|
| 896 |
+
"readOnly": true
|
| 897 |
+
}
|
| 898 |
+
},
|
| 899 |
+
"properties": [
|
| 900 |
+
{
|
| 901 |
+
"id": "custom.hideFrom",
|
| 902 |
+
"value": {
|
| 903 |
+
"legend": true,
|
| 904 |
+
"tooltip": true,
|
| 905 |
+
"viz": true
|
| 906 |
+
}
|
| 907 |
+
}
|
| 908 |
+
]
|
| 909 |
+
}
|
| 910 |
+
]
|
| 911 |
+
},
|
| 912 |
+
"gridPos": {
|
| 913 |
+
"h": 9,
|
| 914 |
+
"w": 24,
|
| 915 |
+
"x": 0,
|
| 916 |
+
"y": 47
|
| 917 |
+
},
|
| 918 |
+
"id": 9,
|
| 919 |
+
"options": {
|
| 920 |
+
"displayLabels": [
|
| 921 |
+
"name"
|
| 922 |
+
],
|
| 923 |
+
"legend": {
|
| 924 |
+
"displayMode": "list",
|
| 925 |
+
"placement": "bottom",
|
| 926 |
+
"showLegend": true,
|
| 927 |
+
"values": []
|
| 928 |
+
},
|
| 929 |
+
"pieType": "donut",
|
| 930 |
+
"reduceOptions": {
|
| 931 |
+
"calcs": [
|
| 932 |
+
"lastNotNull"
|
| 933 |
+
],
|
| 934 |
+
"fields": "",
|
| 935 |
+
"values": false
|
| 936 |
+
},
|
| 937 |
+
"tooltip": {
|
| 938 |
+
"hideZeros": false,
|
| 939 |
+
"mode": "single",
|
| 940 |
+
"sort": "none"
|
| 941 |
+
}
|
| 942 |
+
},
|
| 943 |
+
"pluginVersion": "11.6.0-pre",
|
| 944 |
+
"repeat": "inout",
|
| 945 |
+
"repeatDirection": "h",
|
| 946 |
+
"targets": [
|
| 947 |
+
{
|
| 948 |
+
"datasource": {
|
| 949 |
+
"type": "prometheus",
|
| 950 |
+
"uid": "aeiuom414581sa"
|
| 951 |
+
},
|
| 952 |
+
"disableTextWrap": false,
|
| 953 |
+
"editorMode": "builder",
|
| 954 |
+
"expr": "weaviate_vectorizer_request_tokens_bucket{inout=\"input\"}",
|
| 955 |
+
"fullMetaSearch": false,
|
| 956 |
+
"hide": false,
|
| 957 |
+
"includeNullMetadata": true,
|
| 958 |
+
"instant": false,
|
| 959 |
+
"legendFormat": "{{le}}",
|
| 960 |
+
"range": true,
|
| 961 |
+
"refId": "B",
|
| 962 |
+
"useBackend": false
|
| 963 |
+
}
|
| 964 |
+
],
|
| 965 |
+
"title": "Tokens per request",
|
| 966 |
+
"type": "piechart"
|
| 967 |
+
}
|
| 968 |
+
],
|
| 969 |
+
"preload": false,
|
| 970 |
+
"refresh": "5s",
|
| 971 |
+
"schemaVersion": 41,
|
| 972 |
+
"tags": [],
|
| 973 |
+
"templating": {
|
| 974 |
+
"list": [
|
| 975 |
+
{
|
| 976 |
+
"current": {
|
| 977 |
+
"text": "",
|
| 978 |
+
"value": ""
|
| 979 |
+
},
|
| 980 |
+
"name": "inout",
|
| 981 |
+
"options": [],
|
| 982 |
+
"query": "",
|
| 983 |
+
"refresh": 1,
|
| 984 |
+
"regex": "",
|
| 985 |
+
"type": "query"
|
| 986 |
+
}
|
| 987 |
+
]
|
| 988 |
+
},
|
| 989 |
+
"time": {
|
| 990 |
+
"from": "now-5m",
|
| 991 |
+
"to": "now"
|
| 992 |
+
},
|
| 993 |
+
"timepicker": {},
|
| 994 |
+
"timezone": "browser",
|
| 995 |
+
"title": "Vectoriser",
|
| 996 |
+
"uid": "eeiuydg9slibka",
|
| 997 |
+
"version": 83
|
| 998 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/overview.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": []
|
| 4 |
+
},
|
| 5 |
+
"editable": true,
|
| 6 |
+
"graphTooltip": 0,
|
| 7 |
+
"id": null,
|
| 8 |
+
"links": [],
|
| 9 |
+
"panels": [
|
| 10 |
+
{
|
| 11 |
+
"datasource": {
|
| 12 |
+
"type": "prometheus",
|
| 13 |
+
"uid": "prometheus"
|
| 14 |
+
},
|
| 15 |
+
"fieldConfig": {
|
| 16 |
+
"defaults": {
|
| 17 |
+
"color": {
|
| 18 |
+
"mode": "thresholds"
|
| 19 |
+
},
|
| 20 |
+
"mappings": [
|
| 21 |
+
{
|
| 22 |
+
"options": {
|
| 23 |
+
"0": {
|
| 24 |
+
"color": "red",
|
| 25 |
+
"text": "Down"
|
| 26 |
+
},
|
| 27 |
+
"1": {
|
| 28 |
+
"color": "green",
|
| 29 |
+
"text": "Up"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
"type": "value"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"thresholds": {
|
| 36 |
+
"mode": "absolute",
|
| 37 |
+
"steps": [
|
| 38 |
+
{
|
| 39 |
+
"color": "red",
|
| 40 |
+
"value": null
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"color": "green",
|
| 44 |
+
"value": 1
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
},
|
| 50 |
+
"gridPos": {
|
| 51 |
+
"h": 8,
|
| 52 |
+
"w": 24,
|
| 53 |
+
"x": 0,
|
| 54 |
+
"y": 0
|
| 55 |
+
},
|
| 56 |
+
"id": 1,
|
| 57 |
+
"title": "Node Status",
|
| 58 |
+
"type": "stat",
|
| 59 |
+
"targets": [
|
| 60 |
+
{
|
| 61 |
+
"expr": "up",
|
| 62 |
+
"legendFormat": "{{instance}}",
|
| 63 |
+
"refId": "A"
|
| 64 |
+
}
|
| 65 |
+
]
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"datasource": {
|
| 69 |
+
"type": "prometheus",
|
| 70 |
+
"uid": "prometheus"
|
| 71 |
+
},
|
| 72 |
+
"fieldConfig": {
|
| 73 |
+
"defaults": {
|
| 74 |
+
"custom": {
|
| 75 |
+
"align": "auto",
|
| 76 |
+
"displayMode": "auto",
|
| 77 |
+
"filterable": true
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
"gridPos": {
|
| 82 |
+
"h": 8,
|
| 83 |
+
"w": 24,
|
| 84 |
+
"x": 0,
|
| 85 |
+
"y": 8
|
| 86 |
+
},
|
| 87 |
+
"id": 2,
|
| 88 |
+
"targets": [
|
| 89 |
+
{
|
| 90 |
+
"expr": "count by(__name__) ({__name__=~\"weaviate_.+\"})",
|
| 91 |
+
"format": "table",
|
| 92 |
+
"instant": true
|
| 93 |
+
}
|
| 94 |
+
],
|
| 95 |
+
"title": "Weaviate Metrics Overview",
|
| 96 |
+
"type": "table"
|
| 97 |
+
}
|
| 98 |
+
],
|
| 99 |
+
"refresh": "5s",
|
| 100 |
+
"schemaVersion": 38,
|
| 101 |
+
"style": "dark",
|
| 102 |
+
"templating": {
|
| 103 |
+
"list": []
|
| 104 |
+
},
|
| 105 |
+
"time": {
|
| 106 |
+
"from": "now-5m",
|
| 107 |
+
"to": "now"
|
| 108 |
+
},
|
| 109 |
+
"title": "Weaviate Overview",
|
| 110 |
+
"uid": "weaviate-overview",
|
| 111 |
+
"version": 1
|
| 112 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/querying.json
ADDED
|
@@ -0,0 +1,883 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "datasource",
|
| 8 |
+
"uid": "grafana"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"target": {
|
| 15 |
+
"limit": 100,
|
| 16 |
+
"matchAny": false,
|
| 17 |
+
"tags": [],
|
| 18 |
+
"type": "dashboard"
|
| 19 |
+
},
|
| 20 |
+
"type": "dashboard"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"editable": true,
|
| 25 |
+
"fiscalYearStartMonth": 0,
|
| 26 |
+
"graphTooltip": 0,
|
| 27 |
+
"links": [],
|
| 28 |
+
"liveNow": false,
|
| 29 |
+
"panels": [
|
| 30 |
+
{
|
| 31 |
+
"datasource": {
|
| 32 |
+
"type": "prometheus",
|
| 33 |
+
"uid": "Prometheus"
|
| 34 |
+
},
|
| 35 |
+
"description": "Average query latency per time interval for each class.",
|
| 36 |
+
"fieldConfig": {
|
| 37 |
+
"defaults": {
|
| 38 |
+
"color": {
|
| 39 |
+
"mode": "continuous-GrYlRd"
|
| 40 |
+
},
|
| 41 |
+
"custom": {
|
| 42 |
+
"axisCenteredZero": false,
|
| 43 |
+
"axisColorMode": "text",
|
| 44 |
+
"axisLabel": "",
|
| 45 |
+
"axisPlacement": "auto",
|
| 46 |
+
"barAlignment": 0,
|
| 47 |
+
"drawStyle": "line",
|
| 48 |
+
"fillOpacity": 0,
|
| 49 |
+
"gradientMode": "none",
|
| 50 |
+
"hideFrom": {
|
| 51 |
+
"legend": false,
|
| 52 |
+
"tooltip": false,
|
| 53 |
+
"viz": false
|
| 54 |
+
},
|
| 55 |
+
"lineInterpolation": "linear",
|
| 56 |
+
"lineWidth": 1,
|
| 57 |
+
"pointSize": 5,
|
| 58 |
+
"scaleDistribution": {
|
| 59 |
+
"type": "linear"
|
| 60 |
+
},
|
| 61 |
+
"showPoints": "auto",
|
| 62 |
+
"spanNulls": false,
|
| 63 |
+
"stacking": {
|
| 64 |
+
"group": "A",
|
| 65 |
+
"mode": "none"
|
| 66 |
+
},
|
| 67 |
+
"thresholdsStyle": {
|
| 68 |
+
"mode": "off"
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
"mappings": [],
|
| 72 |
+
"thresholds": {
|
| 73 |
+
"mode": "absolute",
|
| 74 |
+
"steps": [
|
| 75 |
+
{
|
| 76 |
+
"color": "green",
|
| 77 |
+
"value": null
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"color": "red",
|
| 81 |
+
"value": 80
|
| 82 |
+
}
|
| 83 |
+
]
|
| 84 |
+
},
|
| 85 |
+
"unit": "ms"
|
| 86 |
+
},
|
| 87 |
+
"overrides": []
|
| 88 |
+
},
|
| 89 |
+
"gridPos": {
|
| 90 |
+
"h": 9,
|
| 91 |
+
"w": 12,
|
| 92 |
+
"x": 0,
|
| 93 |
+
"y": 0
|
| 94 |
+
},
|
| 95 |
+
"id": 5,
|
| 96 |
+
"options": {
|
| 97 |
+
"legend": {
|
| 98 |
+
"calcs": [],
|
| 99 |
+
"displayMode": "list",
|
| 100 |
+
"placement": "bottom",
|
| 101 |
+
"showLegend": true
|
| 102 |
+
},
|
| 103 |
+
"tooltip": {
|
| 104 |
+
"mode": "single",
|
| 105 |
+
"sort": "none"
|
| 106 |
+
}
|
| 107 |
+
},
|
| 108 |
+
"targets": [
|
| 109 |
+
{
|
| 110 |
+
"datasource": {
|
| 111 |
+
"type": "prometheus",
|
| 112 |
+
"uid": "Prometheus"
|
| 113 |
+
},
|
| 114 |
+
"editorMode": "code",
|
| 115 |
+
"exemplar": true,
|
| 116 |
+
"expr": "rate(queries_durations_ms_sum{}[$__interval]) / rate(queries_durations_ms_count{}[$__interval])",
|
| 117 |
+
"legendFormat": "{{class_name}} ",
|
| 118 |
+
"range": true,
|
| 119 |
+
"refId": "A"
|
| 120 |
+
}
|
| 121 |
+
],
|
| 122 |
+
"title": "Average Query Latency",
|
| 123 |
+
"type": "timeseries"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"datasource": {
|
| 127 |
+
"type": "prometheus",
|
| 128 |
+
"uid": "Prometheus"
|
| 129 |
+
},
|
| 130 |
+
"description": "Number of queries per second for each class",
|
| 131 |
+
"fieldConfig": {
|
| 132 |
+
"defaults": {
|
| 133 |
+
"color": {
|
| 134 |
+
"mode": "continuous-YlBl"
|
| 135 |
+
},
|
| 136 |
+
"custom": {
|
| 137 |
+
"axisCenteredZero": false,
|
| 138 |
+
"axisColorMode": "text",
|
| 139 |
+
"axisLabel": "",
|
| 140 |
+
"axisPlacement": "auto",
|
| 141 |
+
"barAlignment": 0,
|
| 142 |
+
"drawStyle": "line",
|
| 143 |
+
"fillOpacity": 0,
|
| 144 |
+
"gradientMode": "none",
|
| 145 |
+
"hideFrom": {
|
| 146 |
+
"legend": false,
|
| 147 |
+
"tooltip": false,
|
| 148 |
+
"viz": false
|
| 149 |
+
},
|
| 150 |
+
"lineInterpolation": "linear",
|
| 151 |
+
"lineWidth": 1,
|
| 152 |
+
"pointSize": 5,
|
| 153 |
+
"scaleDistribution": {
|
| 154 |
+
"type": "linear"
|
| 155 |
+
},
|
| 156 |
+
"showPoints": "auto",
|
| 157 |
+
"spanNulls": false,
|
| 158 |
+
"stacking": {
|
| 159 |
+
"group": "A",
|
| 160 |
+
"mode": "none"
|
| 161 |
+
},
|
| 162 |
+
"thresholdsStyle": {
|
| 163 |
+
"mode": "off"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"mappings": [],
|
| 167 |
+
"thresholds": {
|
| 168 |
+
"mode": "absolute",
|
| 169 |
+
"steps": [
|
| 170 |
+
{
|
| 171 |
+
"color": "green",
|
| 172 |
+
"value": null
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"color": "red",
|
| 176 |
+
"value": 80
|
| 177 |
+
}
|
| 178 |
+
]
|
| 179 |
+
}
|
| 180 |
+
},
|
| 181 |
+
"overrides": []
|
| 182 |
+
},
|
| 183 |
+
"gridPos": {
|
| 184 |
+
"h": 9,
|
| 185 |
+
"w": 12,
|
| 186 |
+
"x": 12,
|
| 187 |
+
"y": 0
|
| 188 |
+
},
|
| 189 |
+
"id": 7,
|
| 190 |
+
"options": {
|
| 191 |
+
"legend": {
|
| 192 |
+
"calcs": [],
|
| 193 |
+
"displayMode": "list",
|
| 194 |
+
"placement": "bottom",
|
| 195 |
+
"showLegend": true
|
| 196 |
+
},
|
| 197 |
+
"tooltip": {
|
| 198 |
+
"mode": "single",
|
| 199 |
+
"sort": "none"
|
| 200 |
+
}
|
| 201 |
+
},
|
| 202 |
+
"targets": [
|
| 203 |
+
{
|
| 204 |
+
"datasource": {
|
| 205 |
+
"type": "prometheus",
|
| 206 |
+
"uid": "Prometheus"
|
| 207 |
+
},
|
| 208 |
+
"editorMode": "code",
|
| 209 |
+
"exemplar": true,
|
| 210 |
+
"expr": "rate(queries_durations_ms_count{}[$__interval])",
|
| 211 |
+
"legendFormat": "{{class_name}}",
|
| 212 |
+
"range": true,
|
| 213 |
+
"refId": "A"
|
| 214 |
+
}
|
| 215 |
+
],
|
| 216 |
+
"title": "Query Rate",
|
| 217 |
+
"type": "timeseries"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"datasource": {
|
| 221 |
+
"type": "prometheus",
|
| 222 |
+
"uid": "Prometheus"
|
| 223 |
+
},
|
| 224 |
+
"description": "Note the percentiles are calculated from histogram buckets so have an associated error see https://prometheus.io/docs/practices/histograms/#errors-of-quantile-estimation",
|
| 225 |
+
"fieldConfig": {
|
| 226 |
+
"defaults": {
|
| 227 |
+
"color": {
|
| 228 |
+
"mode": "continuous-YlRd"
|
| 229 |
+
},
|
| 230 |
+
"custom": {
|
| 231 |
+
"axisCenteredZero": false,
|
| 232 |
+
"axisColorMode": "text",
|
| 233 |
+
"axisLabel": "",
|
| 234 |
+
"axisPlacement": "auto",
|
| 235 |
+
"barAlignment": 0,
|
| 236 |
+
"drawStyle": "line",
|
| 237 |
+
"fillOpacity": 0,
|
| 238 |
+
"gradientMode": "none",
|
| 239 |
+
"hideFrom": {
|
| 240 |
+
"legend": false,
|
| 241 |
+
"tooltip": false,
|
| 242 |
+
"viz": false
|
| 243 |
+
},
|
| 244 |
+
"lineInterpolation": "linear",
|
| 245 |
+
"lineWidth": 1,
|
| 246 |
+
"pointSize": 5,
|
| 247 |
+
"scaleDistribution": {
|
| 248 |
+
"type": "linear"
|
| 249 |
+
},
|
| 250 |
+
"showPoints": "auto",
|
| 251 |
+
"spanNulls": false,
|
| 252 |
+
"stacking": {
|
| 253 |
+
"group": "A",
|
| 254 |
+
"mode": "none"
|
| 255 |
+
},
|
| 256 |
+
"thresholdsStyle": {
|
| 257 |
+
"mode": "off"
|
| 258 |
+
}
|
| 259 |
+
},
|
| 260 |
+
"mappings": [],
|
| 261 |
+
"thresholds": {
|
| 262 |
+
"mode": "absolute",
|
| 263 |
+
"steps": [
|
| 264 |
+
{
|
| 265 |
+
"color": "green",
|
| 266 |
+
"value": null
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"color": "red",
|
| 270 |
+
"value": 80
|
| 271 |
+
}
|
| 272 |
+
]
|
| 273 |
+
},
|
| 274 |
+
"unit": "ms"
|
| 275 |
+
},
|
| 276 |
+
"overrides": []
|
| 277 |
+
},
|
| 278 |
+
"gridPos": {
|
| 279 |
+
"h": 8,
|
| 280 |
+
"w": 12,
|
| 281 |
+
"x": 0,
|
| 282 |
+
"y": 9
|
| 283 |
+
},
|
| 284 |
+
"id": 9,
|
| 285 |
+
"options": {
|
| 286 |
+
"legend": {
|
| 287 |
+
"calcs": [],
|
| 288 |
+
"displayMode": "list",
|
| 289 |
+
"placement": "bottom",
|
| 290 |
+
"showLegend": true
|
| 291 |
+
},
|
| 292 |
+
"tooltip": {
|
| 293 |
+
"mode": "single",
|
| 294 |
+
"sort": "none"
|
| 295 |
+
}
|
| 296 |
+
},
|
| 297 |
+
"targets": [
|
| 298 |
+
{
|
| 299 |
+
"datasource": {
|
| 300 |
+
"type": "prometheus",
|
| 301 |
+
"uid": "Prometheus"
|
| 302 |
+
},
|
| 303 |
+
"editorMode": "code",
|
| 304 |
+
"expr": "histogram_quantile(0.90, sum(rate(queries_durations_ms_bucket{}[$__interval])) by (le,class_name))",
|
| 305 |
+
"legendFormat": "__auto",
|
| 306 |
+
"range": true,
|
| 307 |
+
"refId": "A"
|
| 308 |
+
}
|
| 309 |
+
],
|
| 310 |
+
"title": "90th Percentile Query Latency (Estimated)",
|
| 311 |
+
"type": "timeseries"
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"datasource": {
|
| 315 |
+
"type": "prometheus",
|
| 316 |
+
"uid": "Prometheus"
|
| 317 |
+
},
|
| 318 |
+
"description": "Note the percentiles are calculated from histogram buckets so have an associated error see https://prometheus.io/docs/practices/histograms/#errors-of-quantile-estimation",
|
| 319 |
+
"fieldConfig": {
|
| 320 |
+
"defaults": {
|
| 321 |
+
"color": {
|
| 322 |
+
"mode": "continuous-YlRd"
|
| 323 |
+
},
|
| 324 |
+
"custom": {
|
| 325 |
+
"axisCenteredZero": false,
|
| 326 |
+
"axisColorMode": "text",
|
| 327 |
+
"axisLabel": "",
|
| 328 |
+
"axisPlacement": "auto",
|
| 329 |
+
"barAlignment": 0,
|
| 330 |
+
"drawStyle": "line",
|
| 331 |
+
"fillOpacity": 0,
|
| 332 |
+
"gradientMode": "none",
|
| 333 |
+
"hideFrom": {
|
| 334 |
+
"legend": false,
|
| 335 |
+
"tooltip": false,
|
| 336 |
+
"viz": false
|
| 337 |
+
},
|
| 338 |
+
"lineInterpolation": "linear",
|
| 339 |
+
"lineWidth": 1,
|
| 340 |
+
"pointSize": 5,
|
| 341 |
+
"scaleDistribution": {
|
| 342 |
+
"type": "linear"
|
| 343 |
+
},
|
| 344 |
+
"showPoints": "auto",
|
| 345 |
+
"spanNulls": false,
|
| 346 |
+
"stacking": {
|
| 347 |
+
"group": "A",
|
| 348 |
+
"mode": "none"
|
| 349 |
+
},
|
| 350 |
+
"thresholdsStyle": {
|
| 351 |
+
"mode": "off"
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
"mappings": [],
|
| 355 |
+
"thresholds": {
|
| 356 |
+
"mode": "absolute",
|
| 357 |
+
"steps": [
|
| 358 |
+
{
|
| 359 |
+
"color": "green",
|
| 360 |
+
"value": null
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"color": "red",
|
| 364 |
+
"value": 80
|
| 365 |
+
}
|
| 366 |
+
]
|
| 367 |
+
},
|
| 368 |
+
"unit": "ms"
|
| 369 |
+
},
|
| 370 |
+
"overrides": []
|
| 371 |
+
},
|
| 372 |
+
"gridPos": {
|
| 373 |
+
"h": 8,
|
| 374 |
+
"w": 12,
|
| 375 |
+
"x": 12,
|
| 376 |
+
"y": 9
|
| 377 |
+
},
|
| 378 |
+
"id": 10,
|
| 379 |
+
"options": {
|
| 380 |
+
"legend": {
|
| 381 |
+
"calcs": [],
|
| 382 |
+
"displayMode": "list",
|
| 383 |
+
"placement": "bottom",
|
| 384 |
+
"showLegend": true
|
| 385 |
+
},
|
| 386 |
+
"tooltip": {
|
| 387 |
+
"mode": "single",
|
| 388 |
+
"sort": "none"
|
| 389 |
+
}
|
| 390 |
+
},
|
| 391 |
+
"targets": [
|
| 392 |
+
{
|
| 393 |
+
"datasource": {
|
| 394 |
+
"type": "prometheus",
|
| 395 |
+
"uid": "Prometheus"
|
| 396 |
+
},
|
| 397 |
+
"editorMode": "code",
|
| 398 |
+
"expr": "histogram_quantile(0.95, sum(rate(queries_durations_ms_bucket{}[$__interval])) by (le,class_name))",
|
| 399 |
+
"legendFormat": "__auto",
|
| 400 |
+
"range": true,
|
| 401 |
+
"refId": "A"
|
| 402 |
+
}
|
| 403 |
+
],
|
| 404 |
+
"title": "95th Percentile Query Latency (Estimated)",
|
| 405 |
+
"type": "timeseries"
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"datasource": {
|
| 409 |
+
"type": "prometheus",
|
| 410 |
+
"uid": "Prometheus"
|
| 411 |
+
},
|
| 412 |
+
"description": "Break down of filtered query latency by operation",
|
| 413 |
+
"fieldConfig": {
|
| 414 |
+
"defaults": {
|
| 415 |
+
"color": {
|
| 416 |
+
"mode": "continuous-GrYlRd"
|
| 417 |
+
},
|
| 418 |
+
"custom": {
|
| 419 |
+
"axisCenteredZero": false,
|
| 420 |
+
"axisColorMode": "text",
|
| 421 |
+
"axisLabel": "",
|
| 422 |
+
"axisPlacement": "auto",
|
| 423 |
+
"barAlignment": 0,
|
| 424 |
+
"drawStyle": "line",
|
| 425 |
+
"fillOpacity": 0,
|
| 426 |
+
"gradientMode": "none",
|
| 427 |
+
"hideFrom": {
|
| 428 |
+
"legend": false,
|
| 429 |
+
"tooltip": false,
|
| 430 |
+
"viz": false
|
| 431 |
+
},
|
| 432 |
+
"lineInterpolation": "linear",
|
| 433 |
+
"lineWidth": 1,
|
| 434 |
+
"pointSize": 5,
|
| 435 |
+
"scaleDistribution": {
|
| 436 |
+
"type": "linear"
|
| 437 |
+
},
|
| 438 |
+
"showPoints": "auto",
|
| 439 |
+
"spanNulls": false,
|
| 440 |
+
"stacking": {
|
| 441 |
+
"group": "A",
|
| 442 |
+
"mode": "none"
|
| 443 |
+
},
|
| 444 |
+
"thresholdsStyle": {
|
| 445 |
+
"mode": "off"
|
| 446 |
+
}
|
| 447 |
+
},
|
| 448 |
+
"mappings": [],
|
| 449 |
+
"thresholds": {
|
| 450 |
+
"mode": "absolute",
|
| 451 |
+
"steps": [
|
| 452 |
+
{
|
| 453 |
+
"color": "green",
|
| 454 |
+
"value": null
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"color": "red",
|
| 458 |
+
"value": 80
|
| 459 |
+
}
|
| 460 |
+
]
|
| 461 |
+
},
|
| 462 |
+
"unit": "ms"
|
| 463 |
+
},
|
| 464 |
+
"overrides": []
|
| 465 |
+
},
|
| 466 |
+
"gridPos": {
|
| 467 |
+
"h": 9,
|
| 468 |
+
"w": 12,
|
| 469 |
+
"x": 0,
|
| 470 |
+
"y": 17
|
| 471 |
+
},
|
| 472 |
+
"id": 11,
|
| 473 |
+
"options": {
|
| 474 |
+
"legend": {
|
| 475 |
+
"calcs": [],
|
| 476 |
+
"displayMode": "list",
|
| 477 |
+
"placement": "bottom",
|
| 478 |
+
"showLegend": true
|
| 479 |
+
},
|
| 480 |
+
"tooltip": {
|
| 481 |
+
"mode": "single",
|
| 482 |
+
"sort": "none"
|
| 483 |
+
}
|
| 484 |
+
},
|
| 485 |
+
"targets": [
|
| 486 |
+
{
|
| 487 |
+
"datasource": {
|
| 488 |
+
"type": "prometheus",
|
| 489 |
+
"uid": "Prometheus"
|
| 490 |
+
},
|
| 491 |
+
"editorMode": "code",
|
| 492 |
+
"exemplar": true,
|
| 493 |
+
"expr": "rate(queries_filtered_vector_durations_ms_sum{operation=\"filter\"}[$__interval]) / rate(queries_filtered_vector_durations_ms_count{operation=\"filter\"}[$__interval])",
|
| 494 |
+
"legendFormat": "{{class_name}}/{{operation}}/{{shard_name}}",
|
| 495 |
+
"range": true,
|
| 496 |
+
"refId": "Filter"
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"datasource": {
|
| 500 |
+
"type": "prometheus",
|
| 501 |
+
"uid": "Prometheus"
|
| 502 |
+
},
|
| 503 |
+
"editorMode": "code",
|
| 504 |
+
"exemplar": true,
|
| 505 |
+
"expr": "rate(queries_filtered_vector_durations_ms_sum{operation=\"sort\"}[$__interval]) / rate(queries_filtered_vector_durations_ms_count{operation=\"sort\"}[$__interval])",
|
| 506 |
+
"hide": false,
|
| 507 |
+
"legendFormat": "{{class_name}}/{{operation}}/{{shard_name}}",
|
| 508 |
+
"range": true,
|
| 509 |
+
"refId": "Sort"
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"datasource": {
|
| 513 |
+
"type": "prometheus",
|
| 514 |
+
"uid": "Prometheus"
|
| 515 |
+
},
|
| 516 |
+
"editorMode": "code",
|
| 517 |
+
"exemplar": true,
|
| 518 |
+
"expr": "rate(queries_filtered_vector_durations_ms_sum{operation=\"vector\"}[$__interval]) / rate(queries_filtered_vector_durations_ms_count{operation=\"vector\"}[$__interval])",
|
| 519 |
+
"hide": false,
|
| 520 |
+
"legendFormat": "{{class_name}}/{{operation}}/{{shard_name}}",
|
| 521 |
+
"range": true,
|
| 522 |
+
"refId": "Vector"
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"datasource": {
|
| 526 |
+
"type": "prometheus",
|
| 527 |
+
"uid": "Prometheus"
|
| 528 |
+
},
|
| 529 |
+
"editorMode": "code",
|
| 530 |
+
"exemplar": true,
|
| 531 |
+
"expr": "rate(queries_filtered_vector_durations_ms_sum{operation=\"objects\"}[$__interval]) / rate(queries_filtered_vector_durations_ms_count{operation=\"objects\"}[$__interval])",
|
| 532 |
+
"hide": false,
|
| 533 |
+
"legendFormat": "{{class_name}}/{{operation}}/{{shard_name}}",
|
| 534 |
+
"range": true,
|
| 535 |
+
"refId": "Objects"
|
| 536 |
+
}
|
| 537 |
+
],
|
| 538 |
+
"title": "Filtered Query Latency",
|
| 539 |
+
"type": "timeseries"
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"datasource": {
|
| 543 |
+
"type": "prometheus",
|
| 544 |
+
"uid": "Prometheus"
|
| 545 |
+
},
|
| 546 |
+
"description": "",
|
| 547 |
+
"fieldConfig": {
|
| 548 |
+
"defaults": {
|
| 549 |
+
"color": {
|
| 550 |
+
"mode": "palette-classic"
|
| 551 |
+
},
|
| 552 |
+
"custom": {
|
| 553 |
+
"axisCenteredZero": false,
|
| 554 |
+
"axisColorMode": "text",
|
| 555 |
+
"axisLabel": "",
|
| 556 |
+
"axisPlacement": "auto",
|
| 557 |
+
"axisSoftMin": 0,
|
| 558 |
+
"barAlignment": 0,
|
| 559 |
+
"drawStyle": "line",
|
| 560 |
+
"fillOpacity": 15,
|
| 561 |
+
"gradientMode": "none",
|
| 562 |
+
"hideFrom": {
|
| 563 |
+
"legend": false,
|
| 564 |
+
"tooltip": false,
|
| 565 |
+
"viz": false
|
| 566 |
+
},
|
| 567 |
+
"lineInterpolation": "smooth",
|
| 568 |
+
"lineWidth": 1,
|
| 569 |
+
"pointSize": 5,
|
| 570 |
+
"scaleDistribution": {
|
| 571 |
+
"type": "linear"
|
| 572 |
+
},
|
| 573 |
+
"showPoints": "auto",
|
| 574 |
+
"spanNulls": false,
|
| 575 |
+
"stacking": {
|
| 576 |
+
"group": "A",
|
| 577 |
+
"mode": "normal"
|
| 578 |
+
},
|
| 579 |
+
"thresholdsStyle": {
|
| 580 |
+
"mode": "off"
|
| 581 |
+
}
|
| 582 |
+
},
|
| 583 |
+
"mappings": [],
|
| 584 |
+
"thresholds": {
|
| 585 |
+
"mode": "absolute",
|
| 586 |
+
"steps": [
|
| 587 |
+
{
|
| 588 |
+
"color": "green",
|
| 589 |
+
"value": null
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"color": "red",
|
| 593 |
+
"value": 80
|
| 594 |
+
}
|
| 595 |
+
]
|
| 596 |
+
}
|
| 597 |
+
},
|
| 598 |
+
"overrides": []
|
| 599 |
+
},
|
| 600 |
+
"gridPos": {
|
| 601 |
+
"h": 8,
|
| 602 |
+
"w": 12,
|
| 603 |
+
"x": 12,
|
| 604 |
+
"y": 17
|
| 605 |
+
},
|
| 606 |
+
"id": 3,
|
| 607 |
+
"options": {
|
| 608 |
+
"legend": {
|
| 609 |
+
"calcs": [],
|
| 610 |
+
"displayMode": "list",
|
| 611 |
+
"placement": "bottom",
|
| 612 |
+
"showLegend": true
|
| 613 |
+
},
|
| 614 |
+
"tooltip": {
|
| 615 |
+
"mode": "single",
|
| 616 |
+
"sort": "none"
|
| 617 |
+
}
|
| 618 |
+
},
|
| 619 |
+
"targets": [
|
| 620 |
+
{
|
| 621 |
+
"datasource": {
|
| 622 |
+
"type": "prometheus",
|
| 623 |
+
"uid": "Prometheus"
|
| 624 |
+
},
|
| 625 |
+
"editorMode": "code",
|
| 626 |
+
"expr": "sum(concurrent_queries_count{query_type=\"batch\"})",
|
| 627 |
+
"hide": false,
|
| 628 |
+
"legendFormat": "Batch (Objects)",
|
| 629 |
+
"range": true,
|
| 630 |
+
"refId": "C"
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"datasource": {
|
| 634 |
+
"type": "prometheus",
|
| 635 |
+
"uid": "Prometheus"
|
| 636 |
+
},
|
| 637 |
+
"editorMode": "code",
|
| 638 |
+
"expr": "sum(concurrent_queries_count{query_type=\"batch_references\"})",
|
| 639 |
+
"hide": false,
|
| 640 |
+
"legendFormat": "Batch (References)",
|
| 641 |
+
"range": true,
|
| 642 |
+
"refId": "D"
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"datasource": {
|
| 646 |
+
"type": "prometheus",
|
| 647 |
+
"uid": "Prometheus"
|
| 648 |
+
},
|
| 649 |
+
"editorMode": "code",
|
| 650 |
+
"exemplar": true,
|
| 651 |
+
"expr": "sum(concurrent_queries_count{query_type=\"add_object\"})",
|
| 652 |
+
"interval": "",
|
| 653 |
+
"legendFormat": "Add (Objects)",
|
| 654 |
+
"range": true,
|
| 655 |
+
"refId": "A"
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"datasource": {
|
| 659 |
+
"type": "prometheus",
|
| 660 |
+
"uid": "Prometheus"
|
| 661 |
+
},
|
| 662 |
+
"editorMode": "code",
|
| 663 |
+
"exemplar": true,
|
| 664 |
+
"expr": "sum(concurrent_queries_count{query_type=\"update_object\"})",
|
| 665 |
+
"hide": false,
|
| 666 |
+
"interval": "",
|
| 667 |
+
"legendFormat": "Update (Objects)",
|
| 668 |
+
"range": true,
|
| 669 |
+
"refId": "B"
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"datasource": {
|
| 673 |
+
"type": "prometheus",
|
| 674 |
+
"uid": "Prometheus"
|
| 675 |
+
},
|
| 676 |
+
"editorMode": "code",
|
| 677 |
+
"expr": "sum(concurrent_queries_count{query_type=\"merge_object\"})",
|
| 678 |
+
"hide": false,
|
| 679 |
+
"legendFormat": "Merge (Objects)",
|
| 680 |
+
"range": true,
|
| 681 |
+
"refId": "E"
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"datasource": {
|
| 685 |
+
"type": "prometheus",
|
| 686 |
+
"uid": "Prometheus"
|
| 687 |
+
},
|
| 688 |
+
"editorMode": "code",
|
| 689 |
+
"expr": "sum(concurrent_queries_count{query_type=\"delete_object\"})",
|
| 690 |
+
"hide": false,
|
| 691 |
+
"legendFormat": "Delete (Objects)",
|
| 692 |
+
"range": true,
|
| 693 |
+
"refId": "F"
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"datasource": {
|
| 697 |
+
"type": "prometheus",
|
| 698 |
+
"uid": "Prometheus"
|
| 699 |
+
},
|
| 700 |
+
"editorMode": "code",
|
| 701 |
+
"expr": "sum(concurrent_queries_count{query_type=\"add_reference\"})",
|
| 702 |
+
"hide": false,
|
| 703 |
+
"legendFormat": "Add (Reference)",
|
| 704 |
+
"range": true,
|
| 705 |
+
"refId": "G"
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"datasource": {
|
| 709 |
+
"type": "prometheus",
|
| 710 |
+
"uid": "Prometheus"
|
| 711 |
+
},
|
| 712 |
+
"editorMode": "code",
|
| 713 |
+
"expr": "sum(concurrent_queries_count{query_type=\"update_reference\"})",
|
| 714 |
+
"hide": false,
|
| 715 |
+
"legendFormat": "Update (Reference)",
|
| 716 |
+
"range": true,
|
| 717 |
+
"refId": "H"
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"datasource": {
|
| 721 |
+
"type": "prometheus",
|
| 722 |
+
"uid": "Prometheus"
|
| 723 |
+
},
|
| 724 |
+
"editorMode": "code",
|
| 725 |
+
"expr": "sum(concurrent_queries_count{query_type=\"delete_reference\"})",
|
| 726 |
+
"hide": false,
|
| 727 |
+
"legendFormat": "Delete (Reference)",
|
| 728 |
+
"range": true,
|
| 729 |
+
"refId": "I"
|
| 730 |
+
}
|
| 731 |
+
],
|
| 732 |
+
"title": "Concurrent Write Requests",
|
| 733 |
+
"type": "timeseries"
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"datasource": {
|
| 737 |
+
"type": "prometheus",
|
| 738 |
+
"uid": "Prometheus"
|
| 739 |
+
},
|
| 740 |
+
"description": "",
|
| 741 |
+
"fieldConfig": {
|
| 742 |
+
"defaults": {
|
| 743 |
+
"color": {
|
| 744 |
+
"mode": "palette-classic"
|
| 745 |
+
},
|
| 746 |
+
"custom": {
|
| 747 |
+
"axisCenteredZero": false,
|
| 748 |
+
"axisColorMode": "text",
|
| 749 |
+
"axisLabel": "",
|
| 750 |
+
"axisPlacement": "auto",
|
| 751 |
+
"axisSoftMin": 0,
|
| 752 |
+
"barAlignment": 0,
|
| 753 |
+
"drawStyle": "line",
|
| 754 |
+
"fillOpacity": 15,
|
| 755 |
+
"gradientMode": "none",
|
| 756 |
+
"hideFrom": {
|
| 757 |
+
"legend": false,
|
| 758 |
+
"tooltip": false,
|
| 759 |
+
"viz": false
|
| 760 |
+
},
|
| 761 |
+
"lineInterpolation": "smooth",
|
| 762 |
+
"lineWidth": 1,
|
| 763 |
+
"pointSize": 5,
|
| 764 |
+
"scaleDistribution": {
|
| 765 |
+
"type": "linear"
|
| 766 |
+
},
|
| 767 |
+
"showPoints": "auto",
|
| 768 |
+
"spanNulls": false,
|
| 769 |
+
"stacking": {
|
| 770 |
+
"group": "A",
|
| 771 |
+
"mode": "normal"
|
| 772 |
+
},
|
| 773 |
+
"thresholdsStyle": {
|
| 774 |
+
"mode": "off"
|
| 775 |
+
}
|
| 776 |
+
},
|
| 777 |
+
"mappings": [],
|
| 778 |
+
"thresholds": {
|
| 779 |
+
"mode": "absolute",
|
| 780 |
+
"steps": [
|
| 781 |
+
{
|
| 782 |
+
"color": "green",
|
| 783 |
+
"value": null
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"color": "red",
|
| 787 |
+
"value": 80
|
| 788 |
+
}
|
| 789 |
+
]
|
| 790 |
+
}
|
| 791 |
+
},
|
| 792 |
+
"overrides": []
|
| 793 |
+
},
|
| 794 |
+
"gridPos": {
|
| 795 |
+
"h": 8,
|
| 796 |
+
"w": 12,
|
| 797 |
+
"x": 0,
|
| 798 |
+
"y": 26
|
| 799 |
+
},
|
| 800 |
+
"id": 2,
|
| 801 |
+
"options": {
|
| 802 |
+
"legend": {
|
| 803 |
+
"calcs": [],
|
| 804 |
+
"displayMode": "list",
|
| 805 |
+
"placement": "bottom",
|
| 806 |
+
"showLegend": true
|
| 807 |
+
},
|
| 808 |
+
"tooltip": {
|
| 809 |
+
"mode": "single",
|
| 810 |
+
"sort": "none"
|
| 811 |
+
}
|
| 812 |
+
},
|
| 813 |
+
"targets": [
|
| 814 |
+
{
|
| 815 |
+
"datasource": {
|
| 816 |
+
"type": "prometheus",
|
| 817 |
+
"uid": "Prometheus"
|
| 818 |
+
},
|
| 819 |
+
"exemplar": true,
|
| 820 |
+
"expr": "sum(concurrent_queries_count{query_type=\"aggregate\"})",
|
| 821 |
+
"interval": "",
|
| 822 |
+
"legendFormat": "Aggregate",
|
| 823 |
+
"refId": "A"
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"datasource": {
|
| 827 |
+
"type": "prometheus",
|
| 828 |
+
"uid": "Prometheus"
|
| 829 |
+
},
|
| 830 |
+
"exemplar": true,
|
| 831 |
+
"expr": "sum(concurrent_queries_count{query_type=\"get_graphql\"})",
|
| 832 |
+
"hide": false,
|
| 833 |
+
"interval": "",
|
| 834 |
+
"legendFormat": "Get (GraphQL)",
|
| 835 |
+
"refId": "B"
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"datasource": {
|
| 839 |
+
"type": "prometheus",
|
| 840 |
+
"uid": "Prometheus"
|
| 841 |
+
},
|
| 842 |
+
"editorMode": "code",
|
| 843 |
+
"expr": "sum(concurrent_queries_count{query_type=\"get_object\"})",
|
| 844 |
+
"hide": false,
|
| 845 |
+
"legendFormat": "Get (Objects)",
|
| 846 |
+
"range": true,
|
| 847 |
+
"refId": "C"
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"datasource": {
|
| 851 |
+
"type": "prometheus",
|
| 852 |
+
"uid": "Prometheus"
|
| 853 |
+
},
|
| 854 |
+
"editorMode": "code",
|
| 855 |
+
"expr": "sum(concurrent_queries_count{query_type=\"head_object\"})",
|
| 856 |
+
"hide": false,
|
| 857 |
+
"legendFormat": "Head (Objects)",
|
| 858 |
+
"range": true,
|
| 859 |
+
"refId": "D"
|
| 860 |
+
}
|
| 861 |
+
],
|
| 862 |
+
"title": "Concurrent Read Requests",
|
| 863 |
+
"type": "timeseries"
|
| 864 |
+
}
|
| 865 |
+
],
|
| 866 |
+
"refresh": "5s",
|
| 867 |
+
"schemaVersion": 37,
|
| 868 |
+
"style": "dark",
|
| 869 |
+
"tags": [],
|
| 870 |
+
"templating": {
|
| 871 |
+
"list": []
|
| 872 |
+
},
|
| 873 |
+
"time": {
|
| 874 |
+
"from": "now-5m",
|
| 875 |
+
"to": "now"
|
| 876 |
+
},
|
| 877 |
+
"timepicker": {},
|
| 878 |
+
"timezone": "",
|
| 879 |
+
"title": "Querying",
|
| 880 |
+
"uid": "ImxRLXe7z",
|
| 881 |
+
"version": 1,
|
| 882 |
+
"weekStart": ""
|
| 883 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/replication-engine.json
ADDED
|
@@ -0,0 +1,862 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"type": "dashboard"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
"description": "Replication engine",
|
| 19 |
+
"editable": true,
|
| 20 |
+
"fiscalYearStartMonth": 0,
|
| 21 |
+
"graphTooltip": 0,
|
| 22 |
+
"id": 3,
|
| 23 |
+
"links": [],
|
| 24 |
+
"panels": [
|
| 25 |
+
{
|
| 26 |
+
"datasource": {
|
| 27 |
+
"type": "prometheus",
|
| 28 |
+
"uid": "dejuz2d5dpptsa"
|
| 29 |
+
},
|
| 30 |
+
"fieldConfig": {
|
| 31 |
+
"defaults": {
|
| 32 |
+
"color": {
|
| 33 |
+
"mode": "thresholds"
|
| 34 |
+
},
|
| 35 |
+
"decimals": 0,
|
| 36 |
+
"mappings": [],
|
| 37 |
+
"thresholds": {
|
| 38 |
+
"mode": "absolute",
|
| 39 |
+
"steps": [
|
| 40 |
+
{
|
| 41 |
+
"color": "green"
|
| 42 |
+
}
|
| 43 |
+
]
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
"overrides": [
|
| 47 |
+
{
|
| 48 |
+
"matcher": {
|
| 49 |
+
"id": "byName",
|
| 50 |
+
"options": "Value #pending"
|
| 51 |
+
},
|
| 52 |
+
"properties": [
|
| 53 |
+
{
|
| 54 |
+
"id": "displayName",
|
| 55 |
+
"value": "Pending"
|
| 56 |
+
}
|
| 57 |
+
]
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"matcher": {
|
| 61 |
+
"id": "byName",
|
| 62 |
+
"options": "Value #ongoing"
|
| 63 |
+
},
|
| 64 |
+
"properties": [
|
| 65 |
+
{
|
| 66 |
+
"id": "displayName",
|
| 67 |
+
"value": "Ongoing"
|
| 68 |
+
}
|
| 69 |
+
]
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"matcher": {
|
| 73 |
+
"id": "byName",
|
| 74 |
+
"options": "Value #complete"
|
| 75 |
+
},
|
| 76 |
+
"properties": [
|
| 77 |
+
{
|
| 78 |
+
"id": "displayName",
|
| 79 |
+
"value": "Completed"
|
| 80 |
+
}
|
| 81 |
+
]
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"matcher": {
|
| 85 |
+
"id": "byName",
|
| 86 |
+
"options": "Value #failed"
|
| 87 |
+
},
|
| 88 |
+
"properties": [
|
| 89 |
+
{
|
| 90 |
+
"id": "displayName",
|
| 91 |
+
"value": "Failed"
|
| 92 |
+
}
|
| 93 |
+
]
|
| 94 |
+
}
|
| 95 |
+
]
|
| 96 |
+
},
|
| 97 |
+
"gridPos": {
|
| 98 |
+
"h": 9,
|
| 99 |
+
"w": 17,
|
| 100 |
+
"x": 0,
|
| 101 |
+
"y": 0
|
| 102 |
+
},
|
| 103 |
+
"id": 9,
|
| 104 |
+
"options": {
|
| 105 |
+
"colorMode": "value",
|
| 106 |
+
"graphMode": "area",
|
| 107 |
+
"justifyMode": "auto",
|
| 108 |
+
"orientation": "auto",
|
| 109 |
+
"percentChangeColorMode": "standard",
|
| 110 |
+
"reduceOptions": {
|
| 111 |
+
"calcs": [
|
| 112 |
+
"lastNotNull"
|
| 113 |
+
],
|
| 114 |
+
"fields": "",
|
| 115 |
+
"values": false
|
| 116 |
+
},
|
| 117 |
+
"showPercentChange": false,
|
| 118 |
+
"textMode": "auto",
|
| 119 |
+
"wideLayout": true
|
| 120 |
+
},
|
| 121 |
+
"pluginVersion": "11.6.1",
|
| 122 |
+
"targets": [
|
| 123 |
+
{
|
| 124 |
+
"editorMode": "code",
|
| 125 |
+
"exemplar": false,
|
| 126 |
+
"expr": "sum (weaviate_replication_pending_operations)",
|
| 127 |
+
"format": "table",
|
| 128 |
+
"instant": false,
|
| 129 |
+
"legendFormat": "Pending",
|
| 130 |
+
"range": true,
|
| 131 |
+
"refId": "pending"
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"datasource": {
|
| 135 |
+
"type": "prometheus",
|
| 136 |
+
"uid": "dejuz2d5dpptsa"
|
| 137 |
+
},
|
| 138 |
+
"editorMode": "code",
|
| 139 |
+
"expr": "sum (weaviate_replication_ongoing_operations)",
|
| 140 |
+
"format": "table",
|
| 141 |
+
"hide": false,
|
| 142 |
+
"instant": false,
|
| 143 |
+
"legendFormat": "Ongoing",
|
| 144 |
+
"range": true,
|
| 145 |
+
"refId": "ongoing"
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"datasource": {
|
| 149 |
+
"type": "prometheus",
|
| 150 |
+
"uid": "dejuz2d5dpptsa"
|
| 151 |
+
},
|
| 152 |
+
"editorMode": "code",
|
| 153 |
+
"expr": "sum (increase(weaviate_replication_complete_operations[$__range]))",
|
| 154 |
+
"format": "table",
|
| 155 |
+
"hide": false,
|
| 156 |
+
"instant": false,
|
| 157 |
+
"legendFormat": "Completed",
|
| 158 |
+
"range": true,
|
| 159 |
+
"refId": "complete"
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"datasource": {
|
| 163 |
+
"type": "prometheus",
|
| 164 |
+
"uid": "dejuz2d5dpptsa"
|
| 165 |
+
},
|
| 166 |
+
"editorMode": "code",
|
| 167 |
+
"expr": "sum (increase(weaviate_replication_failed_operations[$__range]))",
|
| 168 |
+
"format": "table",
|
| 169 |
+
"hide": false,
|
| 170 |
+
"instant": false,
|
| 171 |
+
"legendFormat": "Failed",
|
| 172 |
+
"range": true,
|
| 173 |
+
"refId": "failed"
|
| 174 |
+
}
|
| 175 |
+
],
|
| 176 |
+
"title": "Replication operations",
|
| 177 |
+
"type": "stat"
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"datasource": {
|
| 181 |
+
"uid": "dejuz2d5dpptsa"
|
| 182 |
+
},
|
| 183 |
+
"fieldConfig": {
|
| 184 |
+
"defaults": {
|
| 185 |
+
"color": {
|
| 186 |
+
"mode": "thresholds"
|
| 187 |
+
},
|
| 188 |
+
"mappings": [],
|
| 189 |
+
"thresholds": {
|
| 190 |
+
"mode": "absolute",
|
| 191 |
+
"steps": [
|
| 192 |
+
{
|
| 193 |
+
"color": "green"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"color": "red",
|
| 197 |
+
"value": 80
|
| 198 |
+
}
|
| 199 |
+
]
|
| 200 |
+
},
|
| 201 |
+
"unit": "percentunit"
|
| 202 |
+
},
|
| 203 |
+
"overrides": []
|
| 204 |
+
},
|
| 205 |
+
"gridPos": {
|
| 206 |
+
"h": 9,
|
| 207 |
+
"w": 7,
|
| 208 |
+
"x": 17,
|
| 209 |
+
"y": 0
|
| 210 |
+
},
|
| 211 |
+
"id": 11,
|
| 212 |
+
"options": {
|
| 213 |
+
"colorMode": "value",
|
| 214 |
+
"graphMode": "area",
|
| 215 |
+
"justifyMode": "auto",
|
| 216 |
+
"orientation": "auto",
|
| 217 |
+
"percentChangeColorMode": "standard",
|
| 218 |
+
"reduceOptions": {
|
| 219 |
+
"calcs": [
|
| 220 |
+
"lastNotNull"
|
| 221 |
+
],
|
| 222 |
+
"fields": "",
|
| 223 |
+
"values": false
|
| 224 |
+
},
|
| 225 |
+
"showPercentChange": false,
|
| 226 |
+
"textMode": "auto",
|
| 227 |
+
"wideLayout": true
|
| 228 |
+
},
|
| 229 |
+
"pluginVersion": "11.6.1",
|
| 230 |
+
"targets": [
|
| 231 |
+
{
|
| 232 |
+
"editorMode": "code",
|
| 233 |
+
"expr": "count(weaviate_replication_engine_running_status)",
|
| 234 |
+
"format": "table",
|
| 235 |
+
"legendFormat": "__auto",
|
| 236 |
+
"range": true,
|
| 237 |
+
"refId": "total"
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"datasource": {
|
| 241 |
+
"type": "prometheus",
|
| 242 |
+
"uid": "dejuz2d5dpptsa"
|
| 243 |
+
},
|
| 244 |
+
"editorMode": "code",
|
| 245 |
+
"expr": "sum(weaviate_replication_engine_running_status)",
|
| 246 |
+
"format": "table",
|
| 247 |
+
"hide": false,
|
| 248 |
+
"instant": false,
|
| 249 |
+
"legendFormat": "__auto",
|
| 250 |
+
"range": true,
|
| 251 |
+
"refId": "running"
|
| 252 |
+
}
|
| 253 |
+
],
|
| 254 |
+
"title": "Running replication engines",
|
| 255 |
+
"transformations": [
|
| 256 |
+
{
|
| 257 |
+
"id": "merge",
|
| 258 |
+
"options": {}
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"id": "calculateField",
|
| 262 |
+
"options": {
|
| 263 |
+
"binary": {
|
| 264 |
+
"left": {
|
| 265 |
+
"matcher": {
|
| 266 |
+
"id": "byName",
|
| 267 |
+
"options": "Value #running"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"operator": "/",
|
| 271 |
+
"right": {
|
| 272 |
+
"matcher": {
|
| 273 |
+
"id": "byName",
|
| 274 |
+
"options": "Value #total"
|
| 275 |
+
}
|
| 276 |
+
}
|
| 277 |
+
},
|
| 278 |
+
"mode": "binary",
|
| 279 |
+
"reduce": {
|
| 280 |
+
"reducer": "sum"
|
| 281 |
+
},
|
| 282 |
+
"replaceFields": true
|
| 283 |
+
}
|
| 284 |
+
}
|
| 285 |
+
],
|
| 286 |
+
"type": "stat"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"datasource": {
|
| 290 |
+
"type": "prometheus",
|
| 291 |
+
"uid": "dejuz2d5dpptsa"
|
| 292 |
+
},
|
| 293 |
+
"fieldConfig": {
|
| 294 |
+
"defaults": {
|
| 295 |
+
"color": {
|
| 296 |
+
"mode": "palette-classic"
|
| 297 |
+
},
|
| 298 |
+
"custom": {
|
| 299 |
+
"axisBorderShow": false,
|
| 300 |
+
"axisCenteredZero": false,
|
| 301 |
+
"axisColorMode": "text",
|
| 302 |
+
"axisLabel": "",
|
| 303 |
+
"axisPlacement": "auto",
|
| 304 |
+
"fillOpacity": 80,
|
| 305 |
+
"gradientMode": "none",
|
| 306 |
+
"hideFrom": {
|
| 307 |
+
"legend": false,
|
| 308 |
+
"tooltip": false,
|
| 309 |
+
"viz": false
|
| 310 |
+
},
|
| 311 |
+
"lineWidth": 1,
|
| 312 |
+
"scaleDistribution": {
|
| 313 |
+
"type": "linear"
|
| 314 |
+
},
|
| 315 |
+
"thresholdsStyle": {
|
| 316 |
+
"mode": "off"
|
| 317 |
+
}
|
| 318 |
+
},
|
| 319 |
+
"mappings": [],
|
| 320 |
+
"thresholds": {
|
| 321 |
+
"mode": "absolute",
|
| 322 |
+
"steps": [
|
| 323 |
+
{
|
| 324 |
+
"color": "green"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"color": "red",
|
| 328 |
+
"value": 80
|
| 329 |
+
}
|
| 330 |
+
]
|
| 331 |
+
}
|
| 332 |
+
},
|
| 333 |
+
"overrides": []
|
| 334 |
+
},
|
| 335 |
+
"gridPos": {
|
| 336 |
+
"h": 8,
|
| 337 |
+
"w": 12,
|
| 338 |
+
"x": 0,
|
| 339 |
+
"y": 9
|
| 340 |
+
},
|
| 341 |
+
"id": 6,
|
| 342 |
+
"options": {
|
| 343 |
+
"barRadius": 0,
|
| 344 |
+
"barWidth": 0.97,
|
| 345 |
+
"fullHighlight": false,
|
| 346 |
+
"groupWidth": 0.7,
|
| 347 |
+
"legend": {
|
| 348 |
+
"calcs": [],
|
| 349 |
+
"displayMode": "list",
|
| 350 |
+
"placement": "bottom",
|
| 351 |
+
"showLegend": true
|
| 352 |
+
},
|
| 353 |
+
"orientation": "vertical",
|
| 354 |
+
"showValue": "auto",
|
| 355 |
+
"stacking": "none",
|
| 356 |
+
"tooltip": {
|
| 357 |
+
"hideZeros": false,
|
| 358 |
+
"mode": "single",
|
| 359 |
+
"sort": "none"
|
| 360 |
+
},
|
| 361 |
+
"xTickLabelRotation": 0,
|
| 362 |
+
"xTickLabelSpacing": 0
|
| 363 |
+
},
|
| 364 |
+
"pluginVersion": "11.6.1",
|
| 365 |
+
"targets": [
|
| 366 |
+
{
|
| 367 |
+
"editorMode": "code",
|
| 368 |
+
"exemplar": false,
|
| 369 |
+
"expr": "weaviate_replication_pending_operations",
|
| 370 |
+
"instant": false,
|
| 371 |
+
"legendFormat": "{{node}}",
|
| 372 |
+
"range": true,
|
| 373 |
+
"refId": "top_pending_by_node"
|
| 374 |
+
}
|
| 375 |
+
],
|
| 376 |
+
"title": "Top 3 nodes with pending operations",
|
| 377 |
+
"transformations": [
|
| 378 |
+
{
|
| 379 |
+
"id": "reduce",
|
| 380 |
+
"options": {
|
| 381 |
+
"labelsToFields": false,
|
| 382 |
+
"reducers": [
|
| 383 |
+
"last"
|
| 384 |
+
]
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"id": "organize",
|
| 389 |
+
"options": {
|
| 390 |
+
"excludeByName": {},
|
| 391 |
+
"includeByName": {},
|
| 392 |
+
"indexByName": {},
|
| 393 |
+
"renameByName": {
|
| 394 |
+
"Field": "",
|
| 395 |
+
"Last": "Pending"
|
| 396 |
+
}
|
| 397 |
+
}
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"id": "sortBy",
|
| 401 |
+
"options": {
|
| 402 |
+
"fields": {},
|
| 403 |
+
"sort": [
|
| 404 |
+
{
|
| 405 |
+
"desc": true,
|
| 406 |
+
"field": "Pending"
|
| 407 |
+
}
|
| 408 |
+
]
|
| 409 |
+
}
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"id": "limit",
|
| 413 |
+
"options": {
|
| 414 |
+
"limitField": "3"
|
| 415 |
+
}
|
| 416 |
+
}
|
| 417 |
+
],
|
| 418 |
+
"type": "barchart"
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"datasource": {
|
| 422 |
+
"type": "prometheus",
|
| 423 |
+
"uid": "dejuz2d5dpptsa"
|
| 424 |
+
},
|
| 425 |
+
"fieldConfig": {
|
| 426 |
+
"defaults": {
|
| 427 |
+
"color": {
|
| 428 |
+
"mode": "palette-classic"
|
| 429 |
+
},
|
| 430 |
+
"custom": {
|
| 431 |
+
"axisBorderShow": false,
|
| 432 |
+
"axisCenteredZero": false,
|
| 433 |
+
"axisColorMode": "text",
|
| 434 |
+
"axisLabel": "",
|
| 435 |
+
"axisPlacement": "auto",
|
| 436 |
+
"fillOpacity": 80,
|
| 437 |
+
"gradientMode": "none",
|
| 438 |
+
"hideFrom": {
|
| 439 |
+
"legend": false,
|
| 440 |
+
"tooltip": false,
|
| 441 |
+
"viz": false
|
| 442 |
+
},
|
| 443 |
+
"lineWidth": 1,
|
| 444 |
+
"scaleDistribution": {
|
| 445 |
+
"type": "linear"
|
| 446 |
+
},
|
| 447 |
+
"thresholdsStyle": {
|
| 448 |
+
"mode": "off"
|
| 449 |
+
}
|
| 450 |
+
},
|
| 451 |
+
"mappings": [],
|
| 452 |
+
"thresholds": {
|
| 453 |
+
"mode": "absolute",
|
| 454 |
+
"steps": [
|
| 455 |
+
{
|
| 456 |
+
"color": "green"
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"color": "red",
|
| 460 |
+
"value": 80
|
| 461 |
+
}
|
| 462 |
+
]
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
+
"overrides": []
|
| 466 |
+
},
|
| 467 |
+
"gridPos": {
|
| 468 |
+
"h": 8,
|
| 469 |
+
"w": 12,
|
| 470 |
+
"x": 12,
|
| 471 |
+
"y": 9
|
| 472 |
+
},
|
| 473 |
+
"id": 7,
|
| 474 |
+
"options": {
|
| 475 |
+
"barRadius": 0,
|
| 476 |
+
"barWidth": 0.97,
|
| 477 |
+
"fullHighlight": false,
|
| 478 |
+
"groupWidth": 0.7,
|
| 479 |
+
"legend": {
|
| 480 |
+
"calcs": [],
|
| 481 |
+
"displayMode": "list",
|
| 482 |
+
"placement": "bottom",
|
| 483 |
+
"showLegend": true
|
| 484 |
+
},
|
| 485 |
+
"orientation": "vertical",
|
| 486 |
+
"showValue": "auto",
|
| 487 |
+
"stacking": "none",
|
| 488 |
+
"tooltip": {
|
| 489 |
+
"hideZeros": false,
|
| 490 |
+
"mode": "single",
|
| 491 |
+
"sort": "none"
|
| 492 |
+
},
|
| 493 |
+
"xTickLabelRotation": 0,
|
| 494 |
+
"xTickLabelSpacing": 0
|
| 495 |
+
},
|
| 496 |
+
"pluginVersion": "11.6.1",
|
| 497 |
+
"targets": [
|
| 498 |
+
{
|
| 499 |
+
"editorMode": "code",
|
| 500 |
+
"exemplar": false,
|
| 501 |
+
"expr": "weaviate_replication_ongoing_operations",
|
| 502 |
+
"instant": false,
|
| 503 |
+
"legendFormat": "{{node}}",
|
| 504 |
+
"range": true,
|
| 505 |
+
"refId": "top_pending_by_node"
|
| 506 |
+
}
|
| 507 |
+
],
|
| 508 |
+
"title": "Top 3 nodes with ongoing operations",
|
| 509 |
+
"transformations": [
|
| 510 |
+
{
|
| 511 |
+
"id": "reduce",
|
| 512 |
+
"options": {
|
| 513 |
+
"labelsToFields": false,
|
| 514 |
+
"reducers": [
|
| 515 |
+
"last"
|
| 516 |
+
]
|
| 517 |
+
}
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"id": "organize",
|
| 521 |
+
"options": {
|
| 522 |
+
"excludeByName": {},
|
| 523 |
+
"includeByName": {},
|
| 524 |
+
"indexByName": {},
|
| 525 |
+
"renameByName": {
|
| 526 |
+
"Field": "",
|
| 527 |
+
"Last": "Ongoing"
|
| 528 |
+
}
|
| 529 |
+
}
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"id": "sortBy",
|
| 533 |
+
"options": {
|
| 534 |
+
"fields": {},
|
| 535 |
+
"sort": [
|
| 536 |
+
{
|
| 537 |
+
"desc": true,
|
| 538 |
+
"field": "Ongoing"
|
| 539 |
+
}
|
| 540 |
+
]
|
| 541 |
+
}
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"id": "limit",
|
| 545 |
+
"options": {
|
| 546 |
+
"limitField": "3"
|
| 547 |
+
}
|
| 548 |
+
}
|
| 549 |
+
],
|
| 550 |
+
"type": "barchart"
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"datasource": {
|
| 554 |
+
"type": "prometheus",
|
| 555 |
+
"uid": "dejuz2d5dpptsa"
|
| 556 |
+
},
|
| 557 |
+
"fieldConfig": {
|
| 558 |
+
"defaults": {
|
| 559 |
+
"color": {
|
| 560 |
+
"mode": "thresholds"
|
| 561 |
+
},
|
| 562 |
+
"decimals": 0,
|
| 563 |
+
"mappings": [],
|
| 564 |
+
"thresholds": {
|
| 565 |
+
"mode": "absolute",
|
| 566 |
+
"steps": [
|
| 567 |
+
{
|
| 568 |
+
"color": "green"
|
| 569 |
+
}
|
| 570 |
+
]
|
| 571 |
+
},
|
| 572 |
+
"unit": "short"
|
| 573 |
+
},
|
| 574 |
+
"overrides": [
|
| 575 |
+
{
|
| 576 |
+
"matcher": {
|
| 577 |
+
"id": "byFrameRefID",
|
| 578 |
+
"options": "failed_ops_by_node"
|
| 579 |
+
},
|
| 580 |
+
"properties": [
|
| 581 |
+
{
|
| 582 |
+
"id": "thresholds",
|
| 583 |
+
"value": {
|
| 584 |
+
"mode": "absolute",
|
| 585 |
+
"steps": [
|
| 586 |
+
{
|
| 587 |
+
"color": "green"
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"color": "red",
|
| 591 |
+
"value": 1
|
| 592 |
+
}
|
| 593 |
+
]
|
| 594 |
+
}
|
| 595 |
+
}
|
| 596 |
+
]
|
| 597 |
+
}
|
| 598 |
+
]
|
| 599 |
+
},
|
| 600 |
+
"gridPos": {
|
| 601 |
+
"h": 8,
|
| 602 |
+
"w": 24,
|
| 603 |
+
"x": 0,
|
| 604 |
+
"y": 17
|
| 605 |
+
},
|
| 606 |
+
"id": 3,
|
| 607 |
+
"options": {
|
| 608 |
+
"colorMode": "value",
|
| 609 |
+
"graphMode": "area",
|
| 610 |
+
"justifyMode": "auto",
|
| 611 |
+
"orientation": "auto",
|
| 612 |
+
"percentChangeColorMode": "standard",
|
| 613 |
+
"reduceOptions": {
|
| 614 |
+
"calcs": [
|
| 615 |
+
"lastNotNull"
|
| 616 |
+
],
|
| 617 |
+
"fields": "",
|
| 618 |
+
"values": false
|
| 619 |
+
},
|
| 620 |
+
"showPercentChange": false,
|
| 621 |
+
"textMode": "auto",
|
| 622 |
+
"wideLayout": true
|
| 623 |
+
},
|
| 624 |
+
"pluginVersion": "11.6.1",
|
| 625 |
+
"targets": [
|
| 626 |
+
{
|
| 627 |
+
"datasource": {
|
| 628 |
+
"type": "prometheus",
|
| 629 |
+
"uid": "dejuz2d5dpptsa"
|
| 630 |
+
},
|
| 631 |
+
"editorMode": "code",
|
| 632 |
+
"exemplar": false,
|
| 633 |
+
"expr": "sum by (node) (weaviate_replication_pending_operations)",
|
| 634 |
+
"hide": false,
|
| 635 |
+
"legendFormat": "{{node}} (pending)",
|
| 636 |
+
"range": true,
|
| 637 |
+
"refId": "pending_ops_by_node"
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"datasource": {
|
| 641 |
+
"type": "prometheus",
|
| 642 |
+
"uid": "dejuz2d5dpptsa"
|
| 643 |
+
},
|
| 644 |
+
"editorMode": "code",
|
| 645 |
+
"expr": "sum by (node) (weaviate_replication_ongoing_operations)",
|
| 646 |
+
"hide": false,
|
| 647 |
+
"instant": false,
|
| 648 |
+
"legendFormat": "{{node}} (ongoing)",
|
| 649 |
+
"range": true,
|
| 650 |
+
"refId": "ongoing_ops_by_node"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"datasource": {
|
| 654 |
+
"type": "prometheus",
|
| 655 |
+
"uid": "dejuz2d5dpptsa"
|
| 656 |
+
},
|
| 657 |
+
"editorMode": "code",
|
| 658 |
+
"expr": "sum by (node) (increase(weaviate_replication_complete_operations[$__range]))",
|
| 659 |
+
"hide": false,
|
| 660 |
+
"instant": false,
|
| 661 |
+
"legendFormat": "{{node}} (completed)",
|
| 662 |
+
"range": true,
|
| 663 |
+
"refId": "complted_ops_by_node"
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"datasource": {
|
| 667 |
+
"type": "prometheus",
|
| 668 |
+
"uid": "dejuz2d5dpptsa"
|
| 669 |
+
},
|
| 670 |
+
"editorMode": "code",
|
| 671 |
+
"expr": "sum by (node) (increase(weaviate_replication_failed_operations[$__range]))",
|
| 672 |
+
"hide": false,
|
| 673 |
+
"instant": false,
|
| 674 |
+
"legendFormat": "{{node}} (failed)",
|
| 675 |
+
"range": true,
|
| 676 |
+
"refId": "failed_ops_by_node"
|
| 677 |
+
}
|
| 678 |
+
],
|
| 679 |
+
"title": "Replication operations by node",
|
| 680 |
+
"type": "stat"
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"datasource": {
|
| 684 |
+
"uid": "dejuz2d5dpptsa"
|
| 685 |
+
},
|
| 686 |
+
"description": "Replication engine running status (0: not running, 1: running)",
|
| 687 |
+
"fieldConfig": {
|
| 688 |
+
"defaults": {
|
| 689 |
+
"color": {
|
| 690 |
+
"mode": "thresholds"
|
| 691 |
+
},
|
| 692 |
+
"mappings": [
|
| 693 |
+
{
|
| 694 |
+
"options": {
|
| 695 |
+
"0": {
|
| 696 |
+
"color": "red",
|
| 697 |
+
"index": 0,
|
| 698 |
+
"text": "Not running"
|
| 699 |
+
},
|
| 700 |
+
"1": {
|
| 701 |
+
"color": "green",
|
| 702 |
+
"index": 1,
|
| 703 |
+
"text": "Running"
|
| 704 |
+
}
|
| 705 |
+
},
|
| 706 |
+
"type": "value"
|
| 707 |
+
}
|
| 708 |
+
],
|
| 709 |
+
"thresholds": {
|
| 710 |
+
"mode": "absolute",
|
| 711 |
+
"steps": [
|
| 712 |
+
{
|
| 713 |
+
"color": "green"
|
| 714 |
+
}
|
| 715 |
+
]
|
| 716 |
+
}
|
| 717 |
+
},
|
| 718 |
+
"overrides": []
|
| 719 |
+
},
|
| 720 |
+
"gridPos": {
|
| 721 |
+
"h": 9,
|
| 722 |
+
"w": 24,
|
| 723 |
+
"x": 0,
|
| 724 |
+
"y": 25
|
| 725 |
+
},
|
| 726 |
+
"id": 1,
|
| 727 |
+
"options": {
|
| 728 |
+
"minVizHeight": 75,
|
| 729 |
+
"minVizWidth": 100,
|
| 730 |
+
"orientation": "auto",
|
| 731 |
+
"reduceOptions": {
|
| 732 |
+
"calcs": [
|
| 733 |
+
"lastNotNull"
|
| 734 |
+
],
|
| 735 |
+
"fields": "",
|
| 736 |
+
"values": false
|
| 737 |
+
},
|
| 738 |
+
"showThresholdLabels": false,
|
| 739 |
+
"showThresholdMarkers": false,
|
| 740 |
+
"sizing": "manual"
|
| 741 |
+
},
|
| 742 |
+
"pluginVersion": "11.6.1",
|
| 743 |
+
"targets": [
|
| 744 |
+
{
|
| 745 |
+
"editorMode": "code",
|
| 746 |
+
"exemplar": false,
|
| 747 |
+
"expr": "sum by (node) (weaviate_replication_engine_running_status)",
|
| 748 |
+
"legendFormat": "engine-{{node}}",
|
| 749 |
+
"range": true,
|
| 750 |
+
"refId": "engine_running_status_by_node"
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"datasource": {
|
| 754 |
+
"type": "prometheus",
|
| 755 |
+
"uid": "dejuz2d5dpptsa"
|
| 756 |
+
},
|
| 757 |
+
"editorMode": "code",
|
| 758 |
+
"expr": "sum by (node) (weaviate_replication_engine_producer_running_status)",
|
| 759 |
+
"hide": false,
|
| 760 |
+
"instant": false,
|
| 761 |
+
"legendFormat": "producer-{{node}}",
|
| 762 |
+
"range": true,
|
| 763 |
+
"refId": "producer_running_status_by_node"
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"datasource": {
|
| 767 |
+
"type": "prometheus",
|
| 768 |
+
"uid": "dejuz2d5dpptsa"
|
| 769 |
+
},
|
| 770 |
+
"editorMode": "code",
|
| 771 |
+
"expr": "sum by (node) (weaviate_replication_engine_consumer_running_status)",
|
| 772 |
+
"hide": false,
|
| 773 |
+
"instant": false,
|
| 774 |
+
"legendFormat": "consumer-{{node}}",
|
| 775 |
+
"range": true,
|
| 776 |
+
"refId": "consumer_running_status_by_node"
|
| 777 |
+
}
|
| 778 |
+
],
|
| 779 |
+
"title": "Running status by node",
|
| 780 |
+
"type": "gauge"
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"datasource": {
|
| 784 |
+
"type": "prometheus",
|
| 785 |
+
"uid": "dejuz2d5dpptsa"
|
| 786 |
+
},
|
| 787 |
+
"fieldConfig": {
|
| 788 |
+
"defaults": {
|
| 789 |
+
"color": {
|
| 790 |
+
"mode": "thresholds"
|
| 791 |
+
},
|
| 792 |
+
"mappings": [],
|
| 793 |
+
"thresholds": {
|
| 794 |
+
"mode": "absolute",
|
| 795 |
+
"steps": [
|
| 796 |
+
{
|
| 797 |
+
"color": "green"
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"color": "red",
|
| 801 |
+
"value": 80
|
| 802 |
+
}
|
| 803 |
+
]
|
| 804 |
+
},
|
| 805 |
+
"unit": "percent"
|
| 806 |
+
},
|
| 807 |
+
"overrides": []
|
| 808 |
+
},
|
| 809 |
+
"gridPos": {
|
| 810 |
+
"h": 8,
|
| 811 |
+
"w": 24,
|
| 812 |
+
"x": 0,
|
| 813 |
+
"y": 34
|
| 814 |
+
},
|
| 815 |
+
"id": 5,
|
| 816 |
+
"options": {
|
| 817 |
+
"colorMode": "value",
|
| 818 |
+
"graphMode": "area",
|
| 819 |
+
"justifyMode": "auto",
|
| 820 |
+
"orientation": "auto",
|
| 821 |
+
"percentChangeColorMode": "standard",
|
| 822 |
+
"reduceOptions": {
|
| 823 |
+
"calcs": [
|
| 824 |
+
"lastNotNull"
|
| 825 |
+
],
|
| 826 |
+
"fields": "",
|
| 827 |
+
"values": false
|
| 828 |
+
},
|
| 829 |
+
"showPercentChange": false,
|
| 830 |
+
"textMode": "auto",
|
| 831 |
+
"wideLayout": true
|
| 832 |
+
},
|
| 833 |
+
"pluginVersion": "11.6.1",
|
| 834 |
+
"targets": [
|
| 835 |
+
{
|
| 836 |
+
"editorMode": "code",
|
| 837 |
+
"expr": "(\n sum by (node) (increase(weaviate_replication_failed_operations[$__range]))\n)\n/\n(\n sum by (node) (increase(weaviate_replication_complete_operations[$__range]))\n +\n sum by (node) (increase(weaviate_replication_failed_operations[$__range]))\n)\n",
|
| 838 |
+
"legendFormat": "__auto",
|
| 839 |
+
"range": true,
|
| 840 |
+
"refId": "replication_failure_rate_by_node"
|
| 841 |
+
}
|
| 842 |
+
],
|
| 843 |
+
"title": "Failure rate by node",
|
| 844 |
+
"type": "stat"
|
| 845 |
+
}
|
| 846 |
+
],
|
| 847 |
+
"preload": false,
|
| 848 |
+
"schemaVersion": 41,
|
| 849 |
+
"tags": [],
|
| 850 |
+
"templating": {
|
| 851 |
+
"list": []
|
| 852 |
+
},
|
| 853 |
+
"time": {
|
| 854 |
+
"from": "now-3h",
|
| 855 |
+
"to": "now"
|
| 856 |
+
},
|
| 857 |
+
"timepicker": {},
|
| 858 |
+
"timezone": "browser",
|
| 859 |
+
"title": "Replication engine",
|
| 860 |
+
"uid": "aejvwfv8vkq2oa",
|
| 861 |
+
"version": 79
|
| 862 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/schema.json
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"target": {
|
| 15 |
+
"limit": 100,
|
| 16 |
+
"matchAny": false,
|
| 17 |
+
"tags": [],
|
| 18 |
+
"type": "dashboard"
|
| 19 |
+
},
|
| 20 |
+
"type": "dashboard"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"editable": true,
|
| 25 |
+
"fiscalYearStartMonth": 0,
|
| 26 |
+
"graphTooltip": 0,
|
| 27 |
+
"id": 10,
|
| 28 |
+
"links": [],
|
| 29 |
+
"liveNow": false,
|
| 30 |
+
"panels": [
|
| 31 |
+
{
|
| 32 |
+
"datasource": {
|
| 33 |
+
"type": "prometheus",
|
| 34 |
+
"uid": "Prometheus"
|
| 35 |
+
},
|
| 36 |
+
"fieldConfig": {
|
| 37 |
+
"defaults": {
|
| 38 |
+
"unit": "s"
|
| 39 |
+
},
|
| 40 |
+
"overrides": []
|
| 41 |
+
},
|
| 42 |
+
"gridPos": {
|
| 43 |
+
"h": 9,
|
| 44 |
+
"w": 12,
|
| 45 |
+
"x": 0,
|
| 46 |
+
"y": 0
|
| 47 |
+
},
|
| 48 |
+
"id": 1,
|
| 49 |
+
"options": {
|
| 50 |
+
"showPoints": "always",
|
| 51 |
+
"lineWidth": 2,
|
| 52 |
+
"fillOpacity": 20
|
| 53 |
+
},
|
| 54 |
+
"targets": [
|
| 55 |
+
{
|
| 56 |
+
"datasource": {
|
| 57 |
+
"type": "prometheus",
|
| 58 |
+
"uid": "Prometheus"
|
| 59 |
+
},
|
| 60 |
+
"editorMode": "code",
|
| 61 |
+
"expr": "rate(schema_wait_for_version_seconds_sum[$__rate_interval]) / rate(schema_wait_for_version_seconds_count[$__rate_interval])",
|
| 62 |
+
"interval": "",
|
| 63 |
+
"legendFormat": "{{type}}",
|
| 64 |
+
"refId": "A"
|
| 65 |
+
}
|
| 66 |
+
],
|
| 67 |
+
"title": "Schema Wait for Version Time",
|
| 68 |
+
"description": "Measures the time a follower node will wait for a schema change to propagate from the leader and it allows a data read to process.",
|
| 69 |
+
"type": "timeseries"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"datasource": {
|
| 73 |
+
"type": "prometheus",
|
| 74 |
+
"uid": "Prometheus"
|
| 75 |
+
},
|
| 76 |
+
"fieldConfig": {
|
| 77 |
+
"defaults": {
|
| 78 |
+
"unit": "s"
|
| 79 |
+
},
|
| 80 |
+
"overrides": []
|
| 81 |
+
},
|
| 82 |
+
"gridPos": {
|
| 83 |
+
"h": 9,
|
| 84 |
+
"w": 12,
|
| 85 |
+
"x": 12,
|
| 86 |
+
"y": 0
|
| 87 |
+
},
|
| 88 |
+
"id": 2,
|
| 89 |
+
"options": {
|
| 90 |
+
"showPoints": "always",
|
| 91 |
+
"lineWidth": 2,
|
| 92 |
+
"fillOpacity": 20
|
| 93 |
+
},
|
| 94 |
+
"targets": [
|
| 95 |
+
{
|
| 96 |
+
"datasource": {
|
| 97 |
+
"type": "prometheus",
|
| 98 |
+
"uid": "Prometheus"
|
| 99 |
+
},
|
| 100 |
+
"editorMode": "code",
|
| 101 |
+
"expr": "rate(schema_reads_leader_seconds_sum[$__rate_interval]) / rate(schema_reads_leader_seconds_count[$__rate_interval])",
|
| 102 |
+
"interval": "",
|
| 103 |
+
"legendFormat": "{{type}}",
|
| 104 |
+
"refId": "A"
|
| 105 |
+
}
|
| 106 |
+
],
|
| 107 |
+
"title": "Schema Reads Leader Time",
|
| 108 |
+
"description": "Measures how long does it takes for a follower node to query the leader for a schema state.",
|
| 109 |
+
"type": "timeseries"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"datasource": {
|
| 113 |
+
"type": "prometheus",
|
| 114 |
+
"uid": "Prometheus"
|
| 115 |
+
},
|
| 116 |
+
"fieldConfig": {
|
| 117 |
+
"defaults": {
|
| 118 |
+
"unit": "s"
|
| 119 |
+
},
|
| 120 |
+
"overrides": []
|
| 121 |
+
},
|
| 122 |
+
"gridPos": {
|
| 123 |
+
"h": 9,
|
| 124 |
+
"w": 12,
|
| 125 |
+
"x": 0,
|
| 126 |
+
"y": 9
|
| 127 |
+
},
|
| 128 |
+
"id": 3,
|
| 129 |
+
"options": {
|
| 130 |
+
"showPoints": "always",
|
| 131 |
+
"lineWidth": 2,
|
| 132 |
+
"fillOpacity": 20
|
| 133 |
+
},
|
| 134 |
+
"targets": [
|
| 135 |
+
{
|
| 136 |
+
"datasource": {
|
| 137 |
+
"type": "prometheus",
|
| 138 |
+
"uid": "Prometheus"
|
| 139 |
+
},
|
| 140 |
+
"editorMode": "code",
|
| 141 |
+
"expr": "rate(schema_reads_local_seconds_sum[$__rate_interval]) / rate(schema_reads_local_seconds_count[$__rate_interval])",
|
| 142 |
+
"interval": "",
|
| 143 |
+
"legendFormat": "{{type}}",
|
| 144 |
+
"refId": "A"
|
| 145 |
+
}
|
| 146 |
+
],
|
| 147 |
+
"title": "Schema Reads Local Time",
|
| 148 |
+
"description": "Measures how long does it takes for a node to query the local schema copy it has.",
|
| 149 |
+
"type": "timeseries"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"datasource": {
|
| 153 |
+
"type": "prometheus",
|
| 154 |
+
"uid": "Prometheus"
|
| 155 |
+
},
|
| 156 |
+
"fieldConfig": {
|
| 157 |
+
"defaults": {
|
| 158 |
+
"unit": "s"
|
| 159 |
+
},
|
| 160 |
+
"overrides": []
|
| 161 |
+
},
|
| 162 |
+
"gridPos": {
|
| 163 |
+
"h": 9,
|
| 164 |
+
"w": 12,
|
| 165 |
+
"x": 12,
|
| 166 |
+
"y": 9
|
| 167 |
+
},
|
| 168 |
+
"id": 4,
|
| 169 |
+
"options": {
|
| 170 |
+
"showPoints": "always",
|
| 171 |
+
"lineWidth": 2,
|
| 172 |
+
"fillOpacity": 20
|
| 173 |
+
},
|
| 174 |
+
"targets": [
|
| 175 |
+
{
|
| 176 |
+
"datasource": {
|
| 177 |
+
"type": "prometheus",
|
| 178 |
+
"uid": "Prometheus"
|
| 179 |
+
},
|
| 180 |
+
"editorMode": "code",
|
| 181 |
+
"expr": "rate(schema_writes_seconds_sum[$__rate_interval]) / rate(schema_writes_seconds_count[$__rate_interval])",
|
| 182 |
+
"interval": "",
|
| 183 |
+
"legendFormat": "{{type}}",
|
| 184 |
+
"refId": "A"
|
| 185 |
+
}
|
| 186 |
+
],
|
| 187 |
+
"title": "Schema Writes Time",
|
| 188 |
+
"description": "Measures how long does it take for a node to write to the schema (effectively talk to the leader to get a change accepted).",
|
| 189 |
+
"type": "timeseries"
|
| 190 |
+
}
|
| 191 |
+
],
|
| 192 |
+
"schemaVersion": 30,
|
| 193 |
+
"style": "dark",
|
| 194 |
+
"tags": ["weaviate"],
|
| 195 |
+
"templating": {
|
| 196 |
+
"list": []
|
| 197 |
+
},
|
| 198 |
+
"time": {
|
| 199 |
+
"from": "now-3h",
|
| 200 |
+
"to": "now"
|
| 201 |
+
},
|
| 202 |
+
"timepicker": {},
|
| 203 |
+
"timezone": "",
|
| 204 |
+
"title": "Schema Transactions",
|
| 205 |
+
"uid": "J4aHTlxIz",
|
| 206 |
+
"version": 1,
|
| 207 |
+
"weekStart": ""
|
| 208 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/startup.json
ADDED
|
@@ -0,0 +1,423 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": "-- Grafana --",
|
| 7 |
+
"enable": true,
|
| 8 |
+
"hide": true,
|
| 9 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 10 |
+
"name": "Annotations & Alerts",
|
| 11 |
+
"target": {
|
| 12 |
+
"limit": 100,
|
| 13 |
+
"matchAny": false,
|
| 14 |
+
"tags": [],
|
| 15 |
+
"type": "dashboard"
|
| 16 |
+
},
|
| 17 |
+
"type": "dashboard"
|
| 18 |
+
}
|
| 19 |
+
]
|
| 20 |
+
},
|
| 21 |
+
"editable": true,
|
| 22 |
+
"fiscalYearStartMonth": 0,
|
| 23 |
+
"graphTooltip": 0,
|
| 24 |
+
"links": [],
|
| 25 |
+
"liveNow": false,
|
| 26 |
+
"panels": [
|
| 27 |
+
{
|
| 28 |
+
"datasource": {
|
| 29 |
+
"type": "prometheus",
|
| 30 |
+
"uid": "Prometheus"
|
| 31 |
+
},
|
| 32 |
+
"fieldConfig": {
|
| 33 |
+
"defaults": {
|
| 34 |
+
"color": {
|
| 35 |
+
"mode": "palette-classic"
|
| 36 |
+
},
|
| 37 |
+
"custom": {
|
| 38 |
+
"axisLabel": "",
|
| 39 |
+
"axisPlacement": "auto",
|
| 40 |
+
"barAlignment": 0,
|
| 41 |
+
"drawStyle": "line",
|
| 42 |
+
"fillOpacity": 0,
|
| 43 |
+
"gradientMode": "none",
|
| 44 |
+
"hideFrom": {
|
| 45 |
+
"legend": false,
|
| 46 |
+
"tooltip": false,
|
| 47 |
+
"viz": false
|
| 48 |
+
},
|
| 49 |
+
"lineInterpolation": "linear",
|
| 50 |
+
"lineWidth": 1,
|
| 51 |
+
"pointSize": 5,
|
| 52 |
+
"scaleDistribution": {
|
| 53 |
+
"type": "linear"
|
| 54 |
+
},
|
| 55 |
+
"showPoints": "auto",
|
| 56 |
+
"spanNulls": false,
|
| 57 |
+
"stacking": {
|
| 58 |
+
"group": "A",
|
| 59 |
+
"mode": "none"
|
| 60 |
+
},
|
| 61 |
+
"thresholdsStyle": {
|
| 62 |
+
"mode": "off"
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"mappings": [],
|
| 66 |
+
"thresholds": {
|
| 67 |
+
"mode": "absolute",
|
| 68 |
+
"steps": [
|
| 69 |
+
{
|
| 70 |
+
"color": "green",
|
| 71 |
+
"value": null
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"color": "red",
|
| 75 |
+
"value": 80
|
| 76 |
+
}
|
| 77 |
+
]
|
| 78 |
+
},
|
| 79 |
+
"unit": "ms"
|
| 80 |
+
},
|
| 81 |
+
"overrides": []
|
| 82 |
+
},
|
| 83 |
+
"gridPos": {
|
| 84 |
+
"h": 9,
|
| 85 |
+
"w": 12,
|
| 86 |
+
"x": 0,
|
| 87 |
+
"y": 0
|
| 88 |
+
},
|
| 89 |
+
"id": 2,
|
| 90 |
+
"options": {
|
| 91 |
+
"legend": {
|
| 92 |
+
"calcs": [],
|
| 93 |
+
"displayMode": "list",
|
| 94 |
+
"placement": "bottom"
|
| 95 |
+
},
|
| 96 |
+
"tooltip": {
|
| 97 |
+
"mode": "single"
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"targets": [
|
| 101 |
+
{
|
| 102 |
+
"datasource": {
|
| 103 |
+
"type": "prometheus",
|
| 104 |
+
"uid": "Prometheus"
|
| 105 |
+
},
|
| 106 |
+
"exemplar": true,
|
| 107 |
+
"expr": "rate(startup_durations_ms_sum{}[$__interval])/rate(startup_durations_ms_count{}[$__interval])",
|
| 108 |
+
"interval": "",
|
| 109 |
+
"legendFormat": "{{operation}} ({{class_name}} / {{shard_name}})",
|
| 110 |
+
"refId": "A"
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"title": "Startup durations",
|
| 114 |
+
"type": "timeseries"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"datasource": {
|
| 118 |
+
"type": "prometheus",
|
| 119 |
+
"uid": "Prometheus"
|
| 120 |
+
},
|
| 121 |
+
"description": "These times do not represent wall time. Some init processes are running in parallel, so this is CPU time. For a wall clock measurement look at total shard startup time.",
|
| 122 |
+
"fieldConfig": {
|
| 123 |
+
"defaults": {
|
| 124 |
+
"color": {
|
| 125 |
+
"mode": "thresholds"
|
| 126 |
+
},
|
| 127 |
+
"mappings": [],
|
| 128 |
+
"thresholds": {
|
| 129 |
+
"mode": "absolute",
|
| 130 |
+
"steps": [
|
| 131 |
+
{
|
| 132 |
+
"color": "green",
|
| 133 |
+
"value": null
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"color": "red",
|
| 137 |
+
"value": 80
|
| 138 |
+
}
|
| 139 |
+
]
|
| 140 |
+
},
|
| 141 |
+
"unit": "ms"
|
| 142 |
+
},
|
| 143 |
+
"overrides": []
|
| 144 |
+
},
|
| 145 |
+
"gridPos": {
|
| 146 |
+
"h": 9,
|
| 147 |
+
"w": 3,
|
| 148 |
+
"x": 12,
|
| 149 |
+
"y": 0
|
| 150 |
+
},
|
| 151 |
+
"id": 4,
|
| 152 |
+
"options": {
|
| 153 |
+
"colorMode": "value",
|
| 154 |
+
"graphMode": "area",
|
| 155 |
+
"justifyMode": "auto",
|
| 156 |
+
"orientation": "auto",
|
| 157 |
+
"reduceOptions": {
|
| 158 |
+
"calcs": [
|
| 159 |
+
"lastNotNull"
|
| 160 |
+
],
|
| 161 |
+
"fields": "",
|
| 162 |
+
"values": false
|
| 163 |
+
},
|
| 164 |
+
"textMode": "auto"
|
| 165 |
+
},
|
| 166 |
+
"pluginVersion": "8.3.3",
|
| 167 |
+
"targets": [
|
| 168 |
+
{
|
| 169 |
+
"datasource": {
|
| 170 |
+
"type": "prometheus",
|
| 171 |
+
"uid": "Prometheus"
|
| 172 |
+
},
|
| 173 |
+
"exemplar": true,
|
| 174 |
+
"expr": "sum(startup_durations_ms_sum{operation=\"lsm_startup_bucket\"})",
|
| 175 |
+
"interval": "",
|
| 176 |
+
"legendFormat": "",
|
| 177 |
+
"refId": "A"
|
| 178 |
+
}
|
| 179 |
+
],
|
| 180 |
+
"title": "Startup all LSM buckets",
|
| 181 |
+
"type": "stat"
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"datasource": {
|
| 185 |
+
"type": "prometheus",
|
| 186 |
+
"uid": "Prometheus"
|
| 187 |
+
},
|
| 188 |
+
"description": "",
|
| 189 |
+
"fieldConfig": {
|
| 190 |
+
"defaults": {
|
| 191 |
+
"color": {
|
| 192 |
+
"mode": "thresholds"
|
| 193 |
+
},
|
| 194 |
+
"mappings": [],
|
| 195 |
+
"thresholds": {
|
| 196 |
+
"mode": "absolute",
|
| 197 |
+
"steps": [
|
| 198 |
+
{
|
| 199 |
+
"color": "green",
|
| 200 |
+
"value": null
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"color": "red",
|
| 204 |
+
"value": 80
|
| 205 |
+
}
|
| 206 |
+
]
|
| 207 |
+
},
|
| 208 |
+
"unit": "ms"
|
| 209 |
+
},
|
| 210 |
+
"overrides": []
|
| 211 |
+
},
|
| 212 |
+
"gridPos": {
|
| 213 |
+
"h": 9,
|
| 214 |
+
"w": 3,
|
| 215 |
+
"x": 15,
|
| 216 |
+
"y": 0
|
| 217 |
+
},
|
| 218 |
+
"id": 5,
|
| 219 |
+
"options": {
|
| 220 |
+
"colorMode": "value",
|
| 221 |
+
"graphMode": "area",
|
| 222 |
+
"justifyMode": "auto",
|
| 223 |
+
"orientation": "auto",
|
| 224 |
+
"reduceOptions": {
|
| 225 |
+
"calcs": [
|
| 226 |
+
"lastNotNull"
|
| 227 |
+
],
|
| 228 |
+
"fields": "",
|
| 229 |
+
"values": false
|
| 230 |
+
},
|
| 231 |
+
"textMode": "auto"
|
| 232 |
+
},
|
| 233 |
+
"pluginVersion": "8.3.3",
|
| 234 |
+
"targets": [
|
| 235 |
+
{
|
| 236 |
+
"datasource": {
|
| 237 |
+
"type": "prometheus",
|
| 238 |
+
"uid": "Prometheus"
|
| 239 |
+
},
|
| 240 |
+
"exemplar": true,
|
| 241 |
+
"expr": "sum(startup_durations_ms_sum{operation=\"hnsw_read_all_commitlogs\"})",
|
| 242 |
+
"interval": "",
|
| 243 |
+
"legendFormat": "",
|
| 244 |
+
"refId": "A"
|
| 245 |
+
}
|
| 246 |
+
],
|
| 247 |
+
"title": "Startup all HNSW indexes",
|
| 248 |
+
"type": "stat"
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"datasource": {
|
| 252 |
+
"type": "prometheus",
|
| 253 |
+
"uid": "Prometheus"
|
| 254 |
+
},
|
| 255 |
+
"description": "This represents the total wall time per shard.",
|
| 256 |
+
"fieldConfig": {
|
| 257 |
+
"defaults": {
|
| 258 |
+
"color": {
|
| 259 |
+
"mode": "thresholds"
|
| 260 |
+
},
|
| 261 |
+
"mappings": [],
|
| 262 |
+
"thresholds": {
|
| 263 |
+
"mode": "absolute",
|
| 264 |
+
"steps": [
|
| 265 |
+
{
|
| 266 |
+
"color": "green",
|
| 267 |
+
"value": null
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"color": "red",
|
| 271 |
+
"value": 80
|
| 272 |
+
}
|
| 273 |
+
]
|
| 274 |
+
},
|
| 275 |
+
"unit": "ms"
|
| 276 |
+
},
|
| 277 |
+
"overrides": []
|
| 278 |
+
},
|
| 279 |
+
"gridPos": {
|
| 280 |
+
"h": 9,
|
| 281 |
+
"w": 3,
|
| 282 |
+
"x": 18,
|
| 283 |
+
"y": 0
|
| 284 |
+
},
|
| 285 |
+
"id": 8,
|
| 286 |
+
"options": {
|
| 287 |
+
"colorMode": "value",
|
| 288 |
+
"graphMode": "area",
|
| 289 |
+
"justifyMode": "auto",
|
| 290 |
+
"orientation": "auto",
|
| 291 |
+
"reduceOptions": {
|
| 292 |
+
"calcs": [
|
| 293 |
+
"lastNotNull"
|
| 294 |
+
],
|
| 295 |
+
"fields": "",
|
| 296 |
+
"values": false
|
| 297 |
+
},
|
| 298 |
+
"textMode": "auto"
|
| 299 |
+
},
|
| 300 |
+
"pluginVersion": "8.3.3",
|
| 301 |
+
"targets": [
|
| 302 |
+
{
|
| 303 |
+
"datasource": {
|
| 304 |
+
"type": "prometheus",
|
| 305 |
+
"uid": "Prometheus"
|
| 306 |
+
},
|
| 307 |
+
"exemplar": true,
|
| 308 |
+
"expr": "startup_durations_ms_sum{operation=\"shard_total_init\"}",
|
| 309 |
+
"interval": "",
|
| 310 |
+
"legendFormat": "{{class_name}}/{{shard_name}}",
|
| 311 |
+
"refId": "A"
|
| 312 |
+
}
|
| 313 |
+
],
|
| 314 |
+
"title": "Total shard Startup",
|
| 315 |
+
"type": "stat"
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"datasource": {
|
| 319 |
+
"type": "prometheus",
|
| 320 |
+
"uid": "Prometheus"
|
| 321 |
+
},
|
| 322 |
+
"fieldConfig": {
|
| 323 |
+
"defaults": {
|
| 324 |
+
"color": {
|
| 325 |
+
"mode": "palette-classic"
|
| 326 |
+
},
|
| 327 |
+
"custom": {
|
| 328 |
+
"axisLabel": "",
|
| 329 |
+
"axisPlacement": "auto",
|
| 330 |
+
"barAlignment": 0,
|
| 331 |
+
"drawStyle": "line",
|
| 332 |
+
"fillOpacity": 0,
|
| 333 |
+
"gradientMode": "none",
|
| 334 |
+
"hideFrom": {
|
| 335 |
+
"legend": false,
|
| 336 |
+
"tooltip": false,
|
| 337 |
+
"viz": false
|
| 338 |
+
},
|
| 339 |
+
"lineInterpolation": "linear",
|
| 340 |
+
"lineWidth": 1,
|
| 341 |
+
"pointSize": 5,
|
| 342 |
+
"scaleDistribution": {
|
| 343 |
+
"type": "linear"
|
| 344 |
+
},
|
| 345 |
+
"showPoints": "auto",
|
| 346 |
+
"spanNulls": false,
|
| 347 |
+
"stacking": {
|
| 348 |
+
"group": "A",
|
| 349 |
+
"mode": "none"
|
| 350 |
+
},
|
| 351 |
+
"thresholdsStyle": {
|
| 352 |
+
"mode": "off"
|
| 353 |
+
}
|
| 354 |
+
},
|
| 355 |
+
"mappings": [],
|
| 356 |
+
"thresholds": {
|
| 357 |
+
"mode": "absolute",
|
| 358 |
+
"steps": [
|
| 359 |
+
{
|
| 360 |
+
"color": "green",
|
| 361 |
+
"value": null
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"color": "red",
|
| 365 |
+
"value": 80
|
| 366 |
+
}
|
| 367 |
+
]
|
| 368 |
+
},
|
| 369 |
+
"unit": "Bps"
|
| 370 |
+
},
|
| 371 |
+
"overrides": []
|
| 372 |
+
},
|
| 373 |
+
"gridPos": {
|
| 374 |
+
"h": 8,
|
| 375 |
+
"w": 12,
|
| 376 |
+
"x": 0,
|
| 377 |
+
"y": 9
|
| 378 |
+
},
|
| 379 |
+
"id": 7,
|
| 380 |
+
"options": {
|
| 381 |
+
"legend": {
|
| 382 |
+
"calcs": [],
|
| 383 |
+
"displayMode": "list",
|
| 384 |
+
"placement": "bottom"
|
| 385 |
+
},
|
| 386 |
+
"tooltip": {
|
| 387 |
+
"mode": "single"
|
| 388 |
+
}
|
| 389 |
+
},
|
| 390 |
+
"targets": [
|
| 391 |
+
{
|
| 392 |
+
"datasource": {
|
| 393 |
+
"type": "prometheus",
|
| 394 |
+
"uid": "Prometheus"
|
| 395 |
+
},
|
| 396 |
+
"exemplar": true,
|
| 397 |
+
"expr": "rate(startup_diskio_throughput_sum{}[$__interval])/rate(startup_diskio_throughput_count{}[$__interval])",
|
| 398 |
+
"interval": "",
|
| 399 |
+
"legendFormat": "{{operation}} ({{class_name}}/{{shard_name}})",
|
| 400 |
+
"refId": "A"
|
| 401 |
+
}
|
| 402 |
+
],
|
| 403 |
+
"title": "Startup Disk I/O ",
|
| 404 |
+
"type": "timeseries"
|
| 405 |
+
}
|
| 406 |
+
],
|
| 407 |
+
"schemaVersion": 34,
|
| 408 |
+
"style": "dark",
|
| 409 |
+
"tags": [],
|
| 410 |
+
"templating": {
|
| 411 |
+
"list": []
|
| 412 |
+
},
|
| 413 |
+
"time": {
|
| 414 |
+
"from": "now-15m",
|
| 415 |
+
"to": "now"
|
| 416 |
+
},
|
| 417 |
+
"timepicker": {},
|
| 418 |
+
"timezone": "",
|
| 419 |
+
"title": "Startup times",
|
| 420 |
+
"uid": "oZZHUUC7k",
|
| 421 |
+
"version": 1,
|
| 422 |
+
"weekStart": ""
|
| 423 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/tombstones.json
ADDED
|
@@ -0,0 +1,620 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "grafana",
|
| 8 |
+
"uid": "-- Grafana --"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"type": "dashboard"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
},
|
| 18 |
+
"editable": true,
|
| 19 |
+
"fiscalYearStartMonth": 0,
|
| 20 |
+
"graphTooltip": 0,
|
| 21 |
+
"id": 11,
|
| 22 |
+
"links": [],
|
| 23 |
+
"liveNow": false,
|
| 24 |
+
"panels": [
|
| 25 |
+
{
|
| 26 |
+
"datasource": {
|
| 27 |
+
"type": "prometheus",
|
| 28 |
+
"uid": "Prometheus"
|
| 29 |
+
},
|
| 30 |
+
"description": "",
|
| 31 |
+
"fieldConfig": {
|
| 32 |
+
"defaults": {
|
| 33 |
+
"color": {
|
| 34 |
+
"mode": "palette-classic"
|
| 35 |
+
},
|
| 36 |
+
"custom": {
|
| 37 |
+
"axisBorderShow": false,
|
| 38 |
+
"axisCenteredZero": false,
|
| 39 |
+
"axisColorMode": "text",
|
| 40 |
+
"axisLabel": "",
|
| 41 |
+
"axisPlacement": "auto",
|
| 42 |
+
"barAlignment": 0,
|
| 43 |
+
"drawStyle": "line",
|
| 44 |
+
"fillOpacity": 0,
|
| 45 |
+
"gradientMode": "none",
|
| 46 |
+
"hideFrom": {
|
| 47 |
+
"legend": false,
|
| 48 |
+
"tooltip": false,
|
| 49 |
+
"viz": false
|
| 50 |
+
},
|
| 51 |
+
"insertNulls": false,
|
| 52 |
+
"lineInterpolation": "linear",
|
| 53 |
+
"lineWidth": 1,
|
| 54 |
+
"pointSize": 5,
|
| 55 |
+
"scaleDistribution": {
|
| 56 |
+
"type": "linear"
|
| 57 |
+
},
|
| 58 |
+
"showPoints": "auto",
|
| 59 |
+
"spanNulls": false,
|
| 60 |
+
"stacking": {
|
| 61 |
+
"group": "A",
|
| 62 |
+
"mode": "none"
|
| 63 |
+
},
|
| 64 |
+
"thresholdsStyle": {
|
| 65 |
+
"mode": "off"
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
"mappings": [],
|
| 69 |
+
"thresholds": {
|
| 70 |
+
"mode": "absolute",
|
| 71 |
+
"steps": [
|
| 72 |
+
{
|
| 73 |
+
"color": "green",
|
| 74 |
+
"value": null
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"color": "red",
|
| 78 |
+
"value": 80
|
| 79 |
+
}
|
| 80 |
+
]
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"overrides": []
|
| 84 |
+
},
|
| 85 |
+
"gridPos": {
|
| 86 |
+
"h": 7,
|
| 87 |
+
"w": 12,
|
| 88 |
+
"x": 0,
|
| 89 |
+
"y": 0
|
| 90 |
+
},
|
| 91 |
+
"id": 6,
|
| 92 |
+
"interval": "1",
|
| 93 |
+
"options": {
|
| 94 |
+
"legend": {
|
| 95 |
+
"calcs": [],
|
| 96 |
+
"displayMode": "list",
|
| 97 |
+
"placement": "bottom",
|
| 98 |
+
"showLegend": true
|
| 99 |
+
},
|
| 100 |
+
"tooltip": {
|
| 101 |
+
"mode": "single",
|
| 102 |
+
"sort": "none"
|
| 103 |
+
}
|
| 104 |
+
},
|
| 105 |
+
"targets": [
|
| 106 |
+
{
|
| 107 |
+
"datasource": {
|
| 108 |
+
"type": "prometheus",
|
| 109 |
+
"uid": "Prometheus"
|
| 110 |
+
},
|
| 111 |
+
"exemplar": true,
|
| 112 |
+
"expr": "vector_index_tombstones{}",
|
| 113 |
+
"instant": false,
|
| 114 |
+
"interval": "",
|
| 115 |
+
"intervalFactor": 1,
|
| 116 |
+
"legendFormat": "{{class_name}} - {{shard_name}}",
|
| 117 |
+
"refId": "A"
|
| 118 |
+
}
|
| 119 |
+
],
|
| 120 |
+
"title": "Active Tombstones in HNSW index",
|
| 121 |
+
"type": "timeseries"
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"datasource": {
|
| 125 |
+
"type": "prometheus",
|
| 126 |
+
"uid": "Prometheus"
|
| 127 |
+
},
|
| 128 |
+
"fieldConfig": {
|
| 129 |
+
"defaults": {
|
| 130 |
+
"color": {
|
| 131 |
+
"mode": "thresholds"
|
| 132 |
+
},
|
| 133 |
+
"mappings": [],
|
| 134 |
+
"thresholds": {
|
| 135 |
+
"mode": "absolute",
|
| 136 |
+
"steps": [
|
| 137 |
+
{
|
| 138 |
+
"color": "text",
|
| 139 |
+
"value": null
|
| 140 |
+
}
|
| 141 |
+
]
|
| 142 |
+
}
|
| 143 |
+
},
|
| 144 |
+
"overrides": []
|
| 145 |
+
},
|
| 146 |
+
"gridPos": {
|
| 147 |
+
"h": 7,
|
| 148 |
+
"w": 12,
|
| 149 |
+
"x": 12,
|
| 150 |
+
"y": 0
|
| 151 |
+
},
|
| 152 |
+
"id": 7,
|
| 153 |
+
"options": {
|
| 154 |
+
"colorMode": "value",
|
| 155 |
+
"graphMode": "area",
|
| 156 |
+
"justifyMode": "center",
|
| 157 |
+
"orientation": "auto",
|
| 158 |
+
"reduceOptions": {
|
| 159 |
+
"calcs": [
|
| 160 |
+
"lastNotNull"
|
| 161 |
+
],
|
| 162 |
+
"fields": "",
|
| 163 |
+
"values": false
|
| 164 |
+
},
|
| 165 |
+
"textMode": "auto",
|
| 166 |
+
"wideLayout": true
|
| 167 |
+
},
|
| 168 |
+
"pluginVersion": "10.2.3",
|
| 169 |
+
"targets": [
|
| 170 |
+
{
|
| 171 |
+
"datasource": {
|
| 172 |
+
"type": "prometheus",
|
| 173 |
+
"uid": "Prometheus"
|
| 174 |
+
},
|
| 175 |
+
"exemplar": true,
|
| 176 |
+
"expr": "sum(vector_index_operations{operation=\"create\"})",
|
| 177 |
+
"interval": "",
|
| 178 |
+
"legendFormat": "Vectors Inserted",
|
| 179 |
+
"refId": "A"
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"datasource": {
|
| 183 |
+
"type": "prometheus",
|
| 184 |
+
"uid": "Prometheus"
|
| 185 |
+
},
|
| 186 |
+
"exemplar": true,
|
| 187 |
+
"expr": "sum(vector_index_operations{operation=\"delete\"})",
|
| 188 |
+
"hide": false,
|
| 189 |
+
"interval": "",
|
| 190 |
+
"legendFormat": "Vectors Deleted",
|
| 191 |
+
"refId": "B"
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"datasource": {
|
| 195 |
+
"type": "prometheus",
|
| 196 |
+
"uid": "Prometheus"
|
| 197 |
+
},
|
| 198 |
+
"exemplar": false,
|
| 199 |
+
"expr": "sum(vector_index_operations{operation=\"create\"}) - ignoring(operation) sum(vector_index_operations{operation=\"delete\"})",
|
| 200 |
+
"hide": false,
|
| 201 |
+
"instant": false,
|
| 202 |
+
"interval": "",
|
| 203 |
+
"legendFormat": "Net Vectors",
|
| 204 |
+
"refId": "C"
|
| 205 |
+
}
|
| 206 |
+
],
|
| 207 |
+
"title": "Vector Index Statistics",
|
| 208 |
+
"type": "stat"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"datasource": {
|
| 212 |
+
"type": "prometheus",
|
| 213 |
+
"uid": "Prometheus"
|
| 214 |
+
},
|
| 215 |
+
"fieldConfig": {
|
| 216 |
+
"defaults": {
|
| 217 |
+
"color": {
|
| 218 |
+
"mode": "palette-classic"
|
| 219 |
+
},
|
| 220 |
+
"custom": {
|
| 221 |
+
"axisBorderShow": false,
|
| 222 |
+
"axisCenteredZero": false,
|
| 223 |
+
"axisColorMode": "text",
|
| 224 |
+
"axisLabel": "",
|
| 225 |
+
"axisPlacement": "auto",
|
| 226 |
+
"barAlignment": 0,
|
| 227 |
+
"drawStyle": "line",
|
| 228 |
+
"fillOpacity": 0,
|
| 229 |
+
"gradientMode": "none",
|
| 230 |
+
"hideFrom": {
|
| 231 |
+
"legend": false,
|
| 232 |
+
"tooltip": false,
|
| 233 |
+
"viz": false
|
| 234 |
+
},
|
| 235 |
+
"insertNulls": false,
|
| 236 |
+
"lineInterpolation": "linear",
|
| 237 |
+
"lineWidth": 1,
|
| 238 |
+
"pointSize": 5,
|
| 239 |
+
"scaleDistribution": {
|
| 240 |
+
"type": "linear"
|
| 241 |
+
},
|
| 242 |
+
"showPoints": "auto",
|
| 243 |
+
"spanNulls": false,
|
| 244 |
+
"stacking": {
|
| 245 |
+
"group": "A",
|
| 246 |
+
"mode": "none"
|
| 247 |
+
},
|
| 248 |
+
"thresholdsStyle": {
|
| 249 |
+
"mode": "off"
|
| 250 |
+
}
|
| 251 |
+
},
|
| 252 |
+
"mappings": [],
|
| 253 |
+
"thresholds": {
|
| 254 |
+
"mode": "absolute",
|
| 255 |
+
"steps": [
|
| 256 |
+
{
|
| 257 |
+
"color": "green",
|
| 258 |
+
"value": null
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"color": "red",
|
| 262 |
+
"value": 80
|
| 263 |
+
}
|
| 264 |
+
]
|
| 265 |
+
}
|
| 266 |
+
},
|
| 267 |
+
"overrides": []
|
| 268 |
+
},
|
| 269 |
+
"gridPos": {
|
| 270 |
+
"h": 7,
|
| 271 |
+
"w": 12,
|
| 272 |
+
"x": 0,
|
| 273 |
+
"y": 7
|
| 274 |
+
},
|
| 275 |
+
"id": 4,
|
| 276 |
+
"options": {
|
| 277 |
+
"legend": {
|
| 278 |
+
"calcs": [],
|
| 279 |
+
"displayMode": "list",
|
| 280 |
+
"placement": "bottom",
|
| 281 |
+
"showLegend": true
|
| 282 |
+
},
|
| 283 |
+
"tooltip": {
|
| 284 |
+
"mode": "single",
|
| 285 |
+
"sort": "none"
|
| 286 |
+
}
|
| 287 |
+
},
|
| 288 |
+
"targets": [
|
| 289 |
+
{
|
| 290 |
+
"datasource": {
|
| 291 |
+
"type": "prometheus",
|
| 292 |
+
"uid": "Prometheus"
|
| 293 |
+
},
|
| 294 |
+
"editorMode": "code",
|
| 295 |
+
"expr": "go_goroutines{job=\"weaviate\"}",
|
| 296 |
+
"instant": false,
|
| 297 |
+
"legendFormat": "Weaviate goroutines",
|
| 298 |
+
"range": true,
|
| 299 |
+
"refId": "A"
|
| 300 |
+
}
|
| 301 |
+
],
|
| 302 |
+
"title": "Weaviate goroutines",
|
| 303 |
+
"type": "timeseries"
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"datasource": {
|
| 307 |
+
"type": "prometheus",
|
| 308 |
+
"uid": "Prometheus"
|
| 309 |
+
},
|
| 310 |
+
"fieldConfig": {
|
| 311 |
+
"defaults": {
|
| 312 |
+
"color": {
|
| 313 |
+
"mode": "palette-classic"
|
| 314 |
+
},
|
| 315 |
+
"custom": {
|
| 316 |
+
"axisBorderShow": false,
|
| 317 |
+
"axisCenteredZero": false,
|
| 318 |
+
"axisColorMode": "text",
|
| 319 |
+
"axisLabel": "",
|
| 320 |
+
"axisPlacement": "auto",
|
| 321 |
+
"barAlignment": 0,
|
| 322 |
+
"drawStyle": "line",
|
| 323 |
+
"fillOpacity": 0,
|
| 324 |
+
"gradientMode": "none",
|
| 325 |
+
"hideFrom": {
|
| 326 |
+
"legend": false,
|
| 327 |
+
"tooltip": false,
|
| 328 |
+
"viz": false
|
| 329 |
+
},
|
| 330 |
+
"insertNulls": false,
|
| 331 |
+
"lineInterpolation": "linear",
|
| 332 |
+
"lineWidth": 1,
|
| 333 |
+
"pointSize": 5,
|
| 334 |
+
"scaleDistribution": {
|
| 335 |
+
"type": "linear"
|
| 336 |
+
},
|
| 337 |
+
"showPoints": "auto",
|
| 338 |
+
"spanNulls": false,
|
| 339 |
+
"stacking": {
|
| 340 |
+
"group": "A",
|
| 341 |
+
"mode": "none"
|
| 342 |
+
},
|
| 343 |
+
"thresholdsStyle": {
|
| 344 |
+
"mode": "off"
|
| 345 |
+
}
|
| 346 |
+
},
|
| 347 |
+
"mappings": [],
|
| 348 |
+
"thresholds": {
|
| 349 |
+
"mode": "absolute",
|
| 350 |
+
"steps": [
|
| 351 |
+
{
|
| 352 |
+
"color": "green",
|
| 353 |
+
"value": null
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"color": "red",
|
| 357 |
+
"value": 80
|
| 358 |
+
}
|
| 359 |
+
]
|
| 360 |
+
}
|
| 361 |
+
},
|
| 362 |
+
"overrides": []
|
| 363 |
+
},
|
| 364 |
+
"gridPos": {
|
| 365 |
+
"h": 7,
|
| 366 |
+
"w": 12,
|
| 367 |
+
"x": 12,
|
| 368 |
+
"y": 7
|
| 369 |
+
},
|
| 370 |
+
"id": 3,
|
| 371 |
+
"options": {
|
| 372 |
+
"legend": {
|
| 373 |
+
"calcs": [],
|
| 374 |
+
"displayMode": "list",
|
| 375 |
+
"placement": "bottom",
|
| 376 |
+
"showLegend": true
|
| 377 |
+
},
|
| 378 |
+
"tooltip": {
|
| 379 |
+
"mode": "single",
|
| 380 |
+
"sort": "none"
|
| 381 |
+
}
|
| 382 |
+
},
|
| 383 |
+
"targets": [
|
| 384 |
+
{
|
| 385 |
+
"datasource": {
|
| 386 |
+
"type": "prometheus",
|
| 387 |
+
"uid": "Prometheus"
|
| 388 |
+
},
|
| 389 |
+
"editorMode": "code",
|
| 390 |
+
"expr": "tombstone_reassign_neighbors",
|
| 391 |
+
"instant": false,
|
| 392 |
+
"legendFormat": "Reassign - {{shard_name}}",
|
| 393 |
+
"range": true,
|
| 394 |
+
"refId": "A"
|
| 395 |
+
}
|
| 396 |
+
],
|
| 397 |
+
"title": "Tombstone Reassign Neighbors",
|
| 398 |
+
"type": "timeseries"
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"datasource": {
|
| 402 |
+
"type": "prometheus",
|
| 403 |
+
"uid": "Prometheus"
|
| 404 |
+
},
|
| 405 |
+
"fieldConfig": {
|
| 406 |
+
"defaults": {
|
| 407 |
+
"color": {
|
| 408 |
+
"mode": "palette-classic"
|
| 409 |
+
},
|
| 410 |
+
"custom": {
|
| 411 |
+
"axisBorderShow": false,
|
| 412 |
+
"axisCenteredZero": false,
|
| 413 |
+
"axisColorMode": "text",
|
| 414 |
+
"axisLabel": "",
|
| 415 |
+
"axisPlacement": "auto",
|
| 416 |
+
"barAlignment": 0,
|
| 417 |
+
"drawStyle": "line",
|
| 418 |
+
"fillOpacity": 0,
|
| 419 |
+
"gradientMode": "none",
|
| 420 |
+
"hideFrom": {
|
| 421 |
+
"legend": false,
|
| 422 |
+
"tooltip": false,
|
| 423 |
+
"viz": false
|
| 424 |
+
},
|
| 425 |
+
"insertNulls": false,
|
| 426 |
+
"lineInterpolation": "linear",
|
| 427 |
+
"lineWidth": 1,
|
| 428 |
+
"pointSize": 5,
|
| 429 |
+
"scaleDistribution": {
|
| 430 |
+
"type": "linear"
|
| 431 |
+
},
|
| 432 |
+
"showPoints": "auto",
|
| 433 |
+
"spanNulls": false,
|
| 434 |
+
"stacking": {
|
| 435 |
+
"group": "A",
|
| 436 |
+
"mode": "none"
|
| 437 |
+
},
|
| 438 |
+
"thresholdsStyle": {
|
| 439 |
+
"mode": "off"
|
| 440 |
+
}
|
| 441 |
+
},
|
| 442 |
+
"mappings": [],
|
| 443 |
+
"thresholds": {
|
| 444 |
+
"mode": "absolute",
|
| 445 |
+
"steps": [
|
| 446 |
+
{
|
| 447 |
+
"color": "green",
|
| 448 |
+
"value": null
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"color": "red",
|
| 452 |
+
"value": 80
|
| 453 |
+
}
|
| 454 |
+
]
|
| 455 |
+
}
|
| 456 |
+
},
|
| 457 |
+
"overrides": []
|
| 458 |
+
},
|
| 459 |
+
"gridPos": {
|
| 460 |
+
"h": 7,
|
| 461 |
+
"w": 12,
|
| 462 |
+
"x": 0,
|
| 463 |
+
"y": 14
|
| 464 |
+
},
|
| 465 |
+
"id": 2,
|
| 466 |
+
"options": {
|
| 467 |
+
"legend": {
|
| 468 |
+
"calcs": [],
|
| 469 |
+
"displayMode": "list",
|
| 470 |
+
"placement": "bottom",
|
| 471 |
+
"showLegend": true
|
| 472 |
+
},
|
| 473 |
+
"tooltip": {
|
| 474 |
+
"mode": "single",
|
| 475 |
+
"sort": "none"
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
"targets": [
|
| 479 |
+
{
|
| 480 |
+
"datasource": {
|
| 481 |
+
"type": "prometheus",
|
| 482 |
+
"uid": "Prometheus"
|
| 483 |
+
},
|
| 484 |
+
"editorMode": "code",
|
| 485 |
+
"expr": "tombstone_find_global_entrypoint",
|
| 486 |
+
"instant": false,
|
| 487 |
+
"legendFormat": "Global Entrypoint - {{shard_name}}",
|
| 488 |
+
"range": true,
|
| 489 |
+
"refId": "A"
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"datasource": {
|
| 493 |
+
"type": "prometheus",
|
| 494 |
+
"uid": "Prometheus"
|
| 495 |
+
},
|
| 496 |
+
"editorMode": "code",
|
| 497 |
+
"expr": "tombstone_find_global_entrypoint",
|
| 498 |
+
"hide": false,
|
| 499 |
+
"instant": false,
|
| 500 |
+
"legendFormat": "Local Entrypoint - {{shard_name}}",
|
| 501 |
+
"range": true,
|
| 502 |
+
"refId": "B"
|
| 503 |
+
}
|
| 504 |
+
],
|
| 505 |
+
"title": "Find Local & Global Entrypoints",
|
| 506 |
+
"type": "timeseries"
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"datasource": {
|
| 510 |
+
"type": "prometheus",
|
| 511 |
+
"uid": "Prometheus"
|
| 512 |
+
},
|
| 513 |
+
"fieldConfig": {
|
| 514 |
+
"defaults": {
|
| 515 |
+
"color": {
|
| 516 |
+
"mode": "palette-classic"
|
| 517 |
+
},
|
| 518 |
+
"custom": {
|
| 519 |
+
"axisBorderShow": false,
|
| 520 |
+
"axisCenteredZero": false,
|
| 521 |
+
"axisColorMode": "text",
|
| 522 |
+
"axisLabel": "",
|
| 523 |
+
"axisPlacement": "auto",
|
| 524 |
+
"barAlignment": 0,
|
| 525 |
+
"drawStyle": "line",
|
| 526 |
+
"fillOpacity": 0,
|
| 527 |
+
"gradientMode": "none",
|
| 528 |
+
"hideFrom": {
|
| 529 |
+
"legend": false,
|
| 530 |
+
"tooltip": false,
|
| 531 |
+
"viz": false
|
| 532 |
+
},
|
| 533 |
+
"insertNulls": false,
|
| 534 |
+
"lineInterpolation": "linear",
|
| 535 |
+
"lineWidth": 1,
|
| 536 |
+
"pointSize": 5,
|
| 537 |
+
"scaleDistribution": {
|
| 538 |
+
"type": "linear"
|
| 539 |
+
},
|
| 540 |
+
"showPoints": "auto",
|
| 541 |
+
"spanNulls": false,
|
| 542 |
+
"stacking": {
|
| 543 |
+
"group": "A",
|
| 544 |
+
"mode": "none"
|
| 545 |
+
},
|
| 546 |
+
"thresholdsStyle": {
|
| 547 |
+
"mode": "off"
|
| 548 |
+
}
|
| 549 |
+
},
|
| 550 |
+
"mappings": [],
|
| 551 |
+
"thresholds": {
|
| 552 |
+
"mode": "absolute",
|
| 553 |
+
"steps": [
|
| 554 |
+
{
|
| 555 |
+
"color": "green",
|
| 556 |
+
"value": null
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"color": "red",
|
| 560 |
+
"value": 80
|
| 561 |
+
}
|
| 562 |
+
]
|
| 563 |
+
}
|
| 564 |
+
},
|
| 565 |
+
"overrides": []
|
| 566 |
+
},
|
| 567 |
+
"gridPos": {
|
| 568 |
+
"h": 7,
|
| 569 |
+
"w": 12,
|
| 570 |
+
"x": 12,
|
| 571 |
+
"y": 14
|
| 572 |
+
},
|
| 573 |
+
"id": 1,
|
| 574 |
+
"options": {
|
| 575 |
+
"legend": {
|
| 576 |
+
"calcs": [],
|
| 577 |
+
"displayMode": "list",
|
| 578 |
+
"placement": "bottom",
|
| 579 |
+
"showLegend": true
|
| 580 |
+
},
|
| 581 |
+
"tooltip": {
|
| 582 |
+
"mode": "single",
|
| 583 |
+
"sort": "none"
|
| 584 |
+
}
|
| 585 |
+
},
|
| 586 |
+
"targets": [
|
| 587 |
+
{
|
| 588 |
+
"datasource": {
|
| 589 |
+
"type": "prometheus",
|
| 590 |
+
"uid": "Prometheus"
|
| 591 |
+
},
|
| 592 |
+
"editorMode": "code",
|
| 593 |
+
"expr": "tombstone_delete_list_size",
|
| 594 |
+
"instant": false,
|
| 595 |
+
"legendFormat": "{{class_name}} - {{shard_name}}",
|
| 596 |
+
"range": true,
|
| 597 |
+
"refId": "A"
|
| 598 |
+
}
|
| 599 |
+
],
|
| 600 |
+
"title": "Tombstone Delete List Size",
|
| 601 |
+
"type": "timeseries"
|
| 602 |
+
}
|
| 603 |
+
],
|
| 604 |
+
"refresh": "",
|
| 605 |
+
"schemaVersion": 39,
|
| 606 |
+
"tags": [],
|
| 607 |
+
"templating": {
|
| 608 |
+
"list": []
|
| 609 |
+
},
|
| 610 |
+
"time": {
|
| 611 |
+
"from": "now-15m",
|
| 612 |
+
"to": "now"
|
| 613 |
+
},
|
| 614 |
+
"timepicker": {},
|
| 615 |
+
"timezone": "",
|
| 616 |
+
"title": "Tombstone Analysis",
|
| 617 |
+
"uid": "b715f587-ef7d-4009-8e8a-d62e26a33a44",
|
| 618 |
+
"version": 1,
|
| 619 |
+
"weekStart": ""
|
| 620 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/dashboards/usage.json
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"target": {
|
| 15 |
+
"limit": 100,
|
| 16 |
+
"matchAny": false,
|
| 17 |
+
"tags": [],
|
| 18 |
+
"type": "dashboard"
|
| 19 |
+
},
|
| 20 |
+
"type": "dashboard"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"editable": true,
|
| 25 |
+
"fiscalYearStartMonth": 0,
|
| 26 |
+
"graphTooltip": 0,
|
| 27 |
+
"links": [],
|
| 28 |
+
"liveNow": false,
|
| 29 |
+
"panels": [
|
| 30 |
+
{
|
| 31 |
+
"datasource": {
|
| 32 |
+
"type": "prometheus",
|
| 33 |
+
"uid": "Prometheus"
|
| 34 |
+
},
|
| 35 |
+
"fieldConfig": {
|
| 36 |
+
"defaults": {
|
| 37 |
+
"color": {
|
| 38 |
+
"mode": "thresholds"
|
| 39 |
+
},
|
| 40 |
+
"mappings": [],
|
| 41 |
+
"thresholds": {
|
| 42 |
+
"mode": "absolute",
|
| 43 |
+
"steps": [
|
| 44 |
+
{
|
| 45 |
+
"color": "blue",
|
| 46 |
+
"value": null
|
| 47 |
+
}
|
| 48 |
+
]
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
"overrides": []
|
| 52 |
+
},
|
| 53 |
+
"gridPos": {
|
| 54 |
+
"h": 9,
|
| 55 |
+
"w": 5,
|
| 56 |
+
"x": 0,
|
| 57 |
+
"y": 0
|
| 58 |
+
},
|
| 59 |
+
"id": 2,
|
| 60 |
+
"options": {
|
| 61 |
+
"colorMode": "value",
|
| 62 |
+
"graphMode": "area",
|
| 63 |
+
"justifyMode": "auto",
|
| 64 |
+
"orientation": "auto",
|
| 65 |
+
"reduceOptions": {
|
| 66 |
+
"calcs": [
|
| 67 |
+
"lastNotNull"
|
| 68 |
+
],
|
| 69 |
+
"fields": "",
|
| 70 |
+
"values": false
|
| 71 |
+
},
|
| 72 |
+
"textMode": "auto"
|
| 73 |
+
},
|
| 74 |
+
"pluginVersion": "9.0.6",
|
| 75 |
+
"targets": [
|
| 76 |
+
{
|
| 77 |
+
"datasource": {
|
| 78 |
+
"type": "prometheus",
|
| 79 |
+
"uid": "Prometheus"
|
| 80 |
+
},
|
| 81 |
+
"exemplar": true,
|
| 82 |
+
"expr": "sum(object_count{})",
|
| 83 |
+
"interval": "",
|
| 84 |
+
"legendFormat": "",
|
| 85 |
+
"refId": "A"
|
| 86 |
+
}
|
| 87 |
+
],
|
| 88 |
+
"title": "Overall Object Count",
|
| 89 |
+
"type": "stat"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"datasource": {
|
| 93 |
+
"type": "prometheus",
|
| 94 |
+
"uid": "Prometheus"
|
| 95 |
+
},
|
| 96 |
+
"description": "This value is refreshed at a 5min interval.",
|
| 97 |
+
"fieldConfig": {
|
| 98 |
+
"defaults": {
|
| 99 |
+
"color": {
|
| 100 |
+
"mode": "thresholds"
|
| 101 |
+
},
|
| 102 |
+
"mappings": [],
|
| 103 |
+
"thresholds": {
|
| 104 |
+
"mode": "absolute",
|
| 105 |
+
"steps": [
|
| 106 |
+
{
|
| 107 |
+
"color": "blue",
|
| 108 |
+
"value": null
|
| 109 |
+
}
|
| 110 |
+
]
|
| 111 |
+
}
|
| 112 |
+
},
|
| 113 |
+
"overrides": []
|
| 114 |
+
},
|
| 115 |
+
"gridPos": {
|
| 116 |
+
"h": 9,
|
| 117 |
+
"w": 5,
|
| 118 |
+
"x": 5,
|
| 119 |
+
"y": 0
|
| 120 |
+
},
|
| 121 |
+
"id": 6,
|
| 122 |
+
"options": {
|
| 123 |
+
"colorMode": "value",
|
| 124 |
+
"graphMode": "area",
|
| 125 |
+
"justifyMode": "auto",
|
| 126 |
+
"orientation": "auto",
|
| 127 |
+
"reduceOptions": {
|
| 128 |
+
"calcs": [
|
| 129 |
+
"lastNotNull"
|
| 130 |
+
],
|
| 131 |
+
"fields": "",
|
| 132 |
+
"values": false
|
| 133 |
+
},
|
| 134 |
+
"textMode": "auto"
|
| 135 |
+
},
|
| 136 |
+
"pluginVersion": "9.0.6",
|
| 137 |
+
"targets": [
|
| 138 |
+
{
|
| 139 |
+
"datasource": {
|
| 140 |
+
"type": "prometheus",
|
| 141 |
+
"uid": "Prometheus"
|
| 142 |
+
},
|
| 143 |
+
"exemplar": true,
|
| 144 |
+
"expr": "sum(vector_dimensions_sum)",
|
| 145 |
+
"interval": "",
|
| 146 |
+
"legendFormat": "",
|
| 147 |
+
"refId": "A"
|
| 148 |
+
}
|
| 149 |
+
],
|
| 150 |
+
"title": "Overall Dimension Count",
|
| 151 |
+
"type": "stat"
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"datasource": {
|
| 155 |
+
"type": "prometheus",
|
| 156 |
+
"uid": "Prometheus"
|
| 157 |
+
},
|
| 158 |
+
"fieldConfig": {
|
| 159 |
+
"defaults": {
|
| 160 |
+
"color": {
|
| 161 |
+
"mode": "thresholds"
|
| 162 |
+
},
|
| 163 |
+
"mappings": [],
|
| 164 |
+
"thresholds": {
|
| 165 |
+
"mode": "absolute",
|
| 166 |
+
"steps": [
|
| 167 |
+
{
|
| 168 |
+
"color": "blue",
|
| 169 |
+
"value": null
|
| 170 |
+
}
|
| 171 |
+
]
|
| 172 |
+
}
|
| 173 |
+
},
|
| 174 |
+
"overrides": []
|
| 175 |
+
},
|
| 176 |
+
"gridPos": {
|
| 177 |
+
"h": 5,
|
| 178 |
+
"w": 5,
|
| 179 |
+
"x": 0,
|
| 180 |
+
"y": 9
|
| 181 |
+
},
|
| 182 |
+
"id": 3,
|
| 183 |
+
"options": {
|
| 184 |
+
"colorMode": "value",
|
| 185 |
+
"graphMode": "area",
|
| 186 |
+
"justifyMode": "auto",
|
| 187 |
+
"orientation": "auto",
|
| 188 |
+
"reduceOptions": {
|
| 189 |
+
"calcs": [
|
| 190 |
+
"lastNotNull"
|
| 191 |
+
],
|
| 192 |
+
"fields": "",
|
| 193 |
+
"values": false
|
| 194 |
+
},
|
| 195 |
+
"textMode": "auto"
|
| 196 |
+
},
|
| 197 |
+
"pluginVersion": "9.0.6",
|
| 198 |
+
"targets": [
|
| 199 |
+
{
|
| 200 |
+
"datasource": {
|
| 201 |
+
"type": "prometheus",
|
| 202 |
+
"uid": "Prometheus"
|
| 203 |
+
},
|
| 204 |
+
"exemplar": true,
|
| 205 |
+
"expr": "object_count{}",
|
| 206 |
+
"interval": "",
|
| 207 |
+
"legendFormat": "{{ class_name }} / {{ shard_name }}",
|
| 208 |
+
"refId": "A"
|
| 209 |
+
}
|
| 210 |
+
],
|
| 211 |
+
"title": "Object Count per Class / Shard",
|
| 212 |
+
"type": "stat"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"datasource": {
|
| 216 |
+
"type": "prometheus",
|
| 217 |
+
"uid": "Prometheus"
|
| 218 |
+
},
|
| 219 |
+
"fieldConfig": {
|
| 220 |
+
"defaults": {
|
| 221 |
+
"color": {
|
| 222 |
+
"mode": "thresholds"
|
| 223 |
+
},
|
| 224 |
+
"mappings": [],
|
| 225 |
+
"thresholds": {
|
| 226 |
+
"mode": "absolute",
|
| 227 |
+
"steps": [
|
| 228 |
+
{
|
| 229 |
+
"color": "purple",
|
| 230 |
+
"value": null
|
| 231 |
+
}
|
| 232 |
+
]
|
| 233 |
+
}
|
| 234 |
+
},
|
| 235 |
+
"overrides": []
|
| 236 |
+
},
|
| 237 |
+
"gridPos": {
|
| 238 |
+
"h": 5,
|
| 239 |
+
"w": 5,
|
| 240 |
+
"x": 5,
|
| 241 |
+
"y": 9
|
| 242 |
+
},
|
| 243 |
+
"id": 5,
|
| 244 |
+
"options": {
|
| 245 |
+
"colorMode": "value",
|
| 246 |
+
"graphMode": "area",
|
| 247 |
+
"justifyMode": "auto",
|
| 248 |
+
"orientation": "auto",
|
| 249 |
+
"reduceOptions": {
|
| 250 |
+
"calcs": [
|
| 251 |
+
"lastNotNull"
|
| 252 |
+
],
|
| 253 |
+
"fields": "",
|
| 254 |
+
"values": false
|
| 255 |
+
},
|
| 256 |
+
"textMode": "auto"
|
| 257 |
+
},
|
| 258 |
+
"pluginVersion": "9.0.6",
|
| 259 |
+
"targets": [
|
| 260 |
+
{
|
| 261 |
+
"datasource": {
|
| 262 |
+
"type": "prometheus",
|
| 263 |
+
"uid": "Prometheus"
|
| 264 |
+
},
|
| 265 |
+
"exemplar": true,
|
| 266 |
+
"expr": "sum(vector_index_operations{operation=\"create\"})",
|
| 267 |
+
"interval": "",
|
| 268 |
+
"legendFormat": "Vector Additions",
|
| 269 |
+
"refId": "A"
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"datasource": {
|
| 273 |
+
"type": "prometheus",
|
| 274 |
+
"uid": "Prometheus"
|
| 275 |
+
},
|
| 276 |
+
"exemplar": true,
|
| 277 |
+
"expr": "sum(vector_index_operations{operation=\"delete\"})",
|
| 278 |
+
"hide": false,
|
| 279 |
+
"interval": "",
|
| 280 |
+
"legendFormat": "Vector Deletions",
|
| 281 |
+
"refId": "B"
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"datasource": {
|
| 285 |
+
"type": "prometheus",
|
| 286 |
+
"uid": "Prometheus"
|
| 287 |
+
},
|
| 288 |
+
"exemplar": true,
|
| 289 |
+
"expr": "sum(vector_index_operations{operation=\"create\"}) - ignoring(operation) sum(vector_index_operations{operation=\"delete\"})",
|
| 290 |
+
"hide": false,
|
| 291 |
+
"interval": "",
|
| 292 |
+
"legendFormat": "Net Vectors",
|
| 293 |
+
"refId": "C"
|
| 294 |
+
}
|
| 295 |
+
],
|
| 296 |
+
"title": "Vector Statistics across all Classes",
|
| 297 |
+
"type": "stat"
|
| 298 |
+
}
|
| 299 |
+
],
|
| 300 |
+
"schemaVersion": 36,
|
| 301 |
+
"style": "dark",
|
| 302 |
+
"tags": [],
|
| 303 |
+
"templating": {
|
| 304 |
+
"list": []
|
| 305 |
+
},
|
| 306 |
+
"time": {
|
| 307 |
+
"from": "now-15m",
|
| 308 |
+
"to": "now"
|
| 309 |
+
},
|
| 310 |
+
"timepicker": {},
|
| 311 |
+
"tim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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"annotations": {
|
| 3 |
+
"list": [
|
| 4 |
+
{
|
| 5 |
+
"builtIn": 1,
|
| 6 |
+
"datasource": {
|
| 7 |
+
"type": "datasource",
|
| 8 |
+
"uid": "grafana"
|
| 9 |
+
},
|
| 10 |
+
"enable": true,
|
| 11 |
+
"hide": true,
|
| 12 |
+
"iconColor": "rgba(0, 211, 255, 1)",
|
| 13 |
+
"name": "Annotations & Alerts",
|
| 14 |
+
"target": {
|
| 15 |
+
"limit": 100,
|
| 16 |
+
"matchAny": false,
|
| 17 |
+
"tags": [],
|
| 18 |
+
"type": "dashboard"
|
| 19 |
+
},
|
| 20 |
+
"type": "dashboard"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
"editable": true,
|
| 25 |
+
"fiscalYearStartMonth": 0,
|
| 26 |
+
"graphTooltip": 0,
|
| 27 |
+
"links": [],
|
| 28 |
+
"liveNow": false,
|
| 29 |
+
"panels": [
|
| 30 |
+
{
|
| 31 |
+
"datasource": {
|
| 32 |
+
"type": "prometheus",
|
| 33 |
+
"uid": "Prometheus"
|
| 34 |
+
},
|
| 35 |
+
"fieldConfig": {
|
| 36 |
+
"defaults": {
|
| 37 |
+
"color": {
|
| 38 |
+
"mode": "palette-classic"
|
| 39 |
+
},
|
| 40 |
+
"custom": {
|
| 41 |
+
"axisCenteredZero": false,
|
| 42 |
+
"axisColorMode": "text",
|
| 43 |
+
"axisLabel": "",
|
| 44 |
+
"axisPlacement": "auto",
|
| 45 |
+
"barAlignment": 0,
|
| 46 |
+
"drawStyle": "line",
|
| 47 |
+
"fillOpacity": 0,
|
| 48 |
+
"gradientMode": "none",
|
| 49 |
+
"hideFrom": {
|
| 50 |
+
"legend": false,
|
| 51 |
+
"tooltip": false,
|
| 52 |
+
"viz": false
|
| 53 |
+
},
|
| 54 |
+
"lineInterpolation": "linear",
|
| 55 |
+
"lineWidth": 1,
|
| 56 |
+
"pointSize": 5,
|
| 57 |
+
"scaleDistribution": {
|
| 58 |
+
"type": "linear"
|
| 59 |
+
},
|
| 60 |
+
"showPoints": "auto",
|
| 61 |
+
"spanNulls": false,
|
| 62 |
+
"stacking": {
|
| 63 |
+
"group": "A",
|
| 64 |
+
"mode": "none"
|
| 65 |
+
},
|
| 66 |
+
"thresholdsStyle": {
|
| 67 |
+
"mode": "off"
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"mappings": [],
|
| 71 |
+
"thresholds": {
|
| 72 |
+
"mode": "absolute",
|
| 73 |
+
"steps": [
|
| 74 |
+
{
|
| 75 |
+
"color": "green",
|
| 76 |
+
"value": null
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"color": "red",
|
| 80 |
+
"value": 80
|
| 81 |
+
}
|
| 82 |
+
]
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
"overrides": []
|
| 86 |
+
},
|
| 87 |
+
"gridPos": {
|
| 88 |
+
"h": 8,
|
| 89 |
+
"w": 12,
|
| 90 |
+
"x": 0,
|
| 91 |
+
"y": 0
|
| 92 |
+
},
|
| 93 |
+
"id": 2,
|
| 94 |
+
"options": {
|
| 95 |
+
"legend": {
|
| 96 |
+
"calcs": [],
|
| 97 |
+
"displayMode": "list",
|
| 98 |
+
"placement": "bottom",
|
| 99 |
+
"showLegend": true
|
| 100 |
+
},
|
| 101 |
+
"tooltip": {
|
| 102 |
+
"mode": "single",
|
| 103 |
+
"sort": "none"
|
| 104 |
+
}
|
| 105 |
+
},
|
| 106 |
+
"targets": [
|
| 107 |
+
{
|
| 108 |
+
"datasource": {
|
| 109 |
+
"type": "prometheus",
|
| 110 |
+
"uid": "Prometheus"
|
| 111 |
+
},
|
| 112 |
+
"exemplar": true,
|
| 113 |
+
"expr": "vector_index_size{}",
|
| 114 |
+
"interval": "",
|
| 115 |
+
"legendFormat": "{{class_name}} / {{shard_name}}",
|
| 116 |
+
"refId": "A"
|
| 117 |
+
}
|
| 118 |
+
],
|
| 119 |
+
"title": "Vector Index Size",
|
| 120 |
+
"type": "timeseries"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"datasource": {
|
| 124 |
+
"type": "prometheus",
|
| 125 |
+
"uid": "Prometheus"
|
| 126 |
+
},
|
| 127 |
+
"fieldConfig": {
|
| 128 |
+
"defaults": {
|
| 129 |
+
"color": {
|
| 130 |
+
"mode": "palette-classic"
|
| 131 |
+
},
|
| 132 |
+
"custom": {
|
| 133 |
+
"axisCenteredZero": false,
|
| 134 |
+
"axisColorMode": "text",
|
| 135 |
+
"axisLabel": "",
|
| 136 |
+
"axisPlacement": "auto",
|
| 137 |
+
"barAlignment": 0,
|
| 138 |
+
"drawStyle": "line",
|
| 139 |
+
"fillOpacity": 0,
|
| 140 |
+
"gradientMode": "none",
|
| 141 |
+
"hideFrom": {
|
| 142 |
+
"legend": false,
|
| 143 |
+
"tooltip": false,
|
| 144 |
+
"viz": false
|
| 145 |
+
},
|
| 146 |
+
"lineInterpolation": "linear",
|
| 147 |
+
"lineWidth": 1,
|
| 148 |
+
"pointSize": 5,
|
| 149 |
+
"scaleDistribution": {
|
| 150 |
+
"type": "linear"
|
| 151 |
+
},
|
| 152 |
+
"showPoints": "auto",
|
| 153 |
+
"spanNulls": false,
|
| 154 |
+
"stacking": {
|
| 155 |
+
"group": "A",
|
| 156 |
+
"mode": "none"
|
| 157 |
+
},
|
| 158 |
+
"thresholdsStyle": {
|
| 159 |
+
"mode": "off"
|
| 160 |
+
}
|
| 161 |
+
},
|
| 162 |
+
"mappings": [],
|
| 163 |
+
"thresholds": {
|
| 164 |
+
"mode": "absolute",
|
| 165 |
+
"steps": [
|
| 166 |
+
{
|
| 167 |
+
"color": "green",
|
| 168 |
+
"value": null
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"color": "red",
|
| 172 |
+
"value": 80
|
| 173 |
+
}
|
| 174 |
+
]
|
| 175 |
+
}
|
| 176 |
+
},
|
| 177 |
+
"overrides": []
|
| 178 |
+
},
|
| 179 |
+
"gridPos": {
|
| 180 |
+
"h": 8,
|
| 181 |
+
"w": 12,
|
| 182 |
+
"x": 12,
|
| 183 |
+
"y": 0
|
| 184 |
+
},
|
| 185 |
+
"id": 4,
|
| 186 |
+
"maxDataPoints": 25,
|
| 187 |
+
"options": {
|
| 188 |
+
"legend": {
|
| 189 |
+
"calcs": [],
|
| 190 |
+
"displayMode": "list",
|
| 191 |
+
"placement": "bottom",
|
| 192 |
+
"showLegend": true
|
| 193 |
+
},
|
| 194 |
+
"tooltip": {
|
| 195 |
+
"mode": "single",
|
| 196 |
+
"sort": "none"
|
| 197 |
+
}
|
| 198 |
+
},
|
| 199 |
+
"pluginVersion": "9.3.6",
|
| 200 |
+
"targets": [
|
| 201 |
+
{
|
| 202 |
+
"datasource": {
|
| 203 |
+
"type": "prometheus",
|
| 204 |
+
"uid": "Prometheus"
|
| 205 |
+
},
|
| 206 |
+
"editorMode": "code",
|
| 207 |
+
"exemplar": true,
|
| 208 |
+
"expr": "rate(vector_index_maintenance_durations_ms_sum{}[$__interval]) / rate(vector_index_maintenance_durations_ms_count{}[$__interval])",
|
| 209 |
+
"format": "time_series",
|
| 210 |
+
"interval": "",
|
| 211 |
+
"legendFormat": "{{step}} ({{class_name}}/{{shard_name}})",
|
| 212 |
+
"range": true,
|
| 213 |
+
"refId": "A"
|
| 214 |
+
}
|
| 215 |
+
],
|
| 216 |
+
"title": "Vector Index Maintenance Operations (Sync & Async)",
|
| 217 |
+
"type": "timeseries"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"datasource": {
|
| 221 |
+
"type": "prometheus",
|
| 222 |
+
"uid": "Prometheus"
|
| 223 |
+
},
|
| 224 |
+
"fieldConfig": {
|
| 225 |
+
"defaults": {
|
| 226 |
+
"color": {
|
| 227 |
+
"mode": "palette-classic"
|
| 228 |
+
},
|
| 229 |
+
"custom": {
|
| 230 |
+
"axisCenteredZero": false,
|
| 231 |
+
"axisColorMode": "text",
|
| 232 |
+
"axisLabel": "",
|
| 233 |
+
"axisPlacement": "auto",
|
| 234 |
+
"barAlignment": 0,
|
| 235 |
+
"drawStyle": "line",
|
| 236 |
+
"fillOpacity": 0,
|
| 237 |
+
"gradientMode": "none",
|
| 238 |
+
"hideFrom": {
|
| 239 |
+
"legend": false,
|
| 240 |
+
"tooltip": false,
|
| 241 |
+
"viz": false
|
| 242 |
+
},
|
| 243 |
+
"lineInterpolation": "linear",
|
| 244 |
+
"lineWidth": 1,
|
| 245 |
+
"pointSize": 5,
|
| 246 |
+
"scaleDistribution": {
|
| 247 |
+
"type": "linear"
|
| 248 |
+
},
|
| 249 |
+
"showPoints": "auto",
|
| 250 |
+
"spanNulls": false,
|
| 251 |
+
"stacking": {
|
| 252 |
+
"group": "A",
|
| 253 |
+
"mode": "none"
|
| 254 |
+
},
|
| 255 |
+
"thresholdsStyle": {
|
| 256 |
+
"mode": "off"
|
| 257 |
+
}
|
| 258 |
+
},
|
| 259 |
+
"mappings": [],
|
| 260 |
+
"thresholds": {
|
| 261 |
+
"mode": "absolute",
|
| 262 |
+
"steps": [
|
| 263 |
+
{
|
| 264 |
+
"color": "green",
|
| 265 |
+
"value": null
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"color": "red",
|
| 269 |
+
"value": 80
|
| 270 |
+
}
|
| 271 |
+
]
|
| 272 |
+
}
|
| 273 |
+
},
|
| 274 |
+
"overrides": []
|
| 275 |
+
},
|
| 276 |
+
"gridPos": {
|
| 277 |
+
"h": 8,
|
| 278 |
+
"w": 12,
|
| 279 |
+
"x": 0,
|
| 280 |
+
"y": 8
|
| 281 |
+
},
|
| 282 |
+
"id": 6,
|
| 283 |
+
"options": {
|
| 284 |
+
"legend": {
|
| 285 |
+
"calcs": [],
|
| 286 |
+
"displayMode": "list",
|
| 287 |
+
"placement": "bottom",
|
| 288 |
+
"showLegend": true
|
| 289 |
+
},
|
| 290 |
+
"tooltip": {
|
| 291 |
+
"mode": "single",
|
| 292 |
+
"sort": "none"
|
| 293 |
+
}
|
| 294 |
+
},
|
| 295 |
+
"targets": [
|
| 296 |
+
{
|
| 297 |
+
"datasource": {
|
| 298 |
+
"type": "prometheus",
|
| 299 |
+
"uid": "Prometheus"
|
| 300 |
+
},
|
| 301 |
+
"editorMode": "code",
|
| 302 |
+
"exemplar": true,
|
| 303 |
+
"expr": "rate(vector_index_durations_ms_sum{operation=\"create\"}[$__interval])/rate(vector_index_durations_ms_count{operation=\"create\"}[$__interval])",
|
| 304 |
+
"interval": "",
|
| 305 |
+
"legendFormat": "{{step}} ({{class_name}}/{{shard_name}})",
|
| 306 |
+
"range": true,
|
| 307 |
+
"refId": "A"
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"datasource": {
|
| 311 |
+
"type": "prometheus",
|
| 312 |
+
"uid": "Prometheus"
|
| 313 |
+
},
|
| 314 |
+
"editorMode": "builder",
|
| 315 |
+
"expr": "concurrent_goroutines{class_name=\"object batcher\"}",
|
| 316 |
+
"hide": false,
|
| 317 |
+
"interval": "",
|
| 318 |
+
"legendFormat": "Concurrent goroutines",
|
| 319 |
+
"range": true,
|
| 320 |
+
"refId": "B"
|
| 321 |
+
}
|
| 322 |
+
],
|
| 323 |
+
"title": "Insert Operations",
|
| 324 |
+
"type": "timeseries"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"datasource": {
|
| 328 |
+
"type": "prometheus",
|
| 329 |
+
"uid": "Prometheus"
|
| 330 |
+
},
|
| 331 |
+
"fieldConfig": {
|
| 332 |
+
"defaults": {
|
| 333 |
+
"color": {
|
| 334 |
+
"mode": "palette-classic"
|
| 335 |
+
},
|
| 336 |
+
"custom": {
|
| 337 |
+
"axisCenteredZero": false,
|
| 338 |
+
"axisColorMode": "text",
|
| 339 |
+
"axisLabel": "",
|
| 340 |
+
"axisPlacement": "auto",
|
| 341 |
+
"barAlignment": 0,
|
| 342 |
+
"drawStyle": "line",
|
| 343 |
+
"fillOpacity": 0,
|
| 344 |
+
"gradientMode": "none",
|
| 345 |
+
"hideFrom": {
|
| 346 |
+
"legend": false,
|
| 347 |
+
"tooltip": false,
|
| 348 |
+
"viz": false
|
| 349 |
+
},
|
| 350 |
+
"lineInterpolation": "linear",
|
| 351 |
+
"lineWidth": 1,
|
| 352 |
+
"pointSize": 5,
|
| 353 |
+
"scaleDistribution": {
|
| 354 |
+
"type": "linear"
|
| 355 |
+
},
|
| 356 |
+
"showPoints": "auto",
|
| 357 |
+
"spanNulls": false,
|
| 358 |
+
"stacking": {
|
| 359 |
+
"group": "A",
|
| 360 |
+
"mode": "none"
|
| 361 |
+
},
|
| 362 |
+
"thresholdsStyle": {
|
| 363 |
+
"mode": "off"
|
| 364 |
+
}
|
| 365 |
+
},
|
| 366 |
+
"mappings": [],
|
| 367 |
+
"thresholds": {
|
| 368 |
+
"mode": "absolute",
|
| 369 |
+
"steps": [
|
| 370 |
+
{
|
| 371 |
+
"color": "green",
|
| 372 |
+
"value": null
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"color": "red",
|
| 376 |
+
"value": 80
|
| 377 |
+
}
|
| 378 |
+
]
|
| 379 |
+
}
|
| 380 |
+
},
|
| 381 |
+
"overrides": []
|
| 382 |
+
},
|
| 383 |
+
"gridPos": {
|
| 384 |
+
"h": 8,
|
| 385 |
+
"w": 12,
|
| 386 |
+
"x": 12,
|
| 387 |
+
"y": 8
|
| 388 |
+
},
|
| 389 |
+
"id": 7,
|
| 390 |
+
"options": {
|
| 391 |
+
"legend": {
|
| 392 |
+
"calcs": [],
|
| 393 |
+
"displayMode": "list",
|
| 394 |
+
"placement": "bottom",
|
| 395 |
+
"showLegend": true
|
| 396 |
+
},
|
| 397 |
+
"tooltip": {
|
| 398 |
+
"mode": "single",
|
| 399 |
+
"sort": "none"
|
| 400 |
+
}
|
| 401 |
+
},
|
| 402 |
+
"targets": [
|
| 403 |
+
{
|
| 404 |
+
"datasource": {
|
| 405 |
+
"type": "prometheus",
|
| 406 |
+
"uid": "Prometheus"
|
| 407 |
+
},
|
| 408 |
+
"editorMode": "code",
|
| 409 |
+
"exemplar": true,
|
| 410 |
+
"expr": "rate(vector_index_durations_ms_sum{operation=\"delete\"}[$__interval])/rate(vector_index_durations_ms_count{operation=\"delete\"}[$__interval])",
|
| 411 |
+
"interval": "",
|
| 412 |
+
"legendFormat": "{{step}} ({{class_name}}/{{shard_name}})",
|
| 413 |
+
"range": true,
|
| 414 |
+
"refId": "A"
|
| 415 |
+
}
|
| 416 |
+
],
|
| 417 |
+
"title": "Delete Operations",
|
| 418 |
+
"type": "timeseries"
|
| 419 |
+
}
|
| 420 |
+
],
|
| 421 |
+
"schemaVersion": 37,
|
| 422 |
+
"style": "dark",
|
| 423 |
+
"tags": [],
|
| 424 |
+
"templating": {
|
| 425 |
+
"list": []
|
| 426 |
+
},
|
| 427 |
+
"time": {
|
| 428 |
+
"from": "now-15m",
|
| 429 |
+
"to": "now"
|
| 430 |
+
},
|
| 431 |
+
"timepicker": {},
|
| 432 |
+
"timezone": "",
|
| 433 |
+
"title": "Vector Index",
|
| 434 |
+
"uid": "03GWjZC7z",
|
| 435 |
+
"version": 1,
|
| 436 |
+
"weekStart": ""
|
| 437 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/datasource.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# config file version
|
| 2 |
+
apiVersion: 1
|
| 3 |
+
|
| 4 |
+
# list of datasources to insert/update depending
|
| 5 |
+
# what's available in the database
|
| 6 |
+
datasources:
|
| 7 |
+
# <string, required> name of the datasource. Required
|
| 8 |
+
- name: Prometheus
|
| 9 |
+
# <string, required> datasource type. Required
|
| 10 |
+
type: prometheus
|
| 11 |
+
# <string, required> access mode. proxy or direct (Server or Browser in the UI). Required
|
| 12 |
+
access: proxy
|
| 13 |
+
# <int> org id. will default to orgId 1 if not specified
|
| 14 |
+
orgId: 1
|
| 15 |
+
# <string> custom UID which can be used to reference this datasource in other parts of the configuration, if not specified will be generated automatically
|
| 16 |
+
uid: Prometheus
|
| 17 |
+
# <string> url
|
| 18 |
+
url: http://prometheus:9090
|
| 19 |
+
version: 1
|
| 20 |
+
# <bool> allow users to edit datasources from the UI.
|
| 21 |
+
editable: false
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/datasources/prometheus.yml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
apiVersion: 1
|
| 2 |
+
datasources:
|
| 3 |
+
- name: Prometheus
|
| 4 |
+
type: prometheus
|
| 5 |
+
access: proxy
|
| 6 |
+
orgId: 1
|
| 7 |
+
uid: prometheus
|
| 8 |
+
url: http://prometheus:9090
|
| 9 |
+
basicAuth: false
|
| 10 |
+
isDefault: true
|
| 11 |
+
version: 1
|
| 12 |
+
editable: false
|
| 13 |
+
jsonData:
|
| 14 |
+
timeInterval: "5s"
|
platform/dbops/binaries/weaviate-src/tools/dev/grafana/grafana.ini
ADDED
|
@@ -0,0 +1,1080 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
##################### Grafana Configuration Example #####################
|
| 2 |
+
#
|
| 3 |
+
# Everything has defaults so you only need to uncomment things you want to
|
| 4 |
+
# change
|
| 5 |
+
|
| 6 |
+
# possible values : production, development
|
| 7 |
+
;app_mode = production
|
| 8 |
+
|
| 9 |
+
# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
|
| 10 |
+
;instance_name = ${HOSTNAME}
|
| 11 |
+
|
| 12 |
+
#################################### Paths ####################################
|
| 13 |
+
[paths]
|
| 14 |
+
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
|
| 15 |
+
;data = /var/lib/grafana
|
| 16 |
+
|
| 17 |
+
# Temporary files in `data` directory older than given duration will be removed
|
| 18 |
+
;temp_data_lifetime = 24h
|
| 19 |
+
|
| 20 |
+
# Directory where grafana can store logs
|
| 21 |
+
;logs = /var/log/grafana
|
| 22 |
+
|
| 23 |
+
# Directory where grafana will automatically scan and look for plugins
|
| 24 |
+
;plugins = /var/lib/grafana/plugins
|
| 25 |
+
|
| 26 |
+
# folder that contains provisioning config files that grafana will apply on startup and while running.
|
| 27 |
+
;provisioning = conf/provisioning
|
| 28 |
+
|
| 29 |
+
#################################### Server ####################################
|
| 30 |
+
[server]
|
| 31 |
+
# Protocol (http, https, h2, socket)
|
| 32 |
+
;protocol = http
|
| 33 |
+
|
| 34 |
+
# The ip address to bind to, empty will bind to all interfaces
|
| 35 |
+
;http_addr =
|
| 36 |
+
|
| 37 |
+
# The http port to use
|
| 38 |
+
;http_port = 3000
|
| 39 |
+
|
| 40 |
+
# The public facing domain name used to access grafana from a browser
|
| 41 |
+
;domain = localhost
|
| 42 |
+
|
| 43 |
+
# Redirect to correct domain if host header does not match domain
|
| 44 |
+
# Prevents DNS rebinding attacks
|
| 45 |
+
;enforce_domain = false
|
| 46 |
+
|
| 47 |
+
# The full public facing url you use in browser, used for redirects and emails
|
| 48 |
+
# If you use reverse proxy and sub path specify full url (with sub path)
|
| 49 |
+
;root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
| 50 |
+
|
| 51 |
+
# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
|
| 52 |
+
;serve_from_sub_path = false
|
| 53 |
+
|
| 54 |
+
# Log web requests
|
| 55 |
+
;router_logging = false
|
| 56 |
+
|
| 57 |
+
# the path relative working path
|
| 58 |
+
;static_root_path = public
|
| 59 |
+
|
| 60 |
+
# enable gzip
|
| 61 |
+
;enable_gzip = false
|
| 62 |
+
|
| 63 |
+
# https certs & key file
|
| 64 |
+
;cert_file =
|
| 65 |
+
;cert_key =
|
| 66 |
+
|
| 67 |
+
# Unix socket path
|
| 68 |
+
;socket =
|
| 69 |
+
|
| 70 |
+
# CDN Url
|
| 71 |
+
;cdn_url =
|
| 72 |
+
|
| 73 |
+
# Sets the maximum time using a duration format (5s/5m/5ms) before timing out read of an incoming request and closing idle connections.
|
| 74 |
+
# `0` means there is no timeout for reading the request.
|
| 75 |
+
;read_timeout = 0
|
| 76 |
+
|
| 77 |
+
#################################### Database ####################################
|
| 78 |
+
[database]
|
| 79 |
+
# You can configure the database connection by specifying type, host, name, user and password
|
| 80 |
+
# as separate properties or as on string using the url properties.
|
| 81 |
+
|
| 82 |
+
# Either "mysql", "postgres" or "sqlite3", it's your choice
|
| 83 |
+
;type = sqlite3
|
| 84 |
+
;host = 127.0.0.1:3306
|
| 85 |
+
;name = grafana
|
| 86 |
+
;user = root
|
| 87 |
+
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
|
| 88 |
+
;password =
|
| 89 |
+
|
| 90 |
+
# Use either URL or the previous fields to configure the database
|
| 91 |
+
# Example: mysql://user:secret@host:port/database
|
| 92 |
+
;url =
|
| 93 |
+
|
| 94 |
+
# For "postgres" only, either "disable", "require" or "verify-full"
|
| 95 |
+
;ssl_mode = disable
|
| 96 |
+
|
| 97 |
+
# Database drivers may support different transaction isolation levels.
|
| 98 |
+
# Currently, only "mysql" driver supports isolation levels.
|
| 99 |
+
# If the value is empty - driver's default isolation level is applied.
|
| 100 |
+
# For "mysql" use "READ-UNCOMMITTED", "READ-COMMITTED", "REPEATABLE-READ" or "SERIALIZABLE".
|
| 101 |
+
;isolation_level =
|
| 102 |
+
|
| 103 |
+
;ca_cert_path =
|
| 104 |
+
;client_key_path =
|
| 105 |
+
;client_cert_path =
|
| 106 |
+
;server_cert_name =
|
| 107 |
+
|
| 108 |
+
# For "sqlite3" only, path relative to data_path setting
|
| 109 |
+
;path = grafana.db
|
| 110 |
+
|
| 111 |
+
# Max idle conn setting default is 2
|
| 112 |
+
;max_idle_conn = 2
|
| 113 |
+
|
| 114 |
+
# Max conn setting default is 0 (mean not set)
|
| 115 |
+
;max_open_conn =
|
| 116 |
+
|
| 117 |
+
# Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
|
| 118 |
+
;conn_max_lifetime = 14400
|
| 119 |
+
|
| 120 |
+
# Set to true to log the sql calls and execution times.
|
| 121 |
+
;log_queries =
|
| 122 |
+
|
| 123 |
+
# For "sqlite3" only. cache mode setting used for connecting to the database. (private, shared)
|
| 124 |
+
;cache_mode = private
|
| 125 |
+
|
| 126 |
+
################################### Data sources #########################
|
| 127 |
+
[datasources]
|
| 128 |
+
# Upper limit of data sources that Grafana will return. This limit is a temporary configuration and it will be deprecated when pagination will be introduced on the list data sources API.
|
| 129 |
+
;datasource_limit = 5000
|
| 130 |
+
|
| 131 |
+
#################################### Cache server #############################
|
| 132 |
+
[remote_cache]
|
| 133 |
+
# Either "redis", "memcached" or "database" default is "database"
|
| 134 |
+
;type = database
|
| 135 |
+
|
| 136 |
+
# cache connectionstring options
|
| 137 |
+
# database: will use Grafana primary database.
|
| 138 |
+
# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false`. Only addr is required. ssl may be 'true', 'false', or 'insecure'.
|
| 139 |
+
# memcache: 127.0.0.1:11211
|
| 140 |
+
;connstr =
|
| 141 |
+
|
| 142 |
+
#################################### Data proxy ###########################
|
| 143 |
+
[dataproxy]
|
| 144 |
+
|
| 145 |
+
# This enables data proxy logging, default is false
|
| 146 |
+
;logging = false
|
| 147 |
+
|
| 148 |
+
# How long the data proxy waits to read the headers of the response before timing out, default is 30 seconds.
|
| 149 |
+
# This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set.
|
| 150 |
+
;timeout = 30
|
| 151 |
+
|
| 152 |
+
# How long the data proxy waits to establish a TCP connection before timing out, default is 10 seconds.
|
| 153 |
+
;dialTimeout = 10
|
| 154 |
+
|
| 155 |
+
# How many seconds the data proxy waits before sending a keepalive probe request.
|
| 156 |
+
;keep_alive_seconds = 30
|
| 157 |
+
|
| 158 |
+
# How many seconds the data proxy waits for a successful TLS Handshake before timing out.
|
| 159 |
+
;tls_handshake_timeout_seconds = 10
|
| 160 |
+
|
| 161 |
+
# How many seconds the data proxy will wait for a server's first response headers after
|
| 162 |
+
# fully writing the request headers if the request has an "Expect: 100-continue"
|
| 163 |
+
# header. A value of 0 will result in the body being sent immediately, without
|
| 164 |
+
# waiting for the server to approve.
|
| 165 |
+
;expect_continue_timeout_seconds = 1
|
| 166 |
+
|
| 167 |
+
# Optionally limits the total number of connections per host, including connections in the dialing,
|
| 168 |
+
# active, and idle states. On limit violation, dials will block.
|
| 169 |
+
# A value of zero (0) means no limit.
|
| 170 |
+
;max_conns_per_host = 0
|
| 171 |
+
|
| 172 |
+
# The maximum number of idle connections that Grafana will keep alive.
|
| 173 |
+
;max_idle_connections = 100
|
| 174 |
+
|
| 175 |
+
# How many seconds the data proxy keeps an idle connection open before timing out.
|
| 176 |
+
;idle_conn_timeout_seconds = 90
|
| 177 |
+
|
| 178 |
+
# If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false.
|
| 179 |
+
;send_user_header = false
|
| 180 |
+
|
| 181 |
+
# Limit the amount of bytes that will be read/accepted from responses of outgoing HTTP requests.
|
| 182 |
+
;response_limit = 0
|
| 183 |
+
|
| 184 |
+
# Limits the number of rows that Grafana will process from SQL data sources.
|
| 185 |
+
;row_limit = 1000000
|
| 186 |
+
|
| 187 |
+
#################################### Analytics ####################################
|
| 188 |
+
[analytics]
|
| 189 |
+
# Server reporting, sends usage counters to stats.grafana.org every 24 hours.
|
| 190 |
+
# No ip addresses are being tracked, only simple counters to track
|
| 191 |
+
# running instances, dashboard and error counts. It is very helpful to us.
|
| 192 |
+
# Change this option to false to disable reporting.
|
| 193 |
+
;reporting_enabled = true
|
| 194 |
+
|
| 195 |
+
# The name of the distributor of the Grafana instance. Ex hosted-grafana, grafana-labs
|
| 196 |
+
;reporting_distributor = grafana-labs
|
| 197 |
+
|
| 198 |
+
# Set to false to disable all checks to https://grafana.net
|
| 199 |
+
# for new versions (grafana itself and plugins), check is used
|
| 200 |
+
# in some UI views to notify that grafana or plugin update exists
|
| 201 |
+
# This option does not cause any auto updates, nor send any information
|
| 202 |
+
# only a GET request to http://grafana.com to get latest versions
|
| 203 |
+
;check_for_updates = true
|
| 204 |
+
|
| 205 |
+
# Google Analytics universal tracking code, only enabled if you specify an id here
|
| 206 |
+
;google_analytics_ua_id =
|
| 207 |
+
|
| 208 |
+
# Google Tag Manager ID, only enabled if you specify an id here
|
| 209 |
+
;google_tag_manager_id =
|
| 210 |
+
|
| 211 |
+
#################################### Security ####################################
|
| 212 |
+
[security]
|
| 213 |
+
# disable creation of admin user on first start of grafana
|
| 214 |
+
;disable_initial_admin_creation = false
|
| 215 |
+
|
| 216 |
+
# default admin user, created on startup
|
| 217 |
+
admin_user = weaviate
|
| 218 |
+
|
| 219 |
+
# default admin password, can be changed before first start of grafana, or in profile settings
|
| 220 |
+
admin_password = weaviate
|
| 221 |
+
|
| 222 |
+
# used for signing
|
| 223 |
+
;secret_key = SW2YcwTIb9zpOOhoPsMm
|
| 224 |
+
|
| 225 |
+
# current key provider used for envelope encryption, default to static value specified by secret_key
|
| 226 |
+
;encryption_provider = secretKey
|
| 227 |
+
|
| 228 |
+
# list of configured key providers, space separated (Enterprise only): e.g., awskms.v1 azurekv.v1
|
| 229 |
+
;available_encryption_providers =
|
| 230 |
+
|
| 231 |
+
# disable gravatar profile images
|
| 232 |
+
;disable_gravatar = false
|
| 233 |
+
|
| 234 |
+
# data source proxy whitelist (ip_or_domain:port separated by spaces)
|
| 235 |
+
;data_source_proxy_whitelist =
|
| 236 |
+
|
| 237 |
+
# disable protection against brute force login attempts
|
| 238 |
+
;disable_brute_force_login_protection = false
|
| 239 |
+
|
| 240 |
+
# set to true if you host Grafana behind HTTPS. default is false.
|
| 241 |
+
;cookie_secure = false
|
| 242 |
+
|
| 243 |
+
# set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled"
|
| 244 |
+
;cookie_samesite = lax
|
| 245 |
+
|
| 246 |
+
# set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
|
| 247 |
+
;allow_embedding = false
|
| 248 |
+
|
| 249 |
+
# Set to true if you want to enable http strict transport security (HSTS) response header.
|
| 250 |
+
# This is only sent when HTTPS is enabled in this configuration.
|
| 251 |
+
# HSTS tells browsers that the site should only be accessed using HTTPS.
|
| 252 |
+
;strict_transport_security = false
|
| 253 |
+
|
| 254 |
+
# Sets how long a browser should cache HSTS. Only applied if strict_transport_security is enabled.
|
| 255 |
+
;strict_transport_security_max_age_seconds = 86400
|
| 256 |
+
|
| 257 |
+
# Set to true if to enable HSTS preloading option. Only applied if strict_transport_security is enabled.
|
| 258 |
+
;strict_transport_security_preload = false
|
| 259 |
+
|
| 260 |
+
# Set to true if to enable the HSTS includeSubDomains option. Only applied if strict_transport_security is enabled.
|
| 261 |
+
;strict_transport_security_subdomains = false
|
| 262 |
+
|
| 263 |
+
# Set to true to enable the X-Content-Type-Options response header.
|
| 264 |
+
# The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised
|
| 265 |
+
# in the Content-Type headers should not be changed and be followed.
|
| 266 |
+
;x_content_type_options = true
|
| 267 |
+
|
| 268 |
+
# Set to true to enable the X-XSS-Protection header, which tells browsers to stop pages from loading
|
| 269 |
+
# when they detect reflected cross-site scripting (XSS) attacks.
|
| 270 |
+
;x_xss_protection = true
|
| 271 |
+
|
| 272 |
+
# Enable adding the Content-Security-Policy header to your requests.
|
| 273 |
+
# CSP allows to control resources the user agent is allowed to load and helps prevent XSS attacks.
|
| 274 |
+
;content_security_policy = false
|
| 275 |
+
|
| 276 |
+
# Set Content Security Policy template used when adding the Content-Security-Policy header to your requests.
|
| 277 |
+
# $NONCE in the template includes a random nonce.
|
| 278 |
+
# $ROOT_PATH is server.root_url without the protocol.
|
| 279 |
+
;content_security_policy_template = """script-src 'self' 'unsafe-eval' 'unsafe-inline' 'strict-dynamic' $NONCE;object-src 'none';font-src 'self';style-src 'self' 'unsafe-inline' blob:;img-src * data:;base-uri 'self';connect-src 'self' grafana.com ws://$ROOT_PATH wss://$ROOT_PATH;manifest-src 'self';media-src 'none';form-action 'self';"""
|
| 280 |
+
|
| 281 |
+
#################################### Snapshots ###########################
|
| 282 |
+
[snapshots]
|
| 283 |
+
# snapshot sharing options
|
| 284 |
+
;external_enabled = true
|
| 285 |
+
;external_snapshot_url = https://snapshots-origin.raintank.io
|
| 286 |
+
;external_snapshot_name = Publish to snapshot.raintank.io
|
| 287 |
+
|
| 288 |
+
# Set to true to enable this Grafana instance act as an external snapshot server and allow unauthenticated requests for
|
| 289 |
+
# creating and deleting snapshots.
|
| 290 |
+
;public_mode = false
|
| 291 |
+
|
| 292 |
+
# remove expired snapshot
|
| 293 |
+
;snapshot_remove_expired = true
|
| 294 |
+
|
| 295 |
+
#################################### Dashboards History ##################
|
| 296 |
+
[dashboards]
|
| 297 |
+
# Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
|
| 298 |
+
;versions_to_keep = 20
|
| 299 |
+
|
| 300 |
+
# Minimum dashboard refresh interval. When set, this will restrict users to set the refresh interval of a dashboard lower than given interval. Per default this is 5 seconds.
|
| 301 |
+
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
|
| 302 |
+
;min_refresh_interval = 5s
|
| 303 |
+
|
| 304 |
+
# Path to the default home dashboard. If this value is empty, then Grafana uses StaticRootPath + "dashboards/home.json"
|
| 305 |
+
;default_home_dashboard_path =
|
| 306 |
+
|
| 307 |
+
#################################### Users ###############################
|
| 308 |
+
[users]
|
| 309 |
+
# disable user signup / registration
|
| 310 |
+
;allow_sign_up = true
|
| 311 |
+
|
| 312 |
+
# Allow non admin users to create organizations
|
| 313 |
+
;allow_org_create = true
|
| 314 |
+
|
| 315 |
+
# Set to true to automatically assign new users to the default organization (id 1)
|
| 316 |
+
;auto_assign_org = true
|
| 317 |
+
|
| 318 |
+
# Set this value to automatically add new users to the provided organization (if auto_assign_org above is set to true)
|
| 319 |
+
;auto_assign_org_id = 1
|
| 320 |
+
|
| 321 |
+
# Default role new users will be automatically assigned (if disabled above is set to true)
|
| 322 |
+
;auto_assign_org_role = Viewer
|
| 323 |
+
|
| 324 |
+
# Require email validation before sign up completes
|
| 325 |
+
;verify_email_enabled = false
|
| 326 |
+
|
| 327 |
+
# Background text for the user field on the login page
|
| 328 |
+
;login_hint = email or username
|
| 329 |
+
;password_hint = password
|
| 330 |
+
|
| 331 |
+
# Default UI theme ("dark" or "light")
|
| 332 |
+
;default_theme = dark
|
| 333 |
+
|
| 334 |
+
# Path to a custom home page. Users are only redirected to this if the default home dashboard is used. It should match a frontend route and contain a leading slash.
|
| 335 |
+
; home_page =
|
| 336 |
+
|
| 337 |
+
# External user management, these options affect the organization users view
|
| 338 |
+
;external_manage_link_url =
|
| 339 |
+
;external_manage_link_name =
|
| 340 |
+
;external_manage_info =
|
| 341 |
+
|
| 342 |
+
# Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
|
| 343 |
+
;viewers_can_edit = false
|
| 344 |
+
|
| 345 |
+
# Editors can administrate dashboard, folders and teams they create
|
| 346 |
+
;editors_can_admin = false
|
| 347 |
+
|
| 348 |
+
# The duration in time a user invitation remains valid before expiring. This setting should be expressed as a duration. Examples: 6h (hours), 2d (days), 1w (week). Default is 24h (24 hours). The minimum supported duration is 15m (15 minutes).
|
| 349 |
+
;user_invite_max_lifetime_duration = 24h
|
| 350 |
+
|
| 351 |
+
# Enter a comma-separated list of users login to hide them in the Grafana UI. These users are shown to Grafana admins and themselves.
|
| 352 |
+
; hidden_users =
|
| 353 |
+
|
| 354 |
+
[auth]
|
| 355 |
+
# Login cookie name
|
| 356 |
+
;login_cookie_name = grafana_session
|
| 357 |
+
|
| 358 |
+
# The maximum lifetime (duration) an authenticated user can be inactive before being required to login at next visit. Default is 7 days (7d). This setting should be expressed as a duration, e.g. 5m (minutes), 6h (hours), 10d (days), 2w (weeks), 1M (month). The lifetime resets at each successful token rotation.
|
| 359 |
+
;login_maximum_inactive_lifetime_duration =
|
| 360 |
+
|
| 361 |
+
# The maximum lifetime (duration) an authenticated user can be logged in since login time before being required to login. Default is 30 days (30d). This setting should be expressed as a duration, e.g. 5m (minutes), 6h (hours), 10d (days), 2w (weeks), 1M (month).
|
| 362 |
+
;login_maximum_lifetime_duration =
|
| 363 |
+
|
| 364 |
+
# How often should auth tokens be rotated for authenticated users when being active. The default is each 10 minutes.
|
| 365 |
+
;token_rotation_interval_minutes = 10
|
| 366 |
+
|
| 367 |
+
# Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
|
| 368 |
+
;disable_login_form = false
|
| 369 |
+
|
| 370 |
+
# Set to true to disable the sign out link in the side menu. Useful if you use auth.proxy or auth.jwt, defaults to false
|
| 371 |
+
;disable_signout_menu = false
|
| 372 |
+
|
| 373 |
+
# URL to redirect the user to after sign out
|
| 374 |
+
;signout_redirect_url =
|
| 375 |
+
|
| 376 |
+
# Set to true to attempt login with OAuth automatically, skipping the login screen.
|
| 377 |
+
# This setting is ignored if multiple OAuth providers are configured.
|
| 378 |
+
;oauth_auto_login = false
|
| 379 |
+
|
| 380 |
+
# OAuth state max age cookie duration in seconds. Defaults to 600 seconds.
|
| 381 |
+
;oauth_state_cookie_max_age = 600
|
| 382 |
+
|
| 383 |
+
# limit of api_key seconds to live before expiration
|
| 384 |
+
;api_key_max_seconds_to_live = -1
|
| 385 |
+
|
| 386 |
+
# Set to true to enable SigV4 authentication option for HTTP-based datasources.
|
| 387 |
+
;sigv4_auth_enabled = false
|
| 388 |
+
|
| 389 |
+
#################################### Anonymous Auth ######################
|
| 390 |
+
[auth.anonymous]
|
| 391 |
+
# enable anonymous access
|
| 392 |
+
;enabled = false
|
| 393 |
+
|
| 394 |
+
# specify organization name that should be used for unauthenticated users
|
| 395 |
+
;org_name = Main Org.
|
| 396 |
+
|
| 397 |
+
# specify role for unauthenticated users
|
| 398 |
+
;org_role = Viewer
|
| 399 |
+
|
| 400 |
+
# mask the Grafana version number for unauthenticated users
|
| 401 |
+
;hide_version = false
|
| 402 |
+
|
| 403 |
+
#################################### GitHub Auth ##########################
|
| 404 |
+
[auth.github]
|
| 405 |
+
;enabled = false
|
| 406 |
+
;allow_sign_up = true
|
| 407 |
+
;client_id = some_id
|
| 408 |
+
;client_secret = some_secret
|
| 409 |
+
;scopes = user:email,read:org
|
| 410 |
+
;auth_url = https://github.com/login/oauth/authorize
|
| 411 |
+
;token_url = https://github.com/login/oauth/access_token
|
| 412 |
+
;api_url = https://api.github.com/user
|
| 413 |
+
;allowed_domains =
|
| 414 |
+
;team_ids =
|
| 415 |
+
;allowed_organizations =
|
| 416 |
+
|
| 417 |
+
#################################### GitLab Auth #########################
|
| 418 |
+
[auth.gitlab]
|
| 419 |
+
;enabled = false
|
| 420 |
+
;allow_sign_up = true
|
| 421 |
+
;client_id = some_id
|
| 422 |
+
;client_secret = some_secret
|
| 423 |
+
;scopes = api
|
| 424 |
+
;auth_url = https://gitlab.com/oauth/authorize
|
| 425 |
+
;token_url = https://gitlab.com/oauth/token
|
| 426 |
+
;api_url = https://gitlab.com/api/v4
|
| 427 |
+
;allowed_domains =
|
| 428 |
+
;allowed_groups =
|
| 429 |
+
|
| 430 |
+
#################################### Google Auth ##########################
|
| 431 |
+
[auth.google]
|
| 432 |
+
;enabled = false
|
| 433 |
+
;allow_sign_up = true
|
| 434 |
+
;client_id = some_client_id
|
| 435 |
+
;client_secret = some_client_secret
|
| 436 |
+
;scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
|
| 437 |
+
;auth_url = https://accounts.google.com/o/oauth2/auth
|
| 438 |
+
;token_url = https://accounts.google.com/o/oauth2/token
|
| 439 |
+
;api_url = https://www.googleapis.com/oauth2/v1/userinfo
|
| 440 |
+
;allowed_domains =
|
| 441 |
+
;hosted_domain =
|
| 442 |
+
|
| 443 |
+
#################################### Grafana.com Auth ####################
|
| 444 |
+
[auth.grafana_com]
|
| 445 |
+
;enabled = false
|
| 446 |
+
;allow_sign_up = true
|
| 447 |
+
;client_id = some_id
|
| 448 |
+
;client_secret = some_secret
|
| 449 |
+
;scopes = user:email
|
| 450 |
+
;allowed_organizations =
|
| 451 |
+
|
| 452 |
+
#################################### Azure AD OAuth #######################
|
| 453 |
+
[auth.azuread]
|
| 454 |
+
;name = Azure AD
|
| 455 |
+
;enabled = false
|
| 456 |
+
;allow_sign_up = true
|
| 457 |
+
;client_id = some_client_id
|
| 458 |
+
;client_secret = some_client_secret
|
| 459 |
+
;scopes = openid email profile
|
| 460 |
+
;auth_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
|
| 461 |
+
;token_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
|
| 462 |
+
;allowed_domains =
|
| 463 |
+
;allowed_groups =
|
| 464 |
+
|
| 465 |
+
#################################### Okta OAuth #######################
|
| 466 |
+
[auth.okta]
|
| 467 |
+
;name = Okta
|
| 468 |
+
;enabled = false
|
| 469 |
+
;allow_sign_up = true
|
| 470 |
+
;client_id = some_id
|
| 471 |
+
;client_secret = some_secret
|
| 472 |
+
;scopes = openid profile email groups
|
| 473 |
+
;auth_url = https://<tenant-id>.okta.com/oauth2/v1/authorize
|
| 474 |
+
;token_url = https://<tenant-id>.okta.com/oauth2/v1/token
|
| 475 |
+
;api_url = https://<tenant-id>.okta.com/oauth2/v1/userinfo
|
| 476 |
+
;allowed_domains =
|
| 477 |
+
;allowed_groups =
|
| 478 |
+
;role_attribute_path =
|
| 479 |
+
;role_attribute_strict = false
|
| 480 |
+
|
| 481 |
+
#################################### Generic OAuth ##########################
|
| 482 |
+
[auth.generic_oauth]
|
| 483 |
+
;enabled = false
|
| 484 |
+
;name = OAuth
|
| 485 |
+
;allow_sign_up = true
|
| 486 |
+
;client_id = some_id
|
| 487 |
+
;client_secret = some_secret
|
| 488 |
+
;scopes = user:email,read:org
|
| 489 |
+
;empty_scopes = false
|
| 490 |
+
;email_attribute_name = email:primary
|
| 491 |
+
;email_attribute_path =
|
| 492 |
+
;login_attribute_path =
|
| 493 |
+
;name_attribute_path =
|
| 494 |
+
;id_token_attribute_name =
|
| 495 |
+
;auth_url = https://foo.bar/login/oauth/authorize
|
| 496 |
+
;token_url = https://foo.bar/login/oauth/access_token
|
| 497 |
+
;api_url = https://foo.bar/user
|
| 498 |
+
;teams_url =
|
| 499 |
+
;allowed_domains =
|
| 500 |
+
;team_ids =
|
| 501 |
+
;allowed_organizations =
|
| 502 |
+
;role_attribute_path =
|
| 503 |
+
;role_attribute_strict = false
|
| 504 |
+
;groups_attribute_path =
|
| 505 |
+
;team_ids_attribute_path =
|
| 506 |
+
;tls_skip_verify_insecure = false
|
| 507 |
+
;tls_client_cert =
|
| 508 |
+
;tls_client_key =
|
| 509 |
+
;tls_client_ca =
|
| 510 |
+
;use_pkce = false
|
| 511 |
+
|
| 512 |
+
#################################### Basic Auth ##########################
|
| 513 |
+
[auth.basic]
|
| 514 |
+
;enabled = true
|
| 515 |
+
|
| 516 |
+
#################################### Auth Proxy ##########################
|
| 517 |
+
[auth.proxy]
|
| 518 |
+
;enabled = false
|
| 519 |
+
;header_name = X-WEBAUTH-USER
|
| 520 |
+
;header_property = username
|
| 521 |
+
;auto_sign_up = true
|
| 522 |
+
;sync_ttl = 60
|
| 523 |
+
;whitelist = 192.168.1.1, 192.168.2.1
|
| 524 |
+
;headers = Email:X-User-Email, Name:X-User-Name
|
| 525 |
+
# Read the auth proxy docs for details on what the setting below enables
|
| 526 |
+
;enable_login_token = false
|
| 527 |
+
|
| 528 |
+
#################################### Auth JWT ##########################
|
| 529 |
+
[auth.jwt]
|
| 530 |
+
;enabled = true
|
| 531 |
+
;header_name = X-JWT-Assertion
|
| 532 |
+
;email_claim = sub
|
| 533 |
+
;username_claim = sub
|
| 534 |
+
;jwk_set_url = https://foo.bar/.well-known/jwks.json
|
| 535 |
+
;jwk_set_file = /path/to/jwks.json
|
| 536 |
+
;cache_ttl = 60m
|
| 537 |
+
;expected_claims = {"aud": ["foo", "bar"]}
|
| 538 |
+
;key_file = /path/to/key/file
|
| 539 |
+
|
| 540 |
+
#################################### Auth LDAP ##########################
|
| 541 |
+
[auth.ldap]
|
| 542 |
+
;enabled = false
|
| 543 |
+
;config_file = /etc/grafana/ldap.toml
|
| 544 |
+
;allow_sign_up = true
|
| 545 |
+
|
| 546 |
+
# LDAP background sync (Enterprise only)
|
| 547 |
+
# At 1 am every day
|
| 548 |
+
;sync_cron = "0 0 1 * * *"
|
| 549 |
+
;active_sync_enabled = true
|
| 550 |
+
|
| 551 |
+
#################################### AWS ###########################
|
| 552 |
+
[aws]
|
| 553 |
+
# Enter a comma-separated list of allowed AWS authentication providers.
|
| 554 |
+
# Options are: default (AWS SDK Default), keys (Access && secret key), credentials (Credentials field), ec2_iam_role (EC2 IAM Role)
|
| 555 |
+
; allowed_auth_providers = default,keys,credentials
|
| 556 |
+
|
| 557 |
+
# Allow AWS users to assume a role using temporary security credentials.
|
| 558 |
+
# If true, assume role will be enabled for all AWS authentication providers that are specified in aws_auth_providers
|
| 559 |
+
; assume_role_enabled = true
|
| 560 |
+
|
| 561 |
+
#################################### Azure ###############################
|
| 562 |
+
[azure]
|
| 563 |
+
# Azure cloud environment where Grafana is hosted
|
| 564 |
+
# Possible values are AzureCloud, AzureChinaCloud, AzureUSGovernment and AzureGermanCloud
|
| 565 |
+
# Default value is AzureCloud (i.e. public cloud)
|
| 566 |
+
;cloud = AzureCloud
|
| 567 |
+
|
| 568 |
+
# Specifies whether Grafana hosted in Azure service with Managed Identity configured (e.g. Azure Virtual Machines instance)
|
| 569 |
+
# If enabled, the managed identity can be used for authentication of Grafana in Azure services
|
| 570 |
+
# Disabled by default, needs to be explicitly enabled
|
| 571 |
+
;managed_identity_enabled = false
|
| 572 |
+
|
| 573 |
+
# Client ID to use for user-assigned managed identity
|
| 574 |
+
# Should be set for user-assigned identity and should be empty for system-assigned identity
|
| 575 |
+
;managed_identity_client_id =
|
| 576 |
+
|
| 577 |
+
#################################### SMTP / Emailing ##########################
|
| 578 |
+
[smtp]
|
| 579 |
+
;enabled = false
|
| 580 |
+
;host = localhost:25
|
| 581 |
+
;user =
|
| 582 |
+
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
|
| 583 |
+
;password =
|
| 584 |
+
;cert_file =
|
| 585 |
+
;key_file =
|
| 586 |
+
;skip_verify = false
|
| 587 |
+
;from_address = admin@grafana.localhost
|
| 588 |
+
;from_name = Grafana
|
| 589 |
+
# EHLO identity in SMTP dialog (defaults to instance_name)
|
| 590 |
+
;ehlo_identity = dashboard.example.com
|
| 591 |
+
# SMTP startTLS policy (defaults to 'OpportunisticStartTLS')
|
| 592 |
+
;startTLS_policy = NoStartTLS
|
| 593 |
+
|
| 594 |
+
[emails]
|
| 595 |
+
;welcome_email_on_sign_up = false
|
| 596 |
+
;templates_pattern = emails/*.html, emails/*.txt
|
| 597 |
+
;content_types = text/html
|
| 598 |
+
|
| 599 |
+
#################################### Logging ##########################
|
| 600 |
+
[log]
|
| 601 |
+
# Either "console", "file", "syslog". Default is console and file
|
| 602 |
+
# Use space to separate multiple modes, e.g. "console file"
|
| 603 |
+
;mode = console file
|
| 604 |
+
|
| 605 |
+
# Either "debug", "info", "warn", "error", "critical", default is "info"
|
| 606 |
+
;level = info
|
| 607 |
+
|
| 608 |
+
# optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
|
| 609 |
+
;filters =
|
| 610 |
+
|
| 611 |
+
# For "console" mode only
|
| 612 |
+
[log.console]
|
| 613 |
+
;level =
|
| 614 |
+
|
| 615 |
+
# log line format, valid options are text, console and json
|
| 616 |
+
;format = console
|
| 617 |
+
|
| 618 |
+
# For "file" mode only
|
| 619 |
+
[log.file]
|
| 620 |
+
;level =
|
| 621 |
+
|
| 622 |
+
# log line format, valid options are text, console and json
|
| 623 |
+
;format = text
|
| 624 |
+
|
| 625 |
+
# This enables automated log rotate(switch of following options), default is true
|
| 626 |
+
;log_rotate = true
|
| 627 |
+
|
| 628 |
+
# Max line number of single file, default is 1000000
|
| 629 |
+
;max_lines = 1000000
|
| 630 |
+
|
| 631 |
+
# Max size shift of single file, default is 28 means 1 << 28, 256MB
|
| 632 |
+
;max_size_shift = 28
|
| 633 |
+
|
| 634 |
+
# Segment log daily, default is true
|
| 635 |
+
;daily_rotate = true
|
| 636 |
+
|
| 637 |
+
# Expired days of log file(delete after max days), default is 7
|
| 638 |
+
;max_days = 7
|
| 639 |
+
|
| 640 |
+
[log.syslog]
|
| 641 |
+
;level =
|
| 642 |
+
|
| 643 |
+
# log line format, valid options are text, console and json
|
| 644 |
+
;format = text
|
| 645 |
+
|
| 646 |
+
# Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
|
| 647 |
+
;network =
|
| 648 |
+
;address =
|
| 649 |
+
|
| 650 |
+
# Syslog facility. user, daemon and local0 through local7 are valid.
|
| 651 |
+
;facility =
|
| 652 |
+
|
| 653 |
+
# Syslog tag. By default, the process' argv[0] is used.
|
| 654 |
+
;tag =
|
| 655 |
+
|
| 656 |
+
[log.frontend]
|
| 657 |
+
# Should Sentry javascript agent be initialized
|
| 658 |
+
;enabled = false
|
| 659 |
+
|
| 660 |
+
# Sentry DSN if you want to send events to Sentry.
|
| 661 |
+
;sentry_dsn =
|
| 662 |
+
|
| 663 |
+
# Custom HTTP endpoint to send events captured by the Sentry agent to. Default will log the events to stdout.
|
| 664 |
+
;custom_endpoint = /log
|
| 665 |
+
|
| 666 |
+
# Rate of events to be reported between 0 (none) and 1 (all), float
|
| 667 |
+
;sample_rate = 1.0
|
| 668 |
+
|
| 669 |
+
# Requests per second limit enforced an extended period, for Grafana backend log ingestion endpoint (/log).
|
| 670 |
+
;log_endpoint_requests_per_second_limit = 3
|
| 671 |
+
|
| 672 |
+
# Max requests accepted per short interval of time for Grafana backend log ingestion endpoint (/log).
|
| 673 |
+
;log_endpoint_burst_limit = 15
|
| 674 |
+
|
| 675 |
+
#################################### Usage Quotas ########################
|
| 676 |
+
[quota]
|
| 677 |
+
; enabled = false
|
| 678 |
+
|
| 679 |
+
#### set quotas to -1 to make unlimited. ####
|
| 680 |
+
# limit number of users per Org.
|
| 681 |
+
; org_user = 10
|
| 682 |
+
|
| 683 |
+
# limit number of dashboards per Org.
|
| 684 |
+
; org_dashboard = 100
|
| 685 |
+
|
| 686 |
+
# limit number of data_sources per Org.
|
| 687 |
+
; org_data_source = 10
|
| 688 |
+
|
| 689 |
+
# limit number of api_keys per Org.
|
| 690 |
+
; org_api_key = 10
|
| 691 |
+
|
| 692 |
+
# limit number of alerts per Org.
|
| 693 |
+
;org_alert_rule = 100
|
| 694 |
+
|
| 695 |
+
# limit number of orgs a user can create.
|
| 696 |
+
; user_org = 10
|
| 697 |
+
|
| 698 |
+
# Global limit of users.
|
| 699 |
+
; global_user = -1
|
| 700 |
+
|
| 701 |
+
# global limit of orgs.
|
| 702 |
+
; global_org = -1
|
| 703 |
+
|
| 704 |
+
# global limit of dashboards
|
| 705 |
+
; global_dashboard = -1
|
| 706 |
+
|
| 707 |
+
# global limit of api_keys
|
| 708 |
+
; global_api_key = -1
|
| 709 |
+
|
| 710 |
+
# global limit on number of logged in users.
|
| 711 |
+
; global_session = -1
|
| 712 |
+
|
| 713 |
+
# global limit of alerts
|
| 714 |
+
;global_alert_rule = -1
|
| 715 |
+
|
| 716 |
+
#################################### Unified Alerting ####################
|
| 717 |
+
[unified_alerting]
|
| 718 |
+
#Enable the Unified Alerting sub-system and interface. When enabled we'll migrate all of your alert rules and notification channels to the new system. New alert rules will be created and your notification channels will be converted into an Alertmanager configuration. Previous data is preserved to enable backwards compatibility but new data is removed.```
|
| 719 |
+
;enabled = true
|
| 720 |
+
|
| 721 |
+
# Comma-separated list of organization IDs for which to disable unified alerting. Only supported if unified alerting is enabled.
|
| 722 |
+
;disabled_orgs =
|
| 723 |
+
|
| 724 |
+
# Specify the frequency of polling for admin config changes.
|
| 725 |
+
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
|
| 726 |
+
;admin_config_poll_interval = 60s
|
| 727 |
+
|
| 728 |
+
# Specify the frequency of polling for Alertmanager config changes.
|
| 729 |
+
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
|
| 730 |
+
;alertmanager_config_poll_interval = 60s
|
| 731 |
+
|
| 732 |
+
# Listen address/hostname and port to receive unified alerting messages for other Grafana instances. The port is used for both TCP and UDP. It is assumed other Grafana instances are also running on the same port. The default value is `0.0.0.0:9094`.
|
| 733 |
+
;ha_listen_address = "0.0.0.0:9094"
|
| 734 |
+
|
| 735 |
+
# Listen address/hostname and port to receive unified alerting messages for other Grafana instances. The port is used for both TCP and UDP. It is assumed other Grafana instances are also running on the same port. The default value is `0.0.0.0:9094`.
|
| 736 |
+
;ha_advertise_address = ""
|
| 737 |
+
|
| 738 |
+
# Comma-separated list of initial instances (in a format of host:port) that will form the HA cluster. Configuring this setting will enable High Availability mode for alerting.
|
| 739 |
+
;ha_peers = ""
|
| 740 |
+
|
| 741 |
+
# Time to wait for an instance to send a notification via the Alertmanager. In HA, each Grafana instance will
|
| 742 |
+
# be assigned a position (e.g. 0, 1). We then multiply this position with the timeout to indicate how long should
|
| 743 |
+
# each instance wait before sending the notification to take into account replication lag.
|
| 744 |
+
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
|
| 745 |
+
;ha_peer_timeout = "15s"
|
| 746 |
+
|
| 747 |
+
# The interval between sending gossip messages. By lowering this value (more frequent) gossip messages are propagated
|
| 748 |
+
# across cluster more quickly at the expense of increased bandwidth usage.
|
| 749 |
+
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
|
| 750 |
+
;ha_gossip_interval = "200ms"
|
| 751 |
+
|
| 752 |
+
# The interval between gossip full state syncs. Setting this interval lower (more frequent) will increase convergence speeds
|
| 753 |
+
# across larger clusters at the expense of increased bandwidth usage.
|
| 754 |
+
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
|
| 755 |
+
;ha_push_pull_interval = "60s"
|
| 756 |
+
|
| 757 |
+
# Enable or disable alerting rule execution. The alerting UI remains visible. This option has a legacy version in the `[alerting]` section that takes precedence.
|
| 758 |
+
;execute_alerts = true
|
| 759 |
+
|
| 760 |
+
# Alert evaluation timeout when fetching data from the datasource. This option has a legacy version in the `[alerting]` section that takes precedence.
|
| 761 |
+
# The timeout string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
|
| 762 |
+
;evaluation_timeout = 30s
|
| 763 |
+
|
| 764 |
+
# Number of times we'll attempt to evaluate an alert rule before giving up on that evaluation. This option has a legacy version in the `[alerting]` section that takes precedence.
|
| 765 |
+
;max_attempts = 3
|
| 766 |
+
|
| 767 |
+
# Minimum interval to enforce between rule evaluations. Rules will be adjusted if they are less than this value or if they are not multiple of the scheduler interval (10s). Higher values can help with resource management as we'll schedule fewer evaluations over time. This option has a legacy version in the `[alerting]` section that takes precedence.
|
| 768 |
+
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
|
| 769 |
+
;min_interval = 10s
|
| 770 |
+
|
| 771 |
+
#################################### Alerting ############################
|
| 772 |
+
[alerting]
|
| 773 |
+
# Disable legacy alerting engine & UI features
|
| 774 |
+
;enabled = false
|
| 775 |
+
|
| 776 |
+
# Makes it possible to turn off alert execution but alerting UI is visible
|
| 777 |
+
;execute_alerts = true
|
| 778 |
+
|
| 779 |
+
# Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
|
| 780 |
+
;error_or_timeout = alerting
|
| 781 |
+
|
| 782 |
+
# Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
|
| 783 |
+
;nodata_or_nullvalues = no_data
|
| 784 |
+
|
| 785 |
+
# Alert notifications can include images, but rendering many images at the same time can overload the server
|
| 786 |
+
# This limit will protect the server from render overloading and make sure notifications are sent out quickly
|
| 787 |
+
;concurrent_render_limit = 5
|
| 788 |
+
|
| 789 |
+
# Default setting for alert calculation timeout. Default value is 30
|
| 790 |
+
;evaluation_timeout_seconds = 30
|
| 791 |
+
|
| 792 |
+
# Default setting for alert notification timeout. Default value is 30
|
| 793 |
+
;notification_timeout_seconds = 30
|
| 794 |
+
|
| 795 |
+
# Default setting for max attempts to sending alert notifications. Default value is 3
|
| 796 |
+
;max_attempts = 3
|
| 797 |
+
|
| 798 |
+
# Makes it possible to enforce a minimal interval between evaluations, to reduce load on the backend
|
| 799 |
+
;min_interval_seconds = 1
|
| 800 |
+
|
| 801 |
+
# Configures for how long alert annotations are stored. Default is 0, which keeps them forever.
|
| 802 |
+
# This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
|
| 803 |
+
;max_annotation_age =
|
| 804 |
+
|
| 805 |
+
# Configures max number of alert annotations that Grafana stores. Default value is 0, which keeps all alert annotations.
|
| 806 |
+
;max_annotations_to_keep =
|
| 807 |
+
|
| 808 |
+
#################################### Annotations #########################
|
| 809 |
+
[annotations]
|
| 810 |
+
# Configures the batch size for the annotation clean-up job. This setting is used for dashboard, API, and alert annotations.
|
| 811 |
+
;cleanupjob_batchsize = 100
|
| 812 |
+
|
| 813 |
+
[annotations.dashboard]
|
| 814 |
+
# Dashboard annotations means that annotations are associated with the dashboard they are created on.
|
| 815 |
+
|
| 816 |
+
# Configures how long dashboard annotations are stored. Default is 0, which keeps them forever.
|
| 817 |
+
# This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
|
| 818 |
+
;max_age =
|
| 819 |
+
|
| 820 |
+
# Configures max number of dashboard annotations that Grafana stores. Default value is 0, which keeps all dashboard annotations.
|
| 821 |
+
;max_annotations_to_keep =
|
| 822 |
+
|
| 823 |
+
[annotations.api]
|
| 824 |
+
# API annotations means that the annotations have been created using the API without any
|
| 825 |
+
# association with a dashboard.
|
| 826 |
+
|
| 827 |
+
# Configures how long Grafana stores API annotations. Default is 0, which keeps them forever.
|
| 828 |
+
# This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
|
| 829 |
+
;max_age =
|
| 830 |
+
|
| 831 |
+
# Configures max number of API annotations that Grafana keeps. Default value is 0, which keeps all API annotations.
|
| 832 |
+
;max_annotations_to_keep =
|
| 833 |
+
|
| 834 |
+
#################################### Explore #############################
|
| 835 |
+
[explore]
|
| 836 |
+
# Enable the Explore section
|
| 837 |
+
;enabled = true
|
| 838 |
+
|
| 839 |
+
#################################### Internal Grafana Metrics ##########################
|
| 840 |
+
# Metrics available at HTTP API Url /metrics
|
| 841 |
+
[metrics]
|
| 842 |
+
# Disable / Enable internal metrics
|
| 843 |
+
;enabled = true
|
| 844 |
+
# Graphite Publish interval
|
| 845 |
+
;interval_seconds = 10
|
| 846 |
+
# Disable total stats (stat_totals_*) metrics to be generated
|
| 847 |
+
;disable_total_stats = false
|
| 848 |
+
|
| 849 |
+
#If both are set, basic auth will be required for the metrics endpoint.
|
| 850 |
+
; basic_auth_username =
|
| 851 |
+
; basic_auth_password =
|
| 852 |
+
|
| 853 |
+
# Metrics environment info adds dimensions to the `grafana_environment_info` metric, which
|
| 854 |
+
# can expose more information about the Grafana instance.
|
| 855 |
+
[metrics.environment_info]
|
| 856 |
+
#exampleLabel1 = exampleValue1
|
| 857 |
+
#exampleLabel2 = exampleValue2
|
| 858 |
+
|
| 859 |
+
# Send internal metrics to Graphite
|
| 860 |
+
[metrics.graphite]
|
| 861 |
+
# Enable by setting the address setting (ex localhost:2003)
|
| 862 |
+
;address =
|
| 863 |
+
;prefix = prod.grafana.%(instance_name)s.
|
| 864 |
+
|
| 865 |
+
#################################### Grafana.com integration ##########################
|
| 866 |
+
# Url used to import dashboards directly from Grafana.com
|
| 867 |
+
[grafana_com]
|
| 868 |
+
;url = https://grafana.com
|
| 869 |
+
|
| 870 |
+
#################################### Distributed tracing ############
|
| 871 |
+
[tracing.jaeger]
|
| 872 |
+
# Enable by setting the address sending traces to jaeger (ex localhost:6831)
|
| 873 |
+
;address = localhost:6831
|
| 874 |
+
# Tag that will always be included in when creating new spans. ex (tag1:value1,tag2:value2)
|
| 875 |
+
;always_included_tag = tag1:value1
|
| 876 |
+
# Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
|
| 877 |
+
;sampler_type = const
|
| 878 |
+
# jaeger samplerconfig param
|
| 879 |
+
# for "const" sampler, 0 or 1 for always false/true respectively
|
| 880 |
+
# for "probabilistic" sampler, a probability between 0 and 1
|
| 881 |
+
# for "rateLimiting" sampler, the number of spans per second
|
| 882 |
+
# for "remote" sampler, param is the same as for "probabilistic"
|
| 883 |
+
# and indicates the initial sampling rate before the actual one
|
| 884 |
+
# is received from the mothership
|
| 885 |
+
;sampler_param = 1
|
| 886 |
+
# sampling_server_url is the URL of a sampling manager providing a sampling strategy.
|
| 887 |
+
;sampling_server_url =
|
| 888 |
+
# Whether or not to use Zipkin propagation (x-b3- HTTP headers).
|
| 889 |
+
;zipkin_propagation = false
|
| 890 |
+
# Setting this to true disables shared RPC spans.
|
| 891 |
+
# Not disabling is the most common setting when using Zipkin elsewhere in your infrastructure.
|
| 892 |
+
;disable_shared_zipkin_spans = false
|
| 893 |
+
|
| 894 |
+
#################################### External image storage ##########################
|
| 895 |
+
[external_image_storage]
|
| 896 |
+
# Used for uploading images to public servers so they can be included in slack/email messages.
|
| 897 |
+
# you can choose between (s3, webdav, gcs, azure_blob, local)
|
| 898 |
+
;provider =
|
| 899 |
+
|
| 900 |
+
[external_image_storage.s3]
|
| 901 |
+
;endpoint =
|
| 902 |
+
;path_style_access =
|
| 903 |
+
;bucket =
|
| 904 |
+
;region =
|
| 905 |
+
;path =
|
| 906 |
+
;access_key =
|
| 907 |
+
;secret_key =
|
| 908 |
+
|
| 909 |
+
[external_image_storage.webdav]
|
| 910 |
+
;url =
|
| 911 |
+
;public_url =
|
| 912 |
+
;username =
|
| 913 |
+
;password =
|
| 914 |
+
|
| 915 |
+
[external_image_storage.gcs]
|
| 916 |
+
;key_file =
|
| 917 |
+
;bucket =
|
| 918 |
+
;path =
|
| 919 |
+
|
| 920 |
+
[external_image_storage.azure_blob]
|
| 921 |
+
;account_name =
|
| 922 |
+
;account_key =
|
| 923 |
+
;container_name =
|
| 924 |
+
|
| 925 |
+
[external_image_storage.local]
|
| 926 |
+
# does not require any configuration
|
| 927 |
+
|
| 928 |
+
[rendering]
|
| 929 |
+
# Options to configure a remote HTTP image rendering service, e.g. using https://github.com/grafana/grafana-image-renderer.
|
| 930 |
+
# URL to a remote HTTP image renderer service, e.g. http://localhost:8081/render, will enable Grafana to render panels and dashboards to PNG-images using HTTP requests to an external service.
|
| 931 |
+
;server_url =
|
| 932 |
+
# If the remote HTTP image renderer service runs on a different server than the Grafana server you may have to configure this to a URL where Grafana is reachable, e.g. http://grafana.domain/.
|
| 933 |
+
;callback_url =
|
| 934 |
+
# Concurrent render request limit affects when the /render HTTP endpoint is used. Rendering many images at the same time can overload the server,
|
| 935 |
+
# which this setting can help protect against by only allowing a certain amount of concurrent requests.
|
| 936 |
+
;concurrent_render_request_limit = 30
|
| 937 |
+
|
| 938 |
+
[panels]
|
| 939 |
+
# If set to true Grafana will allow script tags in text panels. Not recommended as it enable XSS vulnerabilities.
|
| 940 |
+
;disable_sanitize_html = false
|
| 941 |
+
|
| 942 |
+
[plugins]
|
| 943 |
+
;enable_alpha = false
|
| 944 |
+
;app_tls_skip_verify_insecure = false
|
| 945 |
+
# Enter a comma-separated list of plugin identifiers to identify plugins to load even if they are unsigned. Plugins with modified signatures are never loaded.
|
| 946 |
+
;allow_loading_unsigned_plugins =
|
| 947 |
+
# Enable or disable installing / uninstalling / updating plugins directly from within Grafana.
|
| 948 |
+
;plugin_admin_enabled = false
|
| 949 |
+
;plugin_admin_external_manage_enabled = false
|
| 950 |
+
;plugin_catalog_url = https://grafana.com/grafana/plugins/
|
| 951 |
+
# Enter a comma-separated list of plugin identifiers to hide in the plugin catalog.
|
| 952 |
+
;plugin_catalog_hidden_plugins =
|
| 953 |
+
|
| 954 |
+
#################################### Grafana Live ##########################################
|
| 955 |
+
[live]
|
| 956 |
+
# max_connections to Grafana Live WebSocket endpoint per Grafana server instance. See Grafana Live docs
|
| 957 |
+
# if you are planning to make it higher than default 100 since this can require some OS and infrastructure
|
| 958 |
+
# tuning. 0 disables Live, -1 means unlimited connections.
|
| 959 |
+
;max_connections = 100
|
| 960 |
+
|
| 961 |
+
# allowed_origins is a comma-separated list of origins that can establish connection with Grafana Live.
|
| 962 |
+
# If not set then origin will be matched over root_url. Supports wildcard symbol "*".
|
| 963 |
+
;allowed_origins =
|
| 964 |
+
|
| 965 |
+
# engine defines an HA (high availability) engine to use for Grafana Live. By default no engine used - in
|
| 966 |
+
# this case Live features work only on a single Grafana server. Available options: "redis".
|
| 967 |
+
# Setting ha_engine is an EXPERIMENTAL feature.
|
| 968 |
+
;ha_engine =
|
| 969 |
+
|
| 970 |
+
# ha_engine_address sets a connection address for Live HA engine. Depending on engine type address format can differ.
|
| 971 |
+
# For now we only support Redis connection address in "host:port" format.
|
| 972 |
+
# This option is EXPERIMENTAL.
|
| 973 |
+
;ha_engine_address = "127.0.0.1:6379"
|
| 974 |
+
|
| 975 |
+
#################################### Grafana Image Renderer Plugin ##########################
|
| 976 |
+
[plugin.grafana-image-renderer]
|
| 977 |
+
# Instruct headless browser instance to use a default timezone when not provided by Grafana, e.g. when rendering panel image of alert.
|
| 978 |
+
# See ICU’s metaZones.txt (https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt) for a list of supported
|
| 979 |
+
# timezone IDs. Fallbacks to TZ environment variable if not set.
|
| 980 |
+
;rendering_timezone =
|
| 981 |
+
|
| 982 |
+
# Instruct headless browser instance to use a default language when not provided by Grafana, e.g. when rendering panel image of alert.
|
| 983 |
+
# Please refer to the HTTP header Accept-Language to understand how to format this value, e.g. 'fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5'.
|
| 984 |
+
;rendering_language =
|
| 985 |
+
|
| 986 |
+
# Instruct headless browser instance to use a default device scale factor when not provided by Grafana, e.g. when rendering panel image of alert.
|
| 987 |
+
# Default is 1. Using a higher value will produce more detailed images (higher DPI), but will require more disk space to store an image.
|
| 988 |
+
;rendering_viewport_device_scale_factor =
|
| 989 |
+
|
| 990 |
+
# Instruct headless browser instance whether to ignore HTTPS errors during navigation. Per default HTTPS errors are not ignored. Due to
|
| 991 |
+
# the security risk it's not recommended to ignore HTTPS errors.
|
| 992 |
+
;rendering_ignore_https_errors =
|
| 993 |
+
|
| 994 |
+
# Instruct headless browser instance whether to capture and log verbose information when rendering an image. Default is false and will
|
| 995 |
+
# only capture and log error messages. When enabled, debug messages are captured and logged as well.
|
| 996 |
+
# For the verbose information to be included in the Grafana server log you have to adjust the rendering log level to debug, configure
|
| 997 |
+
# [log].filter = rendering:debug.
|
| 998 |
+
;rendering_verbose_logging =
|
| 999 |
+
|
| 1000 |
+
# Instruct headless browser instance whether to output its debug and error messages into running process of remote rendering service.
|
| 1001 |
+
# Default is false. This can be useful to enable (true) when troubleshooting.
|
| 1002 |
+
;rendering_dumpio =
|
| 1003 |
+
|
| 1004 |
+
# Additional arguments to pass to the headless browser instance. Default is --no-sandbox. The list of Chromium flags can be found
|
| 1005 |
+
# here (https://peter.sh/experiments/chromium-command-line-switches/). Multiple arguments is separated with comma-character.
|
| 1006 |
+
;rendering_args =
|
| 1007 |
+
|
| 1008 |
+
# You can configure the plugin to use a different browser binary instead of the pre-packaged version of Chromium.
|
| 1009 |
+
# Please note that this is not recommended, since you may encounter problems if the installed version of Chrome/Chromium is not
|
| 1010 |
+
# compatible with the plugin.
|
| 1011 |
+
;rendering_chrome_bin =
|
| 1012 |
+
|
| 1013 |
+
# Instruct how headless browser instances are created. Default is 'default' and will create a new browser instance on each request.
|
| 1014 |
+
# Mode 'clustered' will make sure that only a maximum of browsers/incognito pages can execute concurrently.
|
| 1015 |
+
# Mode 'reusable' will have one browser instance and will create a new incognito page on each request.
|
| 1016 |
+
;rendering_mode =
|
| 1017 |
+
|
| 1018 |
+
# When rendering_mode = clustered, you can instruct how many browsers or incognito pages can execute concurrently. Default is 'browser'
|
| 1019 |
+
# and will cluster using browser instances.
|
| 1020 |
+
# Mode 'context' will cluster using incognito pages.
|
| 1021 |
+
;rendering_clustering_mode =
|
| 1022 |
+
# When rendering_mode = clustered, you can define the maximum number of browser instances/incognito pages that can execute concurrently. Default is '5'.
|
| 1023 |
+
;rendering_clustering_max_concurrency =
|
| 1024 |
+
# When rendering_mode = clustered, you can specify the duration a rendering request can take before it will time out. Default is `30` seconds.
|
| 1025 |
+
;rendering_clustering_timeout =
|
| 1026 |
+
|
| 1027 |
+
# Limit the maximum viewport width, height and device scale factor that can be requested.
|
| 1028 |
+
;rendering_viewport_max_width =
|
| 1029 |
+
;rendering_viewport_max_height =
|
| 1030 |
+
;rendering_viewport_max_device_scale_factor =
|
| 1031 |
+
|
| 1032 |
+
# Change the listening host and port of the gRPC server. Default host is 127.0.0.1 and default port is 0 and will automatically assign
|
| 1033 |
+
# a port not in use.
|
| 1034 |
+
;grpc_host =
|
| 1035 |
+
;grpc_port =
|
| 1036 |
+
|
| 1037 |
+
[enterprise]
|
| 1038 |
+
# Path to a valid Grafana Enterprise license.jwt file
|
| 1039 |
+
;license_path =
|
| 1040 |
+
|
| 1041 |
+
[feature_toggles]
|
| 1042 |
+
# enable features, separated by spaces
|
| 1043 |
+
;enable =
|
| 1044 |
+
|
| 1045 |
+
[date_formats]
|
| 1046 |
+
# For information on what formatting patterns that are supported https://momentjs.com/docs/#/displaying/
|
| 1047 |
+
|
| 1048 |
+
# Default system date format used in time range picker and other places where full time is displayed
|
| 1049 |
+
;full_date = YYYY-MM-DD HH:mm:ss
|
| 1050 |
+
|
| 1051 |
+
# Used by graph and other places where we only show small intervals
|
| 1052 |
+
;interval_second = HH:mm:ss
|
| 1053 |
+
;interval_minute = HH:mm
|
| 1054 |
+
;interval_hour = MM/DD HH:mm
|
| 1055 |
+
;interval_day = MM/DD
|
| 1056 |
+
;interval_month = YYYY-MM
|
| 1057 |
+
;interval_year = YYYY
|
| 1058 |
+
|
| 1059 |
+
# Experimental feature
|
| 1060 |
+
;use_browser_locale = false
|
| 1061 |
+
|
| 1062 |
+
# Default timezone for user preferences. Options are 'browser' for the browser local timezone or a timezone name from IANA Time Zone database, e.g. 'UTC' or 'Europe/Amsterdam' etc.
|
| 1063 |
+
;default_timezone = browser
|
| 1064 |
+
|
| 1065 |
+
[expressions]
|
| 1066 |
+
# Enable or disable the expressions functionality.
|
| 1067 |
+
;enabled = true
|
| 1068 |
+
|
| 1069 |
+
[geomap]
|
| 1070 |
+
# Set the JSON configuration for the default basemap
|
| 1071 |
+
;default_baselayer_config = `{
|
| 1072 |
+
; "type": "xyz",
|
| 1073 |
+
; "config": {
|
| 1074 |
+
; "attribution": "Open street map",
|
| 1075 |
+
; "url": "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
|
| 1076 |
+
; }
|
| 1077 |
+
;}`
|
| 1078 |
+
|
| 1079 |
+
# Enable or disable loading other base map layers
|
| 1080 |
+
;enable_custom_baselayers = true
|
platform/dbops/binaries/weaviate-src/tools/dev/keycloak/get_token.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
|
| 3 |
+
set -eou pipefail
|
| 4 |
+
|
| 5 |
+
# Jump to root directory
|
| 6 |
+
cd "$( dirname "${BASH_SOURCE[0]}" )"/../.. || exit 1
|
| 7 |
+
|
| 8 |
+
function main() {
|
| 9 |
+
USERNAME=${1:-johndoe}
|
| 10 |
+
PASSWORD=$USERNAME
|
| 11 |
+
|
| 12 |
+
curl --fail -s -X POST -d grant_type=password -d client_id=demo -d username="$USERNAME" -d password="$PASSWORD" http://localhost:9090/auth/realms/weaviate/protocol/openid-connect/token | jq -r ".access_token"
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
main "$@"
|
platform/dbops/binaries/weaviate-src/tools/dev/keycloak/import_users.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
set -eou pipefail
|
| 4 |
+
|
| 5 |
+
# Jump to root directory
|
| 6 |
+
cd "$( dirname "${BASH_SOURCE[0]}" )"/../.. || exit 1
|
| 7 |
+
|
| 8 |
+
function main() {
|
| 9 |
+
# Get admin token
|
| 10 |
+
TOKEN=$( curl --fail -s -X POST -d grant_type=password -d client_id=admin-cli -d username=admin -d password=admin http://localhost:9090/auth/realms/master/protocol/openid-connect/token | jq -r .access_token )
|
| 11 |
+
|
| 12 |
+
# Create user
|
| 13 |
+
if ! curl --fail -s -X POST -d '{"username":"johndoe", "enabled":true, "email":"john@doe.com", "emailVerified":true, "credentials":[{"type":"password","value":"johndoe"}]}' -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' http://localhost:9090/auth/admin/realms/weaviate/users; then
|
| 14 |
+
echo Error creating user
|
| 15 |
+
return 1
|
| 16 |
+
fi
|
| 17 |
+
|
| 18 |
+
echo ""
|
| 19 |
+
echo "Created user 'johndoe' with password 'johndoe'."
|
| 20 |
+
echo "You can retrieve a token for this user using:"
|
| 21 |
+
echo " $ ./tools/dev/keycloak/get_token.sh johndoe"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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "weaviate",
|
| 3 |
+
"realm": "weaviate",
|
| 4 |
+
"displayName": "Keycloak",
|
| 5 |
+
"displayNameHtml": "<div class=\"kc-logo-text\"><span>Keycloak</span></div>",
|
| 6 |
+
"notBefore": 0,
|
| 7 |
+
"revokeRefreshToken": false,
|
| 8 |
+
"refreshTokenMaxReuse": 0,
|
| 9 |
+
"accessTokenLifespan": 60,
|
| 10 |
+
"accessTokenLifespanForImplicitFlow": 900,
|
| 11 |
+
"ssoSessionIdleTimeout": 1800,
|
| 12 |
+
"ssoSessionMaxLifespan": 36000,
|
| 13 |
+
"ssoSessionIdleTimeoutRememberMe": 0,
|
| 14 |
+
"ssoSessionMaxLifespanRememberMe": 0,
|
| 15 |
+
"offlineSessionIdleTimeout": 2592000,
|
| 16 |
+
"offlineSessionMaxLifespanEnabled": false,
|
| 17 |
+
"offlineSessionMaxLifespan": 5184000,
|
| 18 |
+
"accessCodeLifespan": 60,
|
| 19 |
+
"accessCodeLifespanUserAction": 300,
|
| 20 |
+
"accessCodeLifespanLogin": 1800,
|
| 21 |
+
"actionTokenGeneratedByAdminLifespan": 43200,
|
| 22 |
+
"actionTokenGeneratedByUserLifespan": 300,
|
| 23 |
+
"enabled": true,
|
| 24 |
+
"sslRequired": "external",
|
| 25 |
+
"registrationAllowed": false,
|
| 26 |
+
"registrationEmailAsUsername": false,
|
| 27 |
+
"rememberMe": false,
|
| 28 |
+
"verifyEmail": false,
|
| 29 |
+
"loginWithEmailAllowed": true,
|
| 30 |
+
"duplicateEmailsAllowed": false,
|
| 31 |
+
"resetPasswordAllowed": false,
|
| 32 |
+
"editUsernameAllowed": false,
|
| 33 |
+
"bruteForceProtected": false,
|
| 34 |
+
"permanentLockout": false,
|
| 35 |
+
"maxFailureWaitSeconds": 900,
|
| 36 |
+
"minimumQuickLoginWaitSeconds": 60,
|
| 37 |
+
"waitIncrementSeconds": 60,
|
| 38 |
+
"quickLoginCheckMilliSeconds": 1000,
|
| 39 |
+
"maxDeltaTimeSeconds": 43200,
|
| 40 |
+
"failureFactor": 30,
|
| 41 |
+
"roles": {
|
| 42 |
+
"realm": [
|
| 43 |
+
{
|
| 44 |
+
"id": "bcf90610-c3a7-4f04-af25-9f0f856841c3",
|
| 45 |
+
"name": "uma_authorization",
|
| 46 |
+
"composite": false,
|
| 47 |
+
"clientRole": false,
|
| 48 |
+
"containerId": "weaviate",
|
| 49 |
+
"attributes": {}
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"id": "3e47b161-5941-4c97-9b91-95ddea37f0fc",
|
| 53 |
+
"name": "offline_access",
|
| 54 |
+
"description": "${role_offline-access}",
|
| 55 |
+
"composite": false,
|
| 56 |
+
"clientRole": false,
|
| 57 |
+
"containerId": "weaviate",
|
| 58 |
+
"attributes": {}
|
| 59 |
+
}
|
| 60 |
+
],
|
| 61 |
+
"client": {
|
| 62 |
+
"realm-management": [
|
| 63 |
+
{
|
| 64 |
+
"id": "52f0e9c2-2d91-48bb-b48e-46f4e4e4dc2b",
|
| 65 |
+
"name": "manage-realm",
|
| 66 |
+
"description": "${role_manage-realm}",
|
| 67 |
+
"composite": false,
|
| 68 |
+
"clientRole": true,
|
| 69 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 70 |
+
"attributes": {}
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"id": "a16d7c02-9bb2-4891-9675-aa19a0b6538e",
|
| 74 |
+
"name": "manage-users",
|
| 75 |
+
"description": "${role_manage-users}",
|
| 76 |
+
"composite": false,
|
| 77 |
+
"clientRole": true,
|
| 78 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 79 |
+
"attributes": {}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"id": "41634c37-53e2-43e5-9e89-5914db9fddf3",
|
| 83 |
+
"name": "view-identity-providers",
|
| 84 |
+
"description": "${role_view-identity-providers}",
|
| 85 |
+
"composite": false,
|
| 86 |
+
"clientRole": true,
|
| 87 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 88 |
+
"attributes": {}
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"id": "139f59c0-d0fd-403e-bb93-ee2d16286fac",
|
| 92 |
+
"name": "manage-identity-providers",
|
| 93 |
+
"description": "${role_manage-identity-providers}",
|
| 94 |
+
"composite": false,
|
| 95 |
+
"clientRole": true,
|
| 96 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 97 |
+
"attributes": {}
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"id": "f7488874-24aa-42a2-838f-a8760a66dc50",
|
| 101 |
+
"name": "manage-clients",
|
| 102 |
+
"description": "${role_manage-clients}",
|
| 103 |
+
"composite": false,
|
| 104 |
+
"clientRole": true,
|
| 105 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 106 |
+
"attributes": {}
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"id": "2af9e4c7-4b2e-4607-9541-d98c91d69f5f",
|
| 110 |
+
"name": "impersonation",
|
| 111 |
+
"description": "${role_impersonation}",
|
| 112 |
+
"composite": false,
|
| 113 |
+
"clientRole": true,
|
| 114 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 115 |
+
"attributes": {}
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"id": "42f271a0-61ca-4a01-bdd6-592bbadcea14",
|
| 119 |
+
"name": "manage-events",
|
| 120 |
+
"description": "${role_manage-events}",
|
| 121 |
+
"composite": false,
|
| 122 |
+
"clientRole": true,
|
| 123 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 124 |
+
"attributes": {}
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"id": "6898b010-83f2-4aac-987b-5906dfe48903",
|
| 128 |
+
"name": "query-realms",
|
| 129 |
+
"description": "${role_query-realms}",
|
| 130 |
+
"composite": false,
|
| 131 |
+
"clientRole": true,
|
| 132 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 133 |
+
"attributes": {}
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"id": "afa527b5-fdc4-453a-903e-a50fc6e36e17",
|
| 137 |
+
"name": "query-groups",
|
| 138 |
+
"description": "${role_query-groups}",
|
| 139 |
+
"composite": false,
|
| 140 |
+
"clientRole": true,
|
| 141 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 142 |
+
"attributes": {}
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"id": "333af307-6a71-46d8-a85e-8cfed4c888c9",
|
| 146 |
+
"name": "view-users",
|
| 147 |
+
"description": "${role_view-users}",
|
| 148 |
+
"composite": true,
|
| 149 |
+
"composites": {
|
| 150 |
+
"client": {
|
| 151 |
+
"realm-management": [
|
| 152 |
+
"query-users",
|
| 153 |
+
"query-groups"
|
| 154 |
+
]
|
| 155 |
+
}
|
| 156 |
+
},
|
| 157 |
+
"clientRole": true,
|
| 158 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 159 |
+
"attributes": {}
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"id": "04cf7adb-6bbc-43ff-96e4-b0d3b950c342",
|
| 163 |
+
"name": "manage-authorization",
|
| 164 |
+
"description": "${role_manage-authorization}",
|
| 165 |
+
"composite": false,
|
| 166 |
+
"clientRole": true,
|
| 167 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 168 |
+
"attributes": {}
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"id": "16420961-6866-481c-9c88-69106e8d0ff6",
|
| 172 |
+
"name": "view-clients",
|
| 173 |
+
"description": "${role_view-clients}",
|
| 174 |
+
"composite": true,
|
| 175 |
+
"composites": {
|
| 176 |
+
"client": {
|
| 177 |
+
"realm-management": [
|
| 178 |
+
"query-clients"
|
| 179 |
+
]
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
"clientRole": true,
|
| 183 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 184 |
+
"attributes": {}
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"id": "0abf0b40-9185-48bb-8421-31aa250cafb4",
|
| 188 |
+
"name": "create-client",
|
| 189 |
+
"description": "${role_create-client}",
|
| 190 |
+
"composite": false,
|
| 191 |
+
"clientRole": true,
|
| 192 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 193 |
+
"attributes": {}
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"id": "e324bf87-47d9-436a-9f2d-e64df34a6a41",
|
| 197 |
+
"name": "view-events",
|
| 198 |
+
"description": "${role_view-events}",
|
| 199 |
+
"composite": false,
|
| 200 |
+
"clientRole": true,
|
| 201 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 202 |
+
"attributes": {}
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"id": "c9b45a2a-ed9a-4c40-9864-05f84516897b",
|
| 206 |
+
"name": "view-authorization",
|
| 207 |
+
"description": "${role_view-authorization}",
|
| 208 |
+
"composite": false,
|
| 209 |
+
"clientRole": true,
|
| 210 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 211 |
+
"attributes": {}
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"id": "3fcb99db-412e-4342-bf06-297a68202f93",
|
| 215 |
+
"name": "query-clients",
|
| 216 |
+
"description": "${role_query-clients}",
|
| 217 |
+
"composite": false,
|
| 218 |
+
"clientRole": true,
|
| 219 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 220 |
+
"attributes": {}
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"id": "2c103067-a335-44b4-8dd0-483c1b309271",
|
| 224 |
+
"name": "view-realm",
|
| 225 |
+
"description": "${role_view-realm}",
|
| 226 |
+
"composite": false,
|
| 227 |
+
"clientRole": true,
|
| 228 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 229 |
+
"attributes": {}
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"id": "ad188d4d-62ed-47bb-b4bb-ffb9a9e49676",
|
| 233 |
+
"name": "query-users",
|
| 234 |
+
"description": "${role_query-users}",
|
| 235 |
+
"composite": false,
|
| 236 |
+
"clientRole": true,
|
| 237 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 238 |
+
"attributes": {}
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"id": "38b80f27-414b-4be2-ad8a-ed03cdcbe0fd",
|
| 242 |
+
"name": "realm-admin",
|
| 243 |
+
"description": "${role_realm-admin}",
|
| 244 |
+
"composite": true,
|
| 245 |
+
"composites": {
|
| 246 |
+
"client": {
|
| 247 |
+
"realm-management": [
|
| 248 |
+
"manage-realm",
|
| 249 |
+
"manage-users",
|
| 250 |
+
"view-identity-providers",
|
| 251 |
+
"manage-identity-providers",
|
| 252 |
+
"impersonation",
|
| 253 |
+
"manage-clients",
|
| 254 |
+
"manage-events",
|
| 255 |
+
"query-realms",
|
| 256 |
+
"query-groups",
|
| 257 |
+
"view-users",
|
| 258 |
+
"manage-authorization",
|
| 259 |
+
"view-clients",
|
| 260 |
+
"create-client",
|
| 261 |
+
"view-authorization",
|
| 262 |
+
"view-events",
|
| 263 |
+
"query-clients",
|
| 264 |
+
"view-realm",
|
| 265 |
+
"query-users"
|
| 266 |
+
]
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
"clientRole": true,
|
| 270 |
+
"containerId": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 271 |
+
"attributes": {}
|
| 272 |
+
}
|
| 273 |
+
],
|
| 274 |
+
"security-admin-console": [],
|
| 275 |
+
"admin-cli": [],
|
| 276 |
+
"broker": [
|
| 277 |
+
{
|
| 278 |
+
"id": "003c33a2-f062-46c6-bbe8-75637a66f6d6",
|
| 279 |
+
"name": "read-token",
|
| 280 |
+
"description": "${role_read-token}",
|
| 281 |
+
"composite": false,
|
| 282 |
+
"clientRole": true,
|
| 283 |
+
"containerId": "f7d6538a-32ea-4d48-9a95-e4fab1745e87",
|
| 284 |
+
"attributes": {}
|
| 285 |
+
}
|
| 286 |
+
],
|
| 287 |
+
"demo": [],
|
| 288 |
+
"account": [
|
| 289 |
+
{
|
| 290 |
+
"id": "638fafaf-7a1d-417f-8244-53efd03f2efa",
|
| 291 |
+
"name": "view-profile",
|
| 292 |
+
"description": "${role_view-profile}",
|
| 293 |
+
"composite": false,
|
| 294 |
+
"clientRole": true,
|
| 295 |
+
"containerId": "86086ea0-cc30-404d-bba3-4619af803f73",
|
| 296 |
+
"attributes": {}
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"id": "3735e215-f5ab-4974-beef-9d9815a311a1",
|
| 300 |
+
"name": "manage-account",
|
| 301 |
+
"description": "${role_manage-account}",
|
| 302 |
+
"composite": true,
|
| 303 |
+
"composites": {
|
| 304 |
+
"client": {
|
| 305 |
+
"account": [
|
| 306 |
+
"manage-account-links"
|
| 307 |
+
]
|
| 308 |
+
}
|
| 309 |
+
},
|
| 310 |
+
"clientRole": true,
|
| 311 |
+
"containerId": "86086ea0-cc30-404d-bba3-4619af803f73",
|
| 312 |
+
"attributes": {}
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"id": "30460f75-3543-44b6-88a3-4666db06b3b0",
|
| 316 |
+
"name": "manage-account-links",
|
| 317 |
+
"description": "${role_manage-account-links}",
|
| 318 |
+
"composite": false,
|
| 319 |
+
"clientRole": true,
|
| 320 |
+
"containerId": "86086ea0-cc30-404d-bba3-4619af803f73",
|
| 321 |
+
"attributes": {}
|
| 322 |
+
}
|
| 323 |
+
]
|
| 324 |
+
}
|
| 325 |
+
},
|
| 326 |
+
"groups": [],
|
| 327 |
+
"defaultRoles": [
|
| 328 |
+
"offline_access",
|
| 329 |
+
"uma_authorization"
|
| 330 |
+
],
|
| 331 |
+
"requiredCredentials": [
|
| 332 |
+
"password"
|
| 333 |
+
],
|
| 334 |
+
"otpPolicyType": "totp",
|
| 335 |
+
"otpPolicyAlgorithm": "HmacSHA1",
|
| 336 |
+
"otpPolicyInitialCounter": 0,
|
| 337 |
+
"otpPolicyDigits": 6,
|
| 338 |
+
"otpPolicyLookAheadWindow": 1,
|
| 339 |
+
"otpPolicyPeriod": 30,
|
| 340 |
+
"otpSupportedApplications": [
|
| 341 |
+
"FreeOTP",
|
| 342 |
+
"Google Authenticator"
|
| 343 |
+
],
|
| 344 |
+
"scopeMappings": [
|
| 345 |
+
{
|
| 346 |
+
"clientScope": "offline_access",
|
| 347 |
+
"roles": [
|
| 348 |
+
"offline_access"
|
| 349 |
+
]
|
| 350 |
+
}
|
| 351 |
+
],
|
| 352 |
+
"clients": [
|
| 353 |
+
{
|
| 354 |
+
"id": "bb1dad02-482b-47ed-b409-bcc41db69ec1",
|
| 355 |
+
"clientId": "admin-cli",
|
| 356 |
+
"name": "${client_admin-cli}",
|
| 357 |
+
"surrogateAuthRequired": false,
|
| 358 |
+
"enabled": true,
|
| 359 |
+
"clientAuthenticatorType": "client-secret",
|
| 360 |
+
"secret": "**********",
|
| 361 |
+
"redirectUris": [],
|
| 362 |
+
"webOrigins": [],
|
| 363 |
+
"notBefore": 0,
|
| 364 |
+
"bearerOnly": false,
|
| 365 |
+
"consentRequired": false,
|
| 366 |
+
"standardFlowEnabled": false,
|
| 367 |
+
"implicitFlowEnabled": false,
|
| 368 |
+
"directAccessGrantsEnabled": true,
|
| 369 |
+
"serviceAccountsEnabled": false,
|
| 370 |
+
"publicClient": true,
|
| 371 |
+
"frontchannelLogout": false,
|
| 372 |
+
"protocol": "openid-connect",
|
| 373 |
+
"attributes": {},
|
| 374 |
+
"authenticationFlowBindingOverrides": {},
|
| 375 |
+
"fullScopeAllowed": false,
|
| 376 |
+
"nodeReRegistrationTimeout": 0,
|
| 377 |
+
"defaultClientScopes": [],
|
| 378 |
+
"optionalClientScopes": []
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"id": "f7d6538a-32ea-4d48-9a95-e4fab1745e87",
|
| 382 |
+
"clientId": "broker",
|
| 383 |
+
"name": "${client_broker}",
|
| 384 |
+
"surrogateAuthRequired": false,
|
| 385 |
+
"enabled": true,
|
| 386 |
+
"clientAuthenticatorType": "client-secret",
|
| 387 |
+
"secret": "**********",
|
| 388 |
+
"redirectUris": [],
|
| 389 |
+
"webOrigins": [],
|
| 390 |
+
"notBefore": 0,
|
| 391 |
+
"bearerOnly": false,
|
| 392 |
+
"consentRequired": false,
|
| 393 |
+
"standardFlowEnabled": true,
|
| 394 |
+
"implicitFlowEnabled": false,
|
| 395 |
+
"directAccessGrantsEnabled": false,
|
| 396 |
+
"serviceAccountsEnabled": false,
|
| 397 |
+
"publicClient": false,
|
| 398 |
+
"frontchannelLogout": false,
|
| 399 |
+
"protocol": "openid-connect",
|
| 400 |
+
"attributes": {},
|
| 401 |
+
"authenticationFlowBindingOverrides": {},
|
| 402 |
+
"fullScopeAllowed": false,
|
| 403 |
+
"nodeReRegistrationTimeout": 0,
|
| 404 |
+
"defaultClientScopes": [],
|
| 405 |
+
"optionalClientScopes": []
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"id": "bb1b3891-eea7-4cca-b885-2b09c73dd1f4",
|
| 409 |
+
"clientId": "security-admin-console",
|
| 410 |
+
"name": "${client_security-admin-console}",
|
| 411 |
+
"baseUrl": "/auth/admin/weaviate/console/index.html",
|
| 412 |
+
"surrogateAuthRequired": false,
|
| 413 |
+
"enabled": true,
|
| 414 |
+
"clientAuthenticatorType": "client-secret",
|
| 415 |
+
"secret": "**********",
|
| 416 |
+
"redirectUris": [
|
| 417 |
+
"/auth/admin/weaviate/console/*"
|
| 418 |
+
],
|
| 419 |
+
"webOrigins": [],
|
| 420 |
+
"notBefore": 0,
|
| 421 |
+
"bearerOnly": false,
|
| 422 |
+
"consentRequired": false,
|
| 423 |
+
"standardFlowEnabled": true,
|
| 424 |
+
"implicitFlowEnabled": false,
|
| 425 |
+
"directAccessGrantsEnabled": false,
|
| 426 |
+
"serviceAccountsEnabled": false,
|
| 427 |
+
"publicClient": true,
|
| 428 |
+
"frontchannelLogout": false,
|
| 429 |
+
"protocol": "openid-connect",
|
| 430 |
+
"attributes": {},
|
| 431 |
+
"authenticationFlowBindingOverrides": {},
|
| 432 |
+
"fullScopeAllowed": false,
|
| 433 |
+
"nodeReRegistrationTimeout": 0,
|
| 434 |
+
"protocolMappers": [
|
| 435 |
+
{
|
| 436 |
+
"id": "01f87462-9300-4ef3-85a6-73b14b4618a7",
|
| 437 |
+
"name": "locale",
|
| 438 |
+
"protocol": "openid-connect",
|
| 439 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 440 |
+
"consentRequired": false,
|
| 441 |
+
"config": {
|
| 442 |
+
"userinfo.token.claim": "true",
|
| 443 |
+
"user.attribute": "locale",
|
| 444 |
+
"id.token.claim": "true",
|
| 445 |
+
"access.token.claim": "true",
|
| 446 |
+
"claim.name": "locale",
|
| 447 |
+
"jsonType.label": "String"
|
| 448 |
+
}
|
| 449 |
+
}
|
| 450 |
+
],
|
| 451 |
+
"defaultClientScopes": [],
|
| 452 |
+
"optionalClientScopes": []
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"id": "86086ea0-cc30-404d-bba3-4619af803f73",
|
| 456 |
+
"clientId": "account",
|
| 457 |
+
"name": "${client_account}",
|
| 458 |
+
"baseUrl": "/auth/realms/weaviate/account",
|
| 459 |
+
"surrogateAuthRequired": false,
|
| 460 |
+
"enabled": true,
|
| 461 |
+
"clientAuthenticatorType": "client-secret",
|
| 462 |
+
"secret": "**********",
|
| 463 |
+
"defaultRoles": [
|
| 464 |
+
"manage-account",
|
| 465 |
+
"view-profile"
|
| 466 |
+
],
|
| 467 |
+
"redirectUris": [
|
| 468 |
+
"/auth/realms/weaviate/account/*"
|
| 469 |
+
],
|
| 470 |
+
"webOrigins": [],
|
| 471 |
+
"notBefore": 0,
|
| 472 |
+
"bearerOnly": false,
|
| 473 |
+
"consentRequired": false,
|
| 474 |
+
"standardFlowEnabled": true,
|
| 475 |
+
"implicitFlowEnabled": false,
|
| 476 |
+
"directAccessGrantsEnabled": false,
|
| 477 |
+
"serviceAccountsEnabled": false,
|
| 478 |
+
"publicClient": false,
|
| 479 |
+
"frontchannelLogout": false,
|
| 480 |
+
"protocol": "openid-connect",
|
| 481 |
+
"attributes": {},
|
| 482 |
+
"authenticationFlowBindingOverrides": {},
|
| 483 |
+
"fullScopeAllowed": false,
|
| 484 |
+
"nodeReRegistrationTimeout": 0,
|
| 485 |
+
"defaultClientScopes": [],
|
| 486 |
+
"optionalClientScopes": []
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"id": "7763dbe7-825e-4254-b0a5-b81afd8a8fd8",
|
| 490 |
+
"clientId": "demo",
|
| 491 |
+
"rootUrl": "http://localhost:8080",
|
| 492 |
+
"adminUrl": "http://localhost:8080",
|
| 493 |
+
"surrogateAuthRequired": false,
|
| 494 |
+
"enabled": true,
|
| 495 |
+
"clientAuthenticatorType": "client-secret",
|
| 496 |
+
"secret": "**********",
|
| 497 |
+
"redirectUris": [
|
| 498 |
+
"http://localhost:8080/*"
|
| 499 |
+
],
|
| 500 |
+
"webOrigins": [
|
| 501 |
+
"http://localhost:8080"
|
| 502 |
+
],
|
| 503 |
+
"notBefore": 0,
|
| 504 |
+
"bearerOnly": false,
|
| 505 |
+
"consentRequired": false,
|
| 506 |
+
"standardFlowEnabled": true,
|
| 507 |
+
"implicitFlowEnabled": false,
|
| 508 |
+
"directAccessGrantsEnabled": true,
|
| 509 |
+
"serviceAccountsEnabled": false,
|
| 510 |
+
"publicClient": true,
|
| 511 |
+
"frontchannelLogout": false,
|
| 512 |
+
"protocol": "openid-connect",
|
| 513 |
+
"attributes": {
|
| 514 |
+
"saml.assertion.signature": "false",
|
| 515 |
+
"access.token.lifespan": "600",
|
| 516 |
+
"saml.force.post.binding": "false",
|
| 517 |
+
"saml.multivalued.roles": "false",
|
| 518 |
+
"saml.encrypt": "false",
|
| 519 |
+
"saml.server.signature": "false",
|
| 520 |
+
"saml.server.signature.keyinfo.ext": "false",
|
| 521 |
+
"exclude.session.state.from.auth.response": "false",
|
| 522 |
+
"saml_force_name_id_format": "false",
|
| 523 |
+
"saml.client.signature": "false",
|
| 524 |
+
"tls.client.certificate.bound.access.tokens": "false",
|
| 525 |
+
"saml.authnstatement": "false",
|
| 526 |
+
"display.on.consent.screen": "false",
|
| 527 |
+
"saml.onetimeuse.condition": "false"
|
| 528 |
+
},
|
| 529 |
+
"authenticationFlowBindingOverrides": {},
|
| 530 |
+
"fullScopeAllowed": true,
|
| 531 |
+
"nodeReRegistrationTimeout": -1,
|
| 532 |
+
"protocolMappers": [
|
| 533 |
+
{
|
| 534 |
+
"id": "1cea9d89-f6b7-4682-8e83-3eb05b486e0d",
|
| 535 |
+
"name": "Groups in Token",
|
| 536 |
+
"protocol": "openid-connect",
|
| 537 |
+
"protocolMapper": "oidc-group-membership-mapper",
|
| 538 |
+
"consentRequired": false,
|
| 539 |
+
"config": {
|
| 540 |
+
"full.path": "true",
|
| 541 |
+
"id.token.claim": "true",
|
| 542 |
+
"access.token.claim": "true",
|
| 543 |
+
"claim.name": "groups",
|
| 544 |
+
"userinfo.token.claim": "true"
|
| 545 |
+
}
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"id": "0a2bed13-8fb9-4c5a-985e-f10e2f9a1bb7",
|
| 549 |
+
"name": "Audience in Token",
|
| 550 |
+
"protocol": "openid-connect",
|
| 551 |
+
"protocolMapper": "oidc-audience-mapper",
|
| 552 |
+
"consentRequired": false,
|
| 553 |
+
"config": {
|
| 554 |
+
"included.client.audience": "demo",
|
| 555 |
+
"id.token.claim": "true",
|
| 556 |
+
"access.token.claim": "true"
|
| 557 |
+
}
|
| 558 |
+
}
|
| 559 |
+
],
|
| 560 |
+
"defaultClientScopes": [
|
| 561 |
+
"web-origins",
|
| 562 |
+
"role_list",
|
| 563 |
+
"roles",
|
| 564 |
+
"profile",
|
| 565 |
+
"email"
|
| 566 |
+
],
|
| 567 |
+
"optionalClientScopes": [
|
| 568 |
+
"address",
|
| 569 |
+
"phone",
|
| 570 |
+
"offline_access"
|
| 571 |
+
]
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"id": "32fefe82-19b6-4c55-8ab1-1a7bd43c5e1e",
|
| 575 |
+
"clientId": "realm-management",
|
| 576 |
+
"name": "${client_realm-management}",
|
| 577 |
+
"surrogateAuthRequired": false,
|
| 578 |
+
"enabled": true,
|
| 579 |
+
"clientAuthenticatorType": "client-secret",
|
| 580 |
+
"secret": "**********",
|
| 581 |
+
"redirectUris": [],
|
| 582 |
+
"webOrigins": [],
|
| 583 |
+
"notBefore": 0,
|
| 584 |
+
"bearerOnly": true,
|
| 585 |
+
"consentRequired": false,
|
| 586 |
+
"standardFlowEnabled": true,
|
| 587 |
+
"implicitFlowEnabled": false,
|
| 588 |
+
"directAccessGrantsEnabled": false,
|
| 589 |
+
"serviceAccountsEnabled": false,
|
| 590 |
+
"publicClient": false,
|
| 591 |
+
"frontchannelLogout": false,
|
| 592 |
+
"protocol": "openid-connect",
|
| 593 |
+
"attributes": {},
|
| 594 |
+
"authenticationFlowBindingOverrides": {},
|
| 595 |
+
"fullScopeAllowed": false,
|
| 596 |
+
"nodeReRegistrationTimeout": 0,
|
| 597 |
+
"defaultClientScopes": [],
|
| 598 |
+
"optionalClientScopes": []
|
| 599 |
+
}
|
| 600 |
+
],
|
| 601 |
+
"clientScopes": [
|
| 602 |
+
{
|
| 603 |
+
"id": "9324ed2f-73c2-42b0-9252-107e2aa1c7d7",
|
| 604 |
+
"name": "address",
|
| 605 |
+
"description": "OpenID Connect built-in scope: address",
|
| 606 |
+
"protocol": "openid-connect",
|
| 607 |
+
"attributes": {
|
| 608 |
+
"include.in.token.scope": "true",
|
| 609 |
+
"display.on.consent.screen": "true",
|
| 610 |
+
"consent.screen.text": "${addressScopeConsentText}"
|
| 611 |
+
},
|
| 612 |
+
"protocolMappers": [
|
| 613 |
+
{
|
| 614 |
+
"id": "7afed556-4132-4bf6-97ae-a3653ac6ceea",
|
| 615 |
+
"name": "address",
|
| 616 |
+
"protocol": "openid-connect",
|
| 617 |
+
"protocolMapper": "oidc-address-mapper",
|
| 618 |
+
"consentRequired": false,
|
| 619 |
+
"config": {
|
| 620 |
+
"user.attribute.formatted": "formatted",
|
| 621 |
+
"user.attribute.country": "country",
|
| 622 |
+
"user.attribute.postal_code": "postal_code",
|
| 623 |
+
"userinfo.token.claim": "true",
|
| 624 |
+
"user.attribute.street": "street",
|
| 625 |
+
"id.token.claim": "true",
|
| 626 |
+
"user.attribute.region": "region",
|
| 627 |
+
"access.token.claim": "true",
|
| 628 |
+
"user.attribute.locality": "locality"
|
| 629 |
+
}
|
| 630 |
+
}
|
| 631 |
+
]
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"id": "5fb55885-093b-4d65-b0dd-32803c7f4a7a",
|
| 635 |
+
"name": "email",
|
| 636 |
+
"description": "OpenID Connect built-in scope: email",
|
| 637 |
+
"protocol": "openid-connect",
|
| 638 |
+
"attributes": {
|
| 639 |
+
"include.in.token.scope": "true",
|
| 640 |
+
"display.on.consent.screen": "true",
|
| 641 |
+
"consent.screen.text": "${emailScopeConsentText}"
|
| 642 |
+
},
|
| 643 |
+
"protocolMappers": [
|
| 644 |
+
{
|
| 645 |
+
"id": "2a5ee0e1-fcc1-4425-a3dd-e6fa4338ddcb",
|
| 646 |
+
"name": "email verified",
|
| 647 |
+
"protocol": "openid-connect",
|
| 648 |
+
"protocolMapper": "oidc-usermodel-property-mapper",
|
| 649 |
+
"consentRequired": false,
|
| 650 |
+
"config": {
|
| 651 |
+
"userinfo.token.claim": "true",
|
| 652 |
+
"user.attribute": "emailVerified",
|
| 653 |
+
"id.token.claim": "true",
|
| 654 |
+
"access.token.claim": "true",
|
| 655 |
+
"claim.name": "email_verified",
|
| 656 |
+
"jsonType.label": "boolean"
|
| 657 |
+
}
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"id": "e1c003e2-96f6-4827-ad81-2c8e0f04e591",
|
| 661 |
+
"name": "email",
|
| 662 |
+
"protocol": "openid-connect",
|
| 663 |
+
"protocolMapper": "oidc-usermodel-property-mapper",
|
| 664 |
+
"consentRequired": false,
|
| 665 |
+
"config": {
|
| 666 |
+
"userinfo.token.claim": "true",
|
| 667 |
+
"user.attribute": "email",
|
| 668 |
+
"id.token.claim": "true",
|
| 669 |
+
"access.token.claim": "true",
|
| 670 |
+
"claim.name": "email",
|
| 671 |
+
"jsonType.label": "String"
|
| 672 |
+
}
|
| 673 |
+
}
|
| 674 |
+
]
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"id": "da9bc51e-9cd1-4bd6-a886-51ddfc59b1fc",
|
| 678 |
+
"name": "offline_access",
|
| 679 |
+
"description": "OpenID Connect built-in scope: offline_access",
|
| 680 |
+
"protocol": "openid-connect",
|
| 681 |
+
"attributes": {
|
| 682 |
+
"consent.screen.text": "${offlineAccessScopeConsentText}",
|
| 683 |
+
"display.on.consent.screen": "true"
|
| 684 |
+
}
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"id": "01cb391a-5bec-40e4-81aa-26e07bfae875",
|
| 688 |
+
"name": "phone",
|
| 689 |
+
"description": "OpenID Connect built-in scope: phone",
|
| 690 |
+
"protocol": "openid-connect",
|
| 691 |
+
"attributes": {
|
| 692 |
+
"include.in.token.scope": "true",
|
| 693 |
+
"display.on.consent.screen": "true",
|
| 694 |
+
"consent.screen.text": "${phoneScopeConsentText}"
|
| 695 |
+
},
|
| 696 |
+
"protocolMappers": [
|
| 697 |
+
{
|
| 698 |
+
"id": "04bb5603-ade0-4cc4-ab58-fb7c345ede62",
|
| 699 |
+
"name": "phone number verified",
|
| 700 |
+
"protocol": "openid-connect",
|
| 701 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 702 |
+
"consentRequired": false,
|
| 703 |
+
"config": {
|
| 704 |
+
"userinfo.token.claim": "true",
|
| 705 |
+
"user.attribute": "phoneNumberVerified",
|
| 706 |
+
"id.token.claim": "true",
|
| 707 |
+
"access.token.claim": "true",
|
| 708 |
+
"claim.name": "phone_number_verified",
|
| 709 |
+
"jsonType.label": "boolean"
|
| 710 |
+
}
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"id": "84322aa4-3194-42cd-b200-be8c3cfe2184",
|
| 714 |
+
"name": "phone number",
|
| 715 |
+
"protocol": "openid-connect",
|
| 716 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 717 |
+
"consentRequired": false,
|
| 718 |
+
"config": {
|
| 719 |
+
"userinfo.token.claim": "true",
|
| 720 |
+
"user.attribute": "phoneNumber",
|
| 721 |
+
"id.token.claim": "true",
|
| 722 |
+
"access.token.claim": "true",
|
| 723 |
+
"claim.name": "phone_number",
|
| 724 |
+
"jsonType.label": "String"
|
| 725 |
+
}
|
| 726 |
+
}
|
| 727 |
+
]
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"id": "575730b1-cafc-4a74-9ba5-52f0196bd6cd",
|
| 731 |
+
"name": "profile",
|
| 732 |
+
"description": "OpenID Connect built-in scope: profile",
|
| 733 |
+
"protocol": "openid-connect",
|
| 734 |
+
"attributes": {
|
| 735 |
+
"include.in.token.scope": "true",
|
| 736 |
+
"display.on.consent.screen": "true",
|
| 737 |
+
"consent.screen.text": "${profileScopeConsentText}"
|
| 738 |
+
},
|
| 739 |
+
"protocolMappers": [
|
| 740 |
+
{
|
| 741 |
+
"id": "77caa164-82ac-4493-83b9-073a7cc95c6a",
|
| 742 |
+
"name": "birthdate",
|
| 743 |
+
"protocol": "openid-connect",
|
| 744 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 745 |
+
"consentRequired": false,
|
| 746 |
+
"config": {
|
| 747 |
+
"userinfo.token.claim": "true",
|
| 748 |
+
"user.attribute": "birthdate",
|
| 749 |
+
"id.token.claim": "true",
|
| 750 |
+
"access.token.claim": "true",
|
| 751 |
+
"claim.name": "birthdate",
|
| 752 |
+
"jsonType.label": "String"
|
| 753 |
+
}
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"id": "c11a25af-5e54-4abd-bd69-1c8edcb2d71d",
|
| 757 |
+
"name": "full name",
|
| 758 |
+
"protocol": "openid-connect",
|
| 759 |
+
"protocolMapper": "oidc-full-name-mapper",
|
| 760 |
+
"consentRequired": false,
|
| 761 |
+
"config": {
|
| 762 |
+
"id.token.claim": "true",
|
| 763 |
+
"access.token.claim": "true",
|
| 764 |
+
"userinfo.token.claim": "true"
|
| 765 |
+
}
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"id": "fb18c42b-3300-4da4-affe-43e92e180896",
|
| 769 |
+
"name": "zoneinfo",
|
| 770 |
+
"protocol": "openid-connect",
|
| 771 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 772 |
+
"consentRequired": false,
|
| 773 |
+
"config": {
|
| 774 |
+
"userinfo.token.claim": "true",
|
| 775 |
+
"user.attribute": "zoneinfo",
|
| 776 |
+
"id.token.claim": "true",
|
| 777 |
+
"access.token.claim": "true",
|
| 778 |
+
"claim.name": "zoneinfo",
|
| 779 |
+
"jsonType.label": "String"
|
| 780 |
+
}
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"id": "1cdbe22f-82eb-403f-9a61-d87e29aec091",
|
| 784 |
+
"name": "family name",
|
| 785 |
+
"protocol": "openid-connect",
|
| 786 |
+
"protocolMapper": "oidc-usermodel-property-mapper",
|
| 787 |
+
"consentRequired": false,
|
| 788 |
+
"config": {
|
| 789 |
+
"userinfo.token.claim": "true",
|
| 790 |
+
"user.attribute": "lastName",
|
| 791 |
+
"id.token.claim": "true",
|
| 792 |
+
"access.token.claim": "true",
|
| 793 |
+
"claim.name": "family_name",
|
| 794 |
+
"jsonType.label": "String"
|
| 795 |
+
}
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"id": "58691a12-d039-48ba-8c6a-3b3a90c73c4a",
|
| 799 |
+
"name": "nickname",
|
| 800 |
+
"protocol": "openid-connect",
|
| 801 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 802 |
+
"consentRequired": false,
|
| 803 |
+
"config": {
|
| 804 |
+
"userinfo.token.claim": "true",
|
| 805 |
+
"user.attribute": "nickname",
|
| 806 |
+
"id.token.claim": "true",
|
| 807 |
+
"access.token.claim": "true",
|
| 808 |
+
"claim.name": "nickname",
|
| 809 |
+
"jsonType.label": "String"
|
| 810 |
+
}
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"id": "d10ec26c-7a80-46b3-8eab-170c09a9bf0c",
|
| 814 |
+
"name": "profile",
|
| 815 |
+
"protocol": "openid-connect",
|
| 816 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 817 |
+
"consentRequired": false,
|
| 818 |
+
"config": {
|
| 819 |
+
"userinfo.token.claim": "true",
|
| 820 |
+
"user.attribute": "profile",
|
| 821 |
+
"id.token.claim": "true",
|
| 822 |
+
"access.token.claim": "true",
|
| 823 |
+
"claim.name": "profile",
|
| 824 |
+
"jsonType.label": "String"
|
| 825 |
+
}
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"id": "e75f8037-d5ae-4f1d-b51d-5dcf8fb1225b",
|
| 829 |
+
"name": "picture",
|
| 830 |
+
"protocol": "openid-connect",
|
| 831 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 832 |
+
"consentRequired": false,
|
| 833 |
+
"config": {
|
| 834 |
+
"userinfo.token.claim": "true",
|
| 835 |
+
"user.attribute": "picture",
|
| 836 |
+
"id.token.claim": "true",
|
| 837 |
+
"access.token.claim": "true",
|
| 838 |
+
"claim.name": "picture",
|
| 839 |
+
"jsonType.label": "String"
|
| 840 |
+
}
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"id": "674a0d30-0a68-4230-a0c2-0fd3ac35097c",
|
| 844 |
+
"name": "updated at",
|
| 845 |
+
"protocol": "openid-connect",
|
| 846 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 847 |
+
"consentRequired": false,
|
| 848 |
+
"config": {
|
| 849 |
+
"userinfo.token.claim": "true",
|
| 850 |
+
"user.attribute": "updatedAt",
|
| 851 |
+
"id.token.claim": "true",
|
| 852 |
+
"access.token.claim": "true",
|
| 853 |
+
"claim.name": "updated_at",
|
| 854 |
+
"jsonType.label": "String"
|
| 855 |
+
}
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"id": "c2c5120b-41d9-4ad4-a95d-c0dc3a724c35",
|
| 859 |
+
"name": "given name",
|
| 860 |
+
"protocol": "openid-connect",
|
| 861 |
+
"protocolMapper": "oidc-usermodel-property-mapper",
|
| 862 |
+
"consentRequired": false,
|
| 863 |
+
"config": {
|
| 864 |
+
"userinfo.token.claim": "true",
|
| 865 |
+
"user.attribute": "firstName",
|
| 866 |
+
"id.token.claim": "true",
|
| 867 |
+
"access.token.claim": "true",
|
| 868 |
+
"claim.name": "given_name",
|
| 869 |
+
"jsonType.label": "String"
|
| 870 |
+
}
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"id": "91b08b12-6690-4999-9d5f-36bd79115af0",
|
| 874 |
+
"name": "gender",
|
| 875 |
+
"protocol": "openid-connect",
|
| 876 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 877 |
+
"consentRequired": false,
|
| 878 |
+
"config": {
|
| 879 |
+
"userinfo.token.claim": "true",
|
| 880 |
+
"user.attribute": "gender",
|
| 881 |
+
"id.token.claim": "true",
|
| 882 |
+
"access.token.claim": "true",
|
| 883 |
+
"claim.name": "gender",
|
| 884 |
+
"jsonType.label": "String"
|
| 885 |
+
}
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"id": "b382d2ea-4964-4470-ac53-8b4c4bb08c8a",
|
| 889 |
+
"name": "middle name",
|
| 890 |
+
"protocol": "openid-connect",
|
| 891 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 892 |
+
"consentRequired": false,
|
| 893 |
+
"config": {
|
| 894 |
+
"userinfo.token.claim": "true",
|
| 895 |
+
"user.attribute": "middleName",
|
| 896 |
+
"id.token.claim": "true",
|
| 897 |
+
"access.token.claim": "true",
|
| 898 |
+
"claim.name": "middle_name",
|
| 899 |
+
"jsonType.label": "String"
|
| 900 |
+
}
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"id": "adf4565c-7bc9-4135-9dff-021572e724b8",
|
| 904 |
+
"name": "website",
|
| 905 |
+
"protocol": "openid-connect",
|
| 906 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 907 |
+
"consentRequired": false,
|
| 908 |
+
"config": {
|
| 909 |
+
"userinfo.token.claim": "true",
|
| 910 |
+
"user.attribute": "website",
|
| 911 |
+
"id.token.claim": "true",
|
| 912 |
+
"access.token.claim": "true",
|
| 913 |
+
"claim.name": "website",
|
| 914 |
+
"jsonType.label": "String"
|
| 915 |
+
}
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"id": "ac36272c-7135-4a4c-8161-f291c3a4675b",
|
| 919 |
+
"name": "locale",
|
| 920 |
+
"protocol": "openid-connect",
|
| 921 |
+
"protocolMapper": "oidc-usermodel-attribute-mapper",
|
| 922 |
+
"consentRequired": false,
|
| 923 |
+
"config": {
|
| 924 |
+
"userinfo.token.claim": "true",
|
| 925 |
+
"user.attribute": "locale",
|
| 926 |
+
"id.token.claim": "true",
|
| 927 |
+
"access.token.claim": "true",
|
| 928 |
+
"claim.name": "locale",
|
| 929 |
+
"jsonType.label": "String"
|
| 930 |
+
}
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"id": "60f2eb06-7afe-44fe-b0bd-0e77280c5b8b",
|
| 934 |
+
"name": "username",
|
| 935 |
+
"protocol": "openid-connect",
|
| 936 |
+
"protocolMapper": "oidc-usermodel-property-mapper",
|
| 937 |
+
"consentRequired": false,
|
| 938 |
+
"config": {
|
| 939 |
+
"userinfo.token.claim": "true",
|
| 940 |
+
"user.attribute": "username",
|
| 941 |
+
"id.token.claim": "true",
|
| 942 |
+
"access.token.claim": "true",
|
| 943 |
+
"claim.name": "preferred_username",
|
| 944 |
+
"jsonType.label": "String"
|
| 945 |
+
}
|
| 946 |
+
}
|
| 947 |
+
]
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"id": "7acf0b6c-05d6-4d3b-ac91-941d0379ebfe",
|
| 951 |
+
"name": "role_list",
|
| 952 |
+
"description": "SAML role list",
|
| 953 |
+
"protocol": "saml",
|
| 954 |
+
"attributes": {
|
| 955 |
+
"consent.screen.text": "${samlRoleListScopeConsentText}",
|
| 956 |
+
"display.on.consent.screen": "true"
|
| 957 |
+
},
|
| 958 |
+
"protocolMappers": [
|
| 959 |
+
{
|
| 960 |
+
"id": "3f6b1de0-70d0-4763-ac97-6dfd8d5238d8",
|
| 961 |
+
"name": "role list",
|
| 962 |
+
"protocol": "saml",
|
| 963 |
+
"protocolMapper": "saml-role-list-mapper",
|
| 964 |
+
"consentRequired": false,
|
| 965 |
+
"config": {
|
| 966 |
+
"single": "false",
|
| 967 |
+
"attribute.nameformat": "Basic",
|
| 968 |
+
"attribute.name": "Role"
|
| 969 |
+
}
|
| 970 |
+
}
|
| 971 |
+
]
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"id": "06ab5f56-a04c-4e34-830f-fab845d8c413",
|
| 975 |
+
"name": "roles",
|
| 976 |
+
"description": "OpenID Connect scope for add user roles to the access token",
|
| 977 |
+
"protocol": "openid-connect",
|
| 978 |
+
"attributes": {
|
| 979 |
+
"include.in.token.scope": "false",
|
| 980 |
+
"display.on.consent.screen": "true",
|
| 981 |
+
"consent.screen.text": "${rolesScopeConsentText}"
|
| 982 |
+
},
|
| 983 |
+
"protocolMappers": [
|
| 984 |
+
{
|
| 985 |
+
"id": "7d13e22c-34b9-4db9-ac0a-ac81b538b337",
|
| 986 |
+
"name": "audience resolve",
|
| 987 |
+
"protocol": "openid-connect",
|
| 988 |
+
"protocolMapper": "oidc-audience-resolve-mapper",
|
| 989 |
+
"consentRequired": false,
|
| 990 |
+
"config": {}
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"id": "19a383ac-07ea-4e50-9eeb-24cd6bf11501",
|
| 994 |
+
"name": "client roles",
|
| 995 |
+
"protocol": "openid-connect",
|
| 996 |
+
"protocolMapper": "oidc-usermodel-client-role-mapper",
|
| 997 |
+
"consentRequired": false,
|
| 998 |
+
"config": {
|
| 999 |
+
"user.attribute": "foo",
|
| 1000 |
+
"access.token.claim": "true",
|
| 1001 |
+
"claim.name": "resource_access.${client_id}.roles",
|
| 1002 |
+
"jsonType.label": "String",
|
| 1003 |
+
"multivalued": "true"
|
| 1004 |
+
}
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"id": "6d04f765-5a69-4f4f-96ac-721a05e34e9f",
|
| 1008 |
+
"name": "realm roles",
|
| 1009 |
+
"protocol": "openid-connect",
|
| 1010 |
+
"protocolMapper": "oidc-usermodel-realm-role-mapper",
|
| 1011 |
+
"consentRequired": false,
|
| 1012 |
+
"config": {
|
| 1013 |
+
"user.attribute": "foo",
|
| 1014 |
+
"access.token.claim": "true",
|
| 1015 |
+
"claim.name": "realm_access.roles",
|
| 1016 |
+
"jsonType.label": "String",
|
| 1017 |
+
"multivalued": "true"
|
| 1018 |
+
}
|
| 1019 |
+
}
|
| 1020 |
+
]
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"id": "b53f953e-849d-47c6-a7a0-db57e583c1a8",
|
| 1024 |
+
"name": "web-origins",
|
| 1025 |
+
"description": "OpenID Connect scope for add allowed web origins to the access token",
|
| 1026 |
+
"protocol": "openid-connect",
|
| 1027 |
+
"attributes": {
|
| 1028 |
+
"include.in.token.scope": "false",
|
| 1029 |
+
"display.on.consent.screen": "false",
|
| 1030 |
+
"consent.screen.text": ""
|
| 1031 |
+
},
|
| 1032 |
+
"protocolMappers": [
|
| 1033 |
+
{
|
| 1034 |
+
"id": "899e32a3-1161-4b46-8d86-5243bdcded35",
|
| 1035 |
+
"name": "allowed web origins",
|
| 1036 |
+
"protocol": "openid-connect",
|
| 1037 |
+
"protocolMapper": "oidc-allowed-origins-mapper",
|
| 1038 |
+
"consentRequired": false,
|
| 1039 |
+
"config": {}
|
| 1040 |
+
}
|
| 1041 |
+
]
|
| 1042 |
+
}
|
| 1043 |
+
],
|
| 1044 |
+
"defaultDefaultClientScopes": [
|
| 1045 |
+
"roles",
|
| 1046 |
+
"profile",
|
| 1047 |
+
"email",
|
| 1048 |
+
"role_list",
|
| 1049 |
+
"web-origins"
|
| 1050 |
+
],
|
| 1051 |
+
"defaultOptionalClientScopes": [
|
| 1052 |
+
"phone",
|
| 1053 |
+
"address",
|
| 1054 |
+
"offline_access"
|
| 1055 |
+
],
|
| 1056 |
+
"browserSecurityHeaders": {
|
| 1057 |
+
"contentSecurityPolicyReportOnly": "",
|
| 1058 |
+
"xContentTypeOptions": "nosniff",
|
| 1059 |
+
"xRobotsTag": "none",
|
| 1060 |
+
"xFrameOptions": "SAMEORIGIN",
|
| 1061 |
+
"xXSSProtection": "1; mode=block",
|
| 1062 |
+
"contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';",
|
| 1063 |
+
"strictTransportSecurity": "max-age=31536000; includeSubDomains"
|
| 1064 |
+
},
|
| 1065 |
+
"smtpServer": {},
|
| 1066 |
+
"eventsEnabled": false,
|
| 1067 |
+
"eventsListeners": [
|
| 1068 |
+
"jboss-logging"
|
| 1069 |
+
],
|
| 1070 |
+
"enabledEventTypes": [],
|
| 1071 |
+
"adminEventsEnabled": false,
|
| 1072 |
+
"adminEventsDetailsEnabled": false,
|
| 1073 |
+
"components": {
|
| 1074 |
+
"org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy": [
|
| 1075 |
+
{
|
| 1076 |
+
"id": "38f25d45-e013-4a7b-bdb6-3cfbc8ff9c29",
|
| 1077 |
+
"name": "Trusted Hosts",
|
| 1078 |
+
"providerId": "trusted-hosts",
|
| 1079 |
+
"subType": "anonymous",
|
| 1080 |
+
"subComponents": {},
|
| 1081 |
+
"config": {
|
| 1082 |
+
"host-sending-registration-request-must-match": [
|
| 1083 |
+
"true"
|
| 1084 |
+
],
|
| 1085 |
+
"client-uris-must-match": [
|
| 1086 |
+
"true"
|
| 1087 |
+
]
|
| 1088 |
+
}
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"id": "08db0916-9d80-48c6-8c7d-7de40d97b1d4",
|
| 1092 |
+
"name": "Allowed Protocol Mapper Types",
|
| 1093 |
+
"providerId": "allowed-protocol-mappers",
|
| 1094 |
+
"subType": "anonymous",
|
| 1095 |
+
"subComponents": {},
|
| 1096 |
+
"config": {
|
| 1097 |
+
"allowed-protocol-mapper-types": [
|
| 1098 |
+
"oidc-usermodel-attribute-mapper",
|
| 1099 |
+
"saml-user-property-mapper",
|
| 1100 |
+
"oidc-full-name-mapper",
|
| 1101 |
+
"oidc-usermodel-property-mapper",
|
| 1102 |
+
"oidc-address-mapper",
|
| 1103 |
+
"oidc-sha256-pairwise-sub-mapper",
|
| 1104 |
+
"saml-role-list-mapper",
|
| 1105 |
+
"saml-user-attribute-mapper"
|
| 1106 |
+
]
|
| 1107 |
+
}
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"id": "3bd5feba-44cc-43b3-9379-32e300e897a8",
|
| 1111 |
+
"name": "Consent Required",
|
| 1112 |
+
"providerId": "consent-required",
|
| 1113 |
+
"subType": "anonymous",
|
| 1114 |
+
"subComponents": {},
|
| 1115 |
+
"config": {}
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"id": "d0f19a5a-ec57-4d41-9573-b7f89d89733a",
|
| 1119 |
+
"name": "Max Clients Limit",
|
| 1120 |
+
"providerId": "max-clients",
|
| 1121 |
+
"subType": "anonymous",
|
| 1122 |
+
"subComponents": {},
|
| 1123 |
+
"config": {
|
| 1124 |
+
"max-clients": [
|
| 1125 |
+
"200"
|
| 1126 |
+
]
|
| 1127 |
+
}
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"id": "ff0b90dc-a2b6-4fe6-bec1-48c6d5df7755",
|
| 1131 |
+
"name": "Allowed Client Scopes",
|
| 1132 |
+
"providerId": "allowed-client-templates",
|
| 1133 |
+
"subType": "authenticated",
|
| 1134 |
+
"subComponents": {},
|
| 1135 |
+
"config": {
|
| 1136 |
+
"allow-default-scopes": [
|
| 1137 |
+
"true"
|
| 1138 |
+
]
|
| 1139 |
+
}
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"id": "22e8ab2e-0981-41bb-884d-be1e707991ce",
|
| 1143 |
+
"name": "Full Scope Disabled",
|
| 1144 |
+
"providerId": "scope",
|
| 1145 |
+
"subType": "anonymous",
|
| 1146 |
+
"subComponents": {},
|
| 1147 |
+
"config": {}
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"id": "7d869316-f614-4fb7-8628-888b8a14f894",
|
| 1151 |
+
"name": "Allowed Protocol Mapper Types",
|
| 1152 |
+
"providerId": "allowed-protocol-mappers",
|
| 1153 |
+
"subType": "authenticated",
|
| 1154 |
+
"subComponents": {},
|
| 1155 |
+
"config": {
|
| 1156 |
+
"allowed-protocol-mapper-types": [
|
| 1157 |
+
"saml-user-property-mapper",
|
| 1158 |
+
"saml-user-attribute-mapper",
|
| 1159 |
+
"saml-role-list-mapper",
|
| 1160 |
+
"oidc-address-mapper",
|
| 1161 |
+
"oidc-usermodel-property-mapper",
|
| 1162 |
+
"oidc-full-name-mapper",
|
| 1163 |
+
"oidc-sha256-pairwise-sub-mapper",
|
| 1164 |
+
"oidc-usermodel-attribute-mapper"
|
| 1165 |
+
]
|
| 1166 |
+
}
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"id": "26731f7a-21df-463a-893a-95b6f62eb5fd",
|
| 1170 |
+
"name": "Allowed Client Scopes",
|
| 1171 |
+
"providerId": "allowed-client-templates",
|
| 1172 |
+
"subType": "anonymous",
|
| 1173 |
+
"subComponents": {},
|
| 1174 |
+
"config": {
|
| 1175 |
+
"allow-default-scopes": [
|
| 1176 |
+
"true"
|
| 1177 |
+
]
|
| 1178 |
+
}
|
| 1179 |
+
}
|
| 1180 |
+
],
|
| 1181 |
+
"org.keycloak.keys.KeyProvider": [
|
| 1182 |
+
{
|
| 1183 |
+
"id": "ed448fe5-8f0d-4700-8b4d-72216065720a",
|
| 1184 |
+
"name": "rsa-generated",
|
| 1185 |
+
"providerId": "rsa-generated",
|
| 1186 |
+
"subComponents": {},
|
| 1187 |
+
"config": {
|
| 1188 |
+
"priority": [
|
| 1189 |
+
"100"
|
| 1190 |
+
]
|
| 1191 |
+
}
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"id": "a4691254-0c91-4e7b-ab26-fb9173a6baec",
|
| 1195 |
+
"name": "aes-generated",
|
| 1196 |
+
"providerId": "aes-generated",
|
| 1197 |
+
"subComponents": {},
|
| 1198 |
+
"config": {
|
| 1199 |
+
"priority": [
|
| 1200 |
+
"100"
|
| 1201 |
+
]
|
| 1202 |
+
}
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"id": "bdc21dc7-0ee0-4c0c-a11b-7fb01f48c21f",
|
| 1206 |
+
"name": "hmac-generated",
|
| 1207 |
+
"providerId": "hmac-generated",
|
| 1208 |
+
"subComponents": {},
|
| 1209 |
+
"config": {
|
| 1210 |
+
"priority": [
|
| 1211 |
+
"100"
|
| 1212 |
+
],
|
| 1213 |
+
"algorithm": [
|
| 1214 |
+
"HS256"
|
| 1215 |
+
]
|
| 1216 |
+
}
|
| 1217 |
+
}
|
| 1218 |
+
]
|
| 1219 |
+
},
|
| 1220 |
+
"internationalizationEnabled": false,
|
| 1221 |
+
"supportedLocales": [],
|
| 1222 |
+
"authenticationFlows": [
|
| 1223 |
+
{
|
| 1224 |
+
"id": "6dd0bde8-4413-43a8-8bf0-0e185b930d1d",
|
| 1225 |
+
"alias": "Handle Existing Account",
|
| 1226 |
+
"description": "Handle what to do if there is existing account with same email/username like authenticated identity provider",
|
| 1227 |
+
"providerId": "basic-flow",
|
| 1228 |
+
"topLevel": false,
|
| 1229 |
+
"builtIn": true,
|
| 1230 |
+
"authenticationExecutions": [
|
| 1231 |
+
{
|
| 1232 |
+
"authenticator": "idp-confirm-link",
|
| 1233 |
+
"requirement": "REQUIRED",
|
| 1234 |
+
"priority": 10,
|
| 1235 |
+
"userSetupAllowed": false,
|
| 1236 |
+
"autheticatorFlow": false
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"authenticator": "idp-email-verification",
|
| 1240 |
+
"requirement": "ALTERNATIVE",
|
| 1241 |
+
"priority": 20,
|
| 1242 |
+
"userSetupAllowed": false,
|
| 1243 |
+
"autheticatorFlow": false
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"requirement": "ALTERNATIVE",
|
| 1247 |
+
"priority": 30,
|
| 1248 |
+
"flowAlias": "Verify Existing Account by Re-authentication",
|
| 1249 |
+
"userSetupAllowed": false,
|
| 1250 |
+
"autheticatorFlow": true
|
| 1251 |
+
}
|
| 1252 |
+
]
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"id": "653632e5-6e46-4935-ba13-21a948f1e075",
|
| 1256 |
+
"alias": "Verify Existing Account by Re-authentication",
|
| 1257 |
+
"description": "Reauthentication of existing account",
|
| 1258 |
+
"providerId": "basic-flow",
|
| 1259 |
+
"topLevel": false,
|
| 1260 |
+
"builtIn": true,
|
| 1261 |
+
"authenticationExecutions": [
|
| 1262 |
+
{
|
| 1263 |
+
"authenticator": "idp-username-password-form",
|
| 1264 |
+
"requirement": "REQUIRED",
|
| 1265 |
+
"priority": 10,
|
| 1266 |
+
"userSetupAllowed": false,
|
| 1267 |
+
"autheticatorFlow": false
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"authenticator": "auth-otp-form",
|
| 1271 |
+
"requirement": "OPTIONAL",
|
| 1272 |
+
"priority": 20,
|
| 1273 |
+
"userSetupAllowed": false,
|
| 1274 |
+
"autheticatorFlow": false
|
| 1275 |
+
}
|
| 1276 |
+
]
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"id": "cb4dbb35-f35e-4a6c-8dad-2260df69f392",
|
| 1280 |
+
"alias": "browser",
|
| 1281 |
+
"description": "browser based authentication",
|
| 1282 |
+
"providerId": "basic-flow",
|
| 1283 |
+
"topLevel": true,
|
| 1284 |
+
"builtIn": true,
|
| 1285 |
+
"authenticationExecutions": [
|
| 1286 |
+
{
|
| 1287 |
+
"authenticator": "auth-cookie",
|
| 1288 |
+
"requirement": "ALTERNATIVE",
|
| 1289 |
+
"priority": 10,
|
| 1290 |
+
"userSetupAllowed": false,
|
| 1291 |
+
"autheticatorFlow": false
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"authenticator": "auth-spnego",
|
| 1295 |
+
"requirement": "DISABLED",
|
| 1296 |
+
"priority": 20,
|
| 1297 |
+
"userSetupAllowed": false,
|
| 1298 |
+
"autheticatorFlow": false
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"authenticator": "identity-provider-redirector",
|
| 1302 |
+
"requirement": "ALTERNATIVE",
|
| 1303 |
+
"priority": 25,
|
| 1304 |
+
"userSetupAllowed": false,
|
| 1305 |
+
"autheticatorFlow": false
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"requirement": "ALTERNATIVE",
|
| 1309 |
+
"priority": 30,
|
| 1310 |
+
"flowAlias": "forms",
|
| 1311 |
+
"userSetupAllowed": false,
|
| 1312 |
+
"autheticatorFlow": true
|
| 1313 |
+
}
|
| 1314 |
+
]
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"id": "39aedc22-42a3-4068-9033-e56b82f1b34e",
|
| 1318 |
+
"alias": "clients",
|
| 1319 |
+
"description": "Base authentication for clients",
|
| 1320 |
+
"providerId": "client-flow",
|
| 1321 |
+
"topLevel": true,
|
| 1322 |
+
"builtIn": true,
|
| 1323 |
+
"authenticationExecutions": [
|
| 1324 |
+
{
|
| 1325 |
+
"authenticator": "client-secret",
|
| 1326 |
+
"requirement": "ALTERNATIVE",
|
| 1327 |
+
"priority": 10,
|
| 1328 |
+
"userSetupAllowed": false,
|
| 1329 |
+
"autheticatorFlow": false
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"authenticator": "client-jwt",
|
| 1333 |
+
"requirement": "ALTERNATIVE",
|
| 1334 |
+
"priority": 20,
|
| 1335 |
+
"userSetupAllowed": false,
|
| 1336 |
+
"autheticatorFlow": false
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"authenticator": "client-secret-jwt",
|
| 1340 |
+
"requirement": "ALTERNATIVE",
|
| 1341 |
+
"priority": 30,
|
| 1342 |
+
"userSetupAllowed": false,
|
| 1343 |
+
"autheticatorFlow": false
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"authenticator": "client-x509",
|
| 1347 |
+
"requirement": "ALTERNATIVE",
|
| 1348 |
+
"priority": 40,
|
| 1349 |
+
"userSetupAllowed": false,
|
| 1350 |
+
"autheticatorFlow": false
|
| 1351 |
+
}
|
| 1352 |
+
]
|
| 1353 |
+
},
|
| 1354 |
+
{
|
| 1355 |
+
"id": "5376fd21-90cf-44ab-b3ec-a2429c645e14",
|
| 1356 |
+
"alias": "direct grant",
|
| 1357 |
+
"description": "OpenID Connect Resource Owner Grant",
|
| 1358 |
+
"providerId": "basic-flow",
|
| 1359 |
+
"topLevel": true,
|
| 1360 |
+
"builtIn": true,
|
| 1361 |
+
"authenticationExecutions": [
|
| 1362 |
+
{
|
| 1363 |
+
"authenticator": "direct-grant-validate-username",
|
| 1364 |
+
"requirement": "REQUIRED",
|
| 1365 |
+
"priority": 10,
|
| 1366 |
+
"userSetupAllowed": false,
|
| 1367 |
+
"autheticatorFlow": false
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"authenticator": "direct-grant-validate-password",
|
| 1371 |
+
"requirement": "REQUIRED",
|
| 1372 |
+
"priority": 20,
|
| 1373 |
+
"userSetupAllowed": false,
|
| 1374 |
+
"autheticatorFlow": false
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"authenticator": "direct-grant-validate-otp",
|
| 1378 |
+
"requirement": "OPTIONAL",
|
| 1379 |
+
"priority": 30,
|
| 1380 |
+
"userSetupAllowed": false,
|
| 1381 |
+
"autheticatorFlow": false
|
| 1382 |
+
}
|
| 1383 |
+
]
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"id": "384c9be0-026c-40f9-806f-4df8afeadb2c",
|
| 1387 |
+
"alias": "docker auth",
|
| 1388 |
+
"description": "Used by Docker clients to authenticate against the IDP",
|
| 1389 |
+
"providerId": "basic-flow",
|
| 1390 |
+
"topLevel": true,
|
| 1391 |
+
"builtIn": true,
|
| 1392 |
+
"authenticationExecutions": [
|
| 1393 |
+
{
|
| 1394 |
+
"authenticator": "docker-http-basic-authenticator",
|
| 1395 |
+
"requirement": "REQUIRED",
|
| 1396 |
+
"priority": 10,
|
| 1397 |
+
"userSetupAllowed": false,
|
| 1398 |
+
"autheticatorFlow": false
|
| 1399 |
+
}
|
| 1400 |
+
]
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"id": "46a544e9-18b8-4170-b94a-b9772a5cb00c",
|
| 1404 |
+
"alias": "first broker login",
|
| 1405 |
+
"description": "Actions taken after first broker login with identity provider account, which is not yet linked to any Keycloak account",
|
| 1406 |
+
"providerId": "basic-flow",
|
| 1407 |
+
"topLevel": true,
|
| 1408 |
+
"builtIn": true,
|
| 1409 |
+
"authenticationExecutions": [
|
| 1410 |
+
{
|
| 1411 |
+
"authenticatorConfig": "review profile config",
|
| 1412 |
+
"authenticator": "idp-review-profile",
|
| 1413 |
+
"requirement": "REQUIRED",
|
| 1414 |
+
"priority": 10,
|
| 1415 |
+
"userSetupAllowed": false,
|
| 1416 |
+
"autheticatorFlow": false
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"authenticatorConfig": "create unique user config",
|
| 1420 |
+
"authenticator": "idp-create-user-if-unique",
|
| 1421 |
+
"requirement": "ALTERNATIVE",
|
| 1422 |
+
"priority": 20,
|
| 1423 |
+
"userSetupAllowed": false,
|
| 1424 |
+
"autheticatorFlow": false
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"requirement": "ALTERNATIVE",
|
| 1428 |
+
"priority": 30,
|
| 1429 |
+
"flowAlias": "Handle Existing Account",
|
| 1430 |
+
"userSetupAllowed": false,
|
| 1431 |
+
"autheticatorFlow": true
|
| 1432 |
+
}
|
| 1433 |
+
]
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"id": "27ce773d-4de1-429a-a4cd-448578a74621",
|
| 1437 |
+
"alias": "forms",
|
| 1438 |
+
"description": "Username, password, otp and other auth forms.",
|
| 1439 |
+
"providerId": "basic-flow",
|
| 1440 |
+
"topLevel": false,
|
| 1441 |
+
"builtIn": true,
|
| 1442 |
+
"authenticationExecutions": [
|
| 1443 |
+
{
|
| 1444 |
+
"authenticator": "auth-username-password-form",
|
| 1445 |
+
"requirement": "REQUIRED",
|
| 1446 |
+
"priority": 10,
|
| 1447 |
+
"userSetupAllowed": false,
|
| 1448 |
+
"autheticatorFlow": false
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"authenticator": "auth-otp-form",
|
| 1452 |
+
"requirement": "OPTIONAL",
|
| 1453 |
+
"priority": 20,
|
| 1454 |
+
"userSetupAllowed": false,
|
| 1455 |
+
"autheticatorFlow": false
|
| 1456 |
+
}
|
| 1457 |
+
]
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"id": "0290f616-95b1-47df-8a4f-96297e19a854",
|
| 1461 |
+
"alias": "http challenge",
|
| 1462 |
+
"description": "An authentication flow based on challenge-response HTTP Authentication Schemes",
|
| 1463 |
+
"providerId": "basic-flow",
|
| 1464 |
+
"topLevel": true,
|
| 1465 |
+
"builtIn": true,
|
| 1466 |
+
"authenticationExecutions": [
|
| 1467 |
+
{
|
| 1468 |
+
"authenticator": "no-cookie-redirect",
|
| 1469 |
+
"requirement": "REQUIRED",
|
| 1470 |
+
"priority": 10,
|
| 1471 |
+
"userSetupAllowed": false,
|
| 1472 |
+
"autheticatorFlow": false
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"authenticator": "basic-auth",
|
| 1476 |
+
"requirement": "REQUIRED",
|
| 1477 |
+
"priority": 20,
|
| 1478 |
+
"userSetupAllowed": false,
|
| 1479 |
+
"autheticatorFlow": false
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"authenticator": "basic-auth-otp",
|
| 1483 |
+
"requirement": "DISABLED",
|
| 1484 |
+
"priority": 30,
|
| 1485 |
+
"userSetupAllowed": false,
|
| 1486 |
+
"autheticatorFlow": false
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"authenticator": "auth-spnego",
|
| 1490 |
+
"requirement": "DISABLED",
|
| 1491 |
+
"priority": 40,
|
| 1492 |
+
"userSetupAllowed": false,
|
| 1493 |
+
"autheticatorFlow": false
|
| 1494 |
+
}
|
| 1495 |
+
]
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"id": "848db7e8-5f91-4db4-bd5e-e417f65a5805",
|
| 1499 |
+
"alias": "registration",
|
| 1500 |
+
"description": "registration flow",
|
| 1501 |
+
"providerId": "basic-flow",
|
| 1502 |
+
"topLevel": true,
|
| 1503 |
+
"builtIn": true,
|
| 1504 |
+
"authenticationExecutions": [
|
| 1505 |
+
{
|
| 1506 |
+
"authenticator": "registration-page-form",
|
| 1507 |
+
"requirement": "REQUIRED",
|
| 1508 |
+
"priority": 10,
|
| 1509 |
+
"flowAlias": "registration form",
|
| 1510 |
+
"userSetupAllowed": false,
|
| 1511 |
+
"autheticatorFlow": true
|
| 1512 |
+
}
|
| 1513 |
+
]
|
| 1514 |
+
},
|
| 1515 |
+
{
|
| 1516 |
+
"id": "15b9c530-dbf3-4edc-b744-7bc981cb24ca",
|
| 1517 |
+
"alias": "registration form",
|
| 1518 |
+
"description": "registration form",
|
| 1519 |
+
"providerId": "form-flow",
|
| 1520 |
+
"topLevel": false,
|
| 1521 |
+
"builtIn": true,
|
| 1522 |
+
"authenticationExecutions": [
|
| 1523 |
+
{
|
| 1524 |
+
"authenticator": "registration-user-creation",
|
| 1525 |
+
"requirement": "REQUIRED",
|
| 1526 |
+
"priority": 20,
|
| 1527 |
+
"userSetupAllowed": false,
|
| 1528 |
+
"autheticatorFlow": false
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"authenticator": "registration-profile-action",
|
| 1532 |
+
"requirement": "REQUIRED",
|
| 1533 |
+
"priority": 40,
|
| 1534 |
+
"userSetupAllowed": false,
|
| 1535 |
+
"autheticatorFlow": false
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"authenticator": "registration-password-action",
|
| 1539 |
+
"requirement": "REQUIRED",
|
| 1540 |
+
"priority": 50,
|
| 1541 |
+
"userSetupAllowed": false,
|
| 1542 |
+
"autheticatorFlow": false
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"authenticator": "registration-recaptcha-action",
|
| 1546 |
+
"requirement": "DISABLED",
|
| 1547 |
+
"priority": 60,
|
| 1548 |
+
"userSetupAllowed": false,
|
| 1549 |
+
"autheticatorFlow": false
|
| 1550 |
+
}
|
| 1551 |
+
]
|
| 1552 |
+
},
|
| 1553 |
+
{
|
| 1554 |
+
"id": "44ed12ab-3e4a-4bc7-8804-7c7de8213947",
|
| 1555 |
+
"alias": "reset credentials",
|
| 1556 |
+
"description": "Reset credentials for a user if they forgot their password or something",
|
| 1557 |
+
"providerId": "basic-flow",
|
| 1558 |
+
"topLevel": true,
|
| 1559 |
+
"builtIn": true,
|
| 1560 |
+
"authenticationExecutions": [
|
| 1561 |
+
{
|
| 1562 |
+
"authenticator": "reset-credentials-choose-user",
|
| 1563 |
+
"requirement": "REQUIRED",
|
| 1564 |
+
"priority": 10,
|
| 1565 |
+
"userSetupAllowed": false,
|
| 1566 |
+
"autheticatorFlow": false
|
| 1567 |
+
},
|
| 1568 |
+
{
|
| 1569 |
+
"authenticator": "reset-credential-email",
|
| 1570 |
+
"requirement": "REQUIRED",
|
| 1571 |
+
"priority": 20,
|
| 1572 |
+
"userSetupAllowed": false,
|
| 1573 |
+
"autheticatorFlow": false
|
| 1574 |
+
},
|
| 1575 |
+
{
|
| 1576 |
+
"authenticator": "reset-password",
|
| 1577 |
+
"requirement": "REQUIRED",
|
| 1578 |
+
"priority": 30,
|
| 1579 |
+
"userSetupAllowed": false,
|
| 1580 |
+
"autheticatorFlow": false
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"authenticator": "reset-otp",
|
| 1584 |
+
"requirement": "OPTIONAL",
|
| 1585 |
+
"priority": 40,
|
| 1586 |
+
"userSetupAllowed": false,
|
| 1587 |
+
"autheticatorFlow": false
|
| 1588 |
+
}
|
| 1589 |
+
]
|
| 1590 |
+
},
|
| 1591 |
+
{
|
| 1592 |
+
"id": "0c992d29-412c-45a4-b9a8-053e602a993e",
|
| 1593 |
+
"alias": "saml ecp",
|
| 1594 |
+
"description": "SAML ECP Profile Authentication Flow",
|
| 1595 |
+
"providerId": "basic-flow",
|
| 1596 |
+
"topLevel": true,
|
| 1597 |
+
"builtIn": true,
|
| 1598 |
+
"authenticationExecutions": [
|
| 1599 |
+
{
|
| 1600 |
+
"authenticator": "http-basic-authenticator",
|
| 1601 |
+
"requirement": "REQUIRED",
|
| 1602 |
+
"priority": 10,
|
| 1603 |
+
"userSetupAllowed": false,
|
| 1604 |
+
"autheticatorFlow": false
|
| 1605 |
+
}
|
| 1606 |
+
]
|
| 1607 |
+
}
|
| 1608 |
+
],
|
| 1609 |
+
"authenticatorConfig": [
|
| 1610 |
+
{
|
| 1611 |
+
"id": "ee0a0640-d6b9-4507-9289-7087af0baee4",
|
| 1612 |
+
"alias": "create unique user config",
|
| 1613 |
+
"config": {
|
| 1614 |
+
"require.password.update.after.registration": "false"
|
| 1615 |
+
}
|
| 1616 |
+
},
|
| 1617 |
+
{
|
| 1618 |
+
"id": "ad84f286-889e-4b0c-8475-9fc318b0fd93",
|
| 1619 |
+
"alias": "review profile config",
|
| 1620 |
+
"config": {
|
| 1621 |
+
"update.profile.on.first.login": "missing"
|
| 1622 |
+
}
|
| 1623 |
+
}
|
| 1624 |
+
],
|
| 1625 |
+
"requiredActions": [
|
| 1626 |
+
{
|
| 1627 |
+
"alias": "CONFIGURE_TOTP",
|
| 1628 |
+
"name": "Configure OTP",
|
| 1629 |
+
"providerId": "CONFIGURE_TOTP",
|
| 1630 |
+
"enabled": true,
|
| 1631 |
+
"defaultAction": false,
|
| 1632 |
+
"priority": 10,
|
| 1633 |
+
"config": {}
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"alias": "terms_and_conditions",
|
| 1637 |
+
"name": "Terms and Conditions",
|
| 1638 |
+
"providerId": "terms_and_conditions",
|
| 1639 |
+
"enabled": false,
|
| 1640 |
+
"defaultAction": false,
|
| 1641 |
+
"priority": 20,
|
| 1642 |
+
"config": {}
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"alias": "UPDATE_PASSWORD",
|
| 1646 |
+
"name": "Update Password",
|
| 1647 |
+
"providerId": "UPDATE_PASSWORD",
|
| 1648 |
+
"enabled": true,
|
| 1649 |
+
"defaultAction": false,
|
| 1650 |
+
"priority": 30,
|
| 1651 |
+
"config": {}
|
| 1652 |
+
},
|
| 1653 |
+
{
|
| 1654 |
+
"alias": "UPDATE_PROFILE",
|
| 1655 |
+
"name": "Update Profile",
|
| 1656 |
+
"providerId": "UPDATE_PROFILE",
|
| 1657 |
+
"enabled": true,
|
| 1658 |
+
"defaultAction": false,
|
| 1659 |
+
"priority": 40,
|
| 1660 |
+
"config": {}
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"alias": "VERIFY_EMAIL",
|
| 1664 |
+
"name": "Verify Email",
|
| 1665 |
+
"providerId": "VERIFY_EMAIL",
|
| 1666 |
+
"enabled": true,
|
| 1667 |
+
"defaultAction": false,
|
| 1668 |
+
"priority": 50,
|
| 1669 |
+
"config": {}
|
| 1670 |
+
}
|
| 1671 |
+
],
|
| 1672 |
+
"browserFlow": "browser",
|
| 1673 |
+
"registrationFlow": "registration",
|
| 1674 |
+
"directGrantFlow": "direct grant",
|
| 1675 |
+
"resetCredentialsFlow": "reset credentials",
|
| 1676 |
+
"clientAuthenticationFlow": "clients",
|
| 1677 |
+
"dockerAuthenticationFlow": "docker auth",
|
| 1678 |
+
"attributes": {
|
| 1679 |
+
"_browser_header.xXSSProtection": "1; mode=block",
|
| 1680 |
+
"_browser_header.xFrameOptions": "SAMEORIGIN",
|
| 1681 |
+
"_browser_header.strictTransportSecurity": "max-age=31536000; includeSubDomains",
|
| 1682 |
+
"permanentLockout": "false",
|
| 1683 |
+
"quickLoginCheckMilliSeconds": "1000",
|
| 1684 |
+
"displayName": "Keycloak",
|
| 1685 |
+
"_browser_header.xRobotsTag": "none",
|
| 1686 |
+
"maxFailureWaitSeconds": "900",
|
| 1687 |
+
"minimumQuickLoginWaitSeconds": "60",
|
| 1688 |
+
"displayNameHtml": "<div class=\"kc-logo-text\"><span>Keycloak</span></div>",
|
| 1689 |
+
"failureFactor": "30",
|
| 1690 |
+
"actionTokenGeneratedByUserLifespan": "300",
|
| 1691 |
+
"maxDeltaTimeSeconds": "43200",
|
| 1692 |
+
"_browser_header.xContentTypeOptions": "nosniff",
|
| 1693 |
+
"offlineSessionMaxLifespan": "5184000",
|
| 1694 |
+
"actionTokenGeneratedByAdminLifespan": "43200",
|
| 1695 |
+
"_browser_header.contentSecurityPolicyReportOnly": "",
|
| 1696 |
+
"bruteForceProtected": "false",
|
| 1697 |
+
"_browser_header.contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';",
|
| 1698 |
+
"waitIncrementSeconds": "60",
|
| 1699 |
+
"offlineSessionMaxLifespanEnabled": "false"
|
| 1700 |
+
},
|
| 1701 |
+
"keycloakVersion": "5.0.0",
|
| 1702 |
+
"userManagedAccessAllowed": false
|
| 1703 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/dev/ollama_startup.sh
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Start Ollama in background
|
| 4 |
+
ollama serve &
|
| 5 |
+
OLLAMA_PID=$!
|
| 6 |
+
|
| 7 |
+
# Wait for Ollama to start up
|
| 8 |
+
echo "Waiting for Ollama service to be ready..."
|
| 9 |
+
until ollama list > /dev/null 2>&1; do
|
| 10 |
+
echo "Waiting for Ollama service to be ready..."
|
| 11 |
+
sleep 2
|
| 12 |
+
done
|
| 13 |
+
echo "Ollama is running!"
|
| 14 |
+
|
| 15 |
+
# Pull required models
|
| 16 |
+
MODELS=${MODELS_TO_PULL:-llama3}
|
| 17 |
+
echo "$MODELS" | tr ',' '\n' | while read MODEL; do
|
| 18 |
+
if [ -n "$MODEL" ]; then
|
| 19 |
+
echo "Pulling model: $MODEL"
|
| 20 |
+
ollama pull "$MODEL"
|
| 21 |
+
fi
|
| 22 |
+
done
|
| 23 |
+
|
| 24 |
+
echo "All models loaded successfully!"
|
| 25 |
+
|
| 26 |
+
# Keep container running
|
| 27 |
+
wait $OLLAMA_PID
|
platform/dbops/binaries/weaviate-src/tools/dev/prometheus_config/prometheus.yml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
global:
|
| 2 |
+
scrape_interval: 5s
|
| 3 |
+
evaluation_interval: 5s
|
| 4 |
+
|
| 5 |
+
scrape_configs:
|
| 6 |
+
- job_name: 'weaviate-node-1'
|
| 7 |
+
static_configs:
|
| 8 |
+
- targets: ['host.docker.internal:2112']
|
| 9 |
+
labels:
|
| 10 |
+
instance: 'node-1'
|
| 11 |
+
- job_name: 'weaviate-node-2'
|
| 12 |
+
static_configs:
|
| 13 |
+
- targets: ['host.docker.internal:2113']
|
| 14 |
+
labels:
|
| 15 |
+
instance: 'node-2'
|
| 16 |
+
- job_name: 'weaviate-node-3'
|
| 17 |
+
static_configs:
|
| 18 |
+
- targets: ['host.docker.internal:2114']
|
| 19 |
+
labels:
|
| 20 |
+
instance: 'node-3'
|
| 21 |
+
- job_name: 'node'
|
| 22 |
+
scrape_interval: 15s
|
| 23 |
+
static_configs:
|
| 24 |
+
- targets:
|
| 25 |
+
- host.docker.internal:9100
|
platform/dbops/binaries/weaviate-src/tools/dev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L_SERVICES+=('keycloak')
|
| 12 |
+
fi
|
| 13 |
+
if [[ "$*" == *--transformers-passage-query* ]]; then
|
| 14 |
+
ADDITIONAL_SERVICES+=('t2v-transformers-passage')
|
| 15 |
+
ADDITIONAL_SERVICES+=('t2v-transformers-query')
|
| 16 |
+
elif [[ "$*" == *--transformers* ]]; then
|
| 17 |
+
ADDITIONAL_SERVICES+=('t2v-transformers')
|
| 18 |
+
else
|
| 19 |
+
ADDITIONAL_SERVICES+=('contextionary')
|
| 20 |
+
fi
|
| 21 |
+
if [[ "$*" == *--contextionary* ]]; then
|
| 22 |
+
ADDITIONAL_SERVICES+=('contextionary')
|
| 23 |
+
fi
|
| 24 |
+
if [[ "$*" == *--qna* ]]; then
|
| 25 |
+
ADDITIONAL_SERVICES+=('qna-transformers')
|
| 26 |
+
fi
|
| 27 |
+
if [[ "$*" == *--sum* ]]; then
|
| 28 |
+
ADDITIONAL_SERVICES+=('sum-transformers')
|
| 29 |
+
fi
|
| 30 |
+
if [[ "$*" == *--image* ]]; then
|
| 31 |
+
ADDITIONAL_SERVICES+=('i2v-neural')
|
| 32 |
+
fi
|
| 33 |
+
if [[ "$*" == *--ner* ]]; then
|
| 34 |
+
ADDITIONAL_SERVICES+=('ner-transformers')
|
| 35 |
+
fi
|
| 36 |
+
if [[ "$*" == *--spellcheck* ]]; then
|
| 37 |
+
ADDITIONAL_SERVICES+=('text-spellcheck')
|
| 38 |
+
fi
|
| 39 |
+
if [[ "$*" == *--clip* ]]; then
|
| 40 |
+
ADDITIONAL_SERVICES+=('multi2vec-clip')
|
| 41 |
+
fi
|
| 42 |
+
if [[ "$*" == *--bind* ]]; then
|
| 43 |
+
ADDITIONAL_SERVICES+=('multi2vec-bind')
|
| 44 |
+
fi
|
| 45 |
+
if [[ "$*" == *--reranker* ]]; then
|
| 46 |
+
ADDITIONAL_SERVICES+=('reranker-transformers')
|
| 47 |
+
fi
|
| 48 |
+
if [[ "$*" == *--gpt4all* ]]; then
|
| 49 |
+
ADDITIONAL_SERVICES+=('t2v-gpt4all')
|
| 50 |
+
fi
|
| 51 |
+
if [[ "$*" == *--prometheus* ]]; then
|
| 52 |
+
ADDITIONAL_SERVICES+=('prometheus')
|
| 53 |
+
ADDITIONAL_SERVICES+=('grafana')
|
| 54 |
+
fi
|
| 55 |
+
if [[ "$*" == *--s3* ]]; then
|
| 56 |
+
ADDITIONAL_SERVICES+=('backup-s3')
|
| 57 |
+
fi
|
| 58 |
+
if [[ "$*" == *--gcs* ]]; then
|
| 59 |
+
ADDITIONAL_SERVICES+=('backup-gcs')
|
| 60 |
+
fi
|
| 61 |
+
if [[ "$*" == *--azure* ]]; then
|
| 62 |
+
ADDITIONAL_SERVICES+=('backup-azure')
|
| 63 |
+
fi
|
| 64 |
+
if [[ "$*" == *--voyagemulti* ]]; then
|
| 65 |
+
ADDITIONAL_SERVICES+=('multi2vec-voyageai')
|
| 66 |
+
fi
|
| 67 |
+
if [[ "$*" == *--ollama ]]; then
|
| 68 |
+
ADDITIONAL_SERVICES+=('ollama')
|
| 69 |
+
fi
|
| 70 |
+
if [[ "$*" == *--model2vec* ]]; then
|
| 71 |
+
ADDITIONAL_SERVICES+=('text2vec-model2vec')
|
| 72 |
+
fi
|
| 73 |
+
|
| 74 |
+
docker compose -f $DOCKER_COMPOSE_FILE down --remove-orphans
|
| 75 |
+
|
| 76 |
+
echo "Deleting local persistent state. All the collections and tenants created will be removed"
|
| 77 |
+
rm -rf data data-weaviate-0 data-weaviate-1 data-weaviate-2 backups-weaviate-0 backups-weaviate-1 backups-weaviate-2 connector_state.json schema_state.json
|
| 78 |
+
|
| 79 |
+
docker compose -f $DOCKER_COMPOSE_FILE up -d "${ADDITIONAL_SERVICES[@]}"
|
| 80 |
+
|
| 81 |
+
if [[ "$*" == *--keycloak* ]]; then
|
| 82 |
+
echo "Since you have specified the --keycloak option, we must now wait for"
|
| 83 |
+
echo "keycloak to spin up, so that we can add some demo users"
|
| 84 |
+
|
| 85 |
+
echo -n "Waiting "
|
| 86 |
+
until curl --fail -s localhost:9090/auth; do
|
| 87 |
+
echo -n .
|
| 88 |
+
sleep 1
|
| 89 |
+
done
|
| 90 |
+
echo
|
| 91 |
+
echo Keycloak is ready, now importing some users.
|
| 92 |
+
./tools/dev/keycloak/import_users.sh
|
| 93 |
+
fi
|
| 94 |
+
|
| 95 |
+
if [[ "$*" == *--transformers-passage-query* ]]; then
|
| 96 |
+
echo "You have specified the --transformers-passage-query option. Starting up"
|
| 97 |
+
echo "the t2v-transformers-passage and t2v-transformers-query model containers"
|
| 98 |
+
elif [[ "$*" == *--transformers* ]]; then
|
| 99 |
+
echo "You have specified the --transformers option. Starting up"
|
| 100 |
+
echo "the text2vec-transformers model container"
|
| 101 |
+
fi
|
| 102 |
+
|
| 103 |
+
if [[ "$*" == *--image* ]]; then
|
| 104 |
+
echo "You have specified the --image option. Starting up"
|
| 105 |
+
echo "the text2vec-contextionary model container with img2vec-image module"
|
| 106 |
+
fi
|
| 107 |
+
|
| 108 |
+
if [[ "$*" == *--s3* ]]; then
|
| 109 |
+
echo "You have specified the --s3 option. Starting up"
|
| 110 |
+
echo "the text2vec-contextionary model container with backup-s3 module"
|
| 111 |
+
fi
|
| 112 |
+
|
| 113 |
+
if [[ "$*" == *--gcs* ]]; then
|
| 114 |
+
echo "You have specified the --gcs option. Starting up"
|
| 115 |
+
echo "the text2vec-contextionary model container with backup-gcs module"
|
| 116 |
+
fi
|
| 117 |
+
|
| 118 |
+
if [[ "$*" == *--azure* ]]; then
|
| 119 |
+
echo "You have specified the --azure option. Starting up"
|
| 120 |
+
echo "the text2vec-contextionary model container with backup-azure module"
|
| 121 |
+
fi
|
| 122 |
+
|
| 123 |
+
echo "You can now run the dev version with: ./tools/dev/run_dev_server.sh or ./tools/dev/run_dev_server_no_network.sh"
|
platform/dbops/binaries/weaviate-src/tools/dev/run_debug_server.sh
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env sh
|
| 2 |
+
|
| 3 |
+
set -e
|
| 4 |
+
|
| 5 |
+
function echo_green() {
|
| 6 |
+
green='\033[0;32m'
|
| 7 |
+
nc='\033[0m'
|
| 8 |
+
echo "${green}${*}${nc}"
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
echo_green "Building and starting a debug instance of weaviate locally..."
|
| 12 |
+
|
| 13 |
+
if [[ ! -f docker-compose-debug.yml ]]; then
|
| 14 |
+
echo "Could not locate docker-compose-debug.yml file. Ensure your current PWD is the root the repository"
|
| 15 |
+
exit 1
|
| 16 |
+
fi
|
| 17 |
+
|
| 18 |
+
# Use of the --build flag ensure the latest local changes are picked up and we are debugging the current state of the repo
|
| 19 |
+
docker compose -f docker-compose-debug.yml up --build -d
|
| 20 |
+
|
| 21 |
+
echo_green "Debug instance of weaviate started locally"
|
platform/dbops/binaries/weaviate-src/tools/dev/run_dev_server.sh
ADDED
|
@@ -0,0 +1,1159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
|
| 3 |
+
CONFIG=${1:-local-development}
|
| 4 |
+
|
| 5 |
+
# Jump to root directory
|
| 6 |
+
cd "$( dirname "${BASH_SOURCE[0]}" )"/../.. || exit 1
|
| 7 |
+
|
| 8 |
+
export GO111MODULE=on
|
| 9 |
+
export LOG_LEVEL=${LOG_LEVEL:-"debug"}
|
| 10 |
+
export LOG_FORMAT=${LOG_FORMAT:-"text"}
|
| 11 |
+
export PROMETHEUS_MONITORING_ENABLED=${PROMETHEUS_MONITORING_ENABLED:-"true"}
|
| 12 |
+
export PROMETHEUS_MONITORING_PORT=${PROMETHEUS_MONITORING_PORT:-"2112"}
|
| 13 |
+
export GO_BLOCK_PROFILE_RATE=${GO_BLOCK_PROFILE_RATE:-"20"}
|
| 14 |
+
export GO_MUTEX_PROFILE_FRACTION=${GO_MUTEX_PROFILE_FRACTION:-"20"}
|
| 15 |
+
export PERSISTENCE_DATA_PATH=${PERSISTENCE_DATA_PATH:-"./data"}
|
| 16 |
+
export ORIGIN=${ORIGIN:-"http://localhost:8080"}
|
| 17 |
+
export QUERY_DEFAULTS_LIMIT=${QUERY_DEFAULTS_LIMIT:-"20"}
|
| 18 |
+
export QUERY_MAXIMUM_RESULTS=${QUERY_MAXIMUM_RESULTS:-"10000"}
|
| 19 |
+
export TRACK_VECTOR_DIMENSIONS=true
|
| 20 |
+
export CLUSTER_HOSTNAME=${CLUSTER_HOSTNAME:-"weaviate-0"}
|
| 21 |
+
export GPT4ALL_INFERENCE_API="http://localhost:8010"
|
| 22 |
+
export DISABLE_TELEMETRY=true # disable telemetry for local development
|
| 23 |
+
export PERSISTENCE_HNSW_DISABLE_SNAPSHOTS=${PERSISTENCE_HNSW_DISABLE_SNAPSHOTS:-"false"}
|
| 24 |
+
export PERSISTENCE_HNSW_SNAPSHOT_INTERVAL_SECONDS=${PERSISTENCE_HNSW_SNAPSHOT_INTERVAL_SECONDS:-"300"}
|
| 25 |
+
# inject build info into binaries.
|
| 26 |
+
GIT_REVISION=$(git rev-parse --short HEAD)
|
| 27 |
+
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
| 28 |
+
|
| 29 |
+
VPREFIX="github.com/weaviate/weaviate/usecases/build"
|
| 30 |
+
|
| 31 |
+
BUILD_TAGS="-X ${VPREFIX}.Branch=${GIT_BRANCH} -X ${VPREFIX}.Revision=${GIT_REVISION} -X ${VPREFIX}.BuildUser=$(whoami)@$(hostname) -X ${VPREFIX}.BuildDate=$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
function go_run() {
|
| 35 |
+
go run -ldflags "${BUILD_TAGS}" "$@"
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
case $CONFIG in
|
| 39 |
+
debug)
|
| 40 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 41 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 42 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 43 |
+
ENABLE_MODULES="text2vec-contextionary" \
|
| 44 |
+
dlv debug ./cmd/weaviate-server -- \
|
| 45 |
+
--scheme http \
|
| 46 |
+
--host "127.0.0.1" \
|
| 47 |
+
--port 8080 \
|
| 48 |
+
--read-timeout=600s \
|
| 49 |
+
--write-timeout=600s
|
| 50 |
+
;;
|
| 51 |
+
|
| 52 |
+
local-single-node)
|
| 53 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 54 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 55 |
+
PERSISTENCE_DATA_PATH="./data-weaviate-0" \
|
| 56 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-0" \
|
| 57 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 58 |
+
ENABLE_MODULES="text2vec-contextionary,backup-filesystem" \
|
| 59 |
+
PROMETHEUS_MONITORING_PORT="2112" \
|
| 60 |
+
PROMETHEUS_MONITORING_METRIC_NAMESPACE="weaviate" \
|
| 61 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 62 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 63 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 64 |
+
RAFT_BOOTSTRAP_EXPECT=1 \
|
| 65 |
+
RUNTIME_OVERRIDES_ENABLED=true \
|
| 66 |
+
RUNTIME_OVERRIDES_PATH="${PWD}/tools/dev/config.runtime-overrides.yaml" \
|
| 67 |
+
RUNTIME_OVERRIDES_LOAD_INTERVAL=30s \
|
| 68 |
+
go_run ./cmd/weaviate-server \
|
| 69 |
+
--scheme http \
|
| 70 |
+
--host "127.0.0.1" \
|
| 71 |
+
--port 8080 \
|
| 72 |
+
--read-timeout=600s \
|
| 73 |
+
--write-timeout=600s
|
| 74 |
+
;;
|
| 75 |
+
|
| 76 |
+
local-single-node-rbac)
|
| 77 |
+
AUTHENTICATION_APIKEY_ENABLED=true \
|
| 78 |
+
AUTHORIZATION_RBAC_ENABLED=true \
|
| 79 |
+
AUTHENTICATION_APIKEY_ALLOWED_KEYS='jane-secret-key,ian-secret-key,jp-secret-key' \
|
| 80 |
+
AUTHENTICATION_APIKEY_USERS='jane@doe.com,ian-smith,jp-hwang' \
|
| 81 |
+
AUTHORIZATION_RBAC_ROOT_USERS='jp-hwang' \
|
| 82 |
+
PERSISTENCE_DATA_PATH="./data-weaviate-0" \
|
| 83 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-0" \
|
| 84 |
+
ENABLE_MODULES="backup-filesystem" \
|
| 85 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 86 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 87 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 88 |
+
RAFT_BOOTSTRAP_EXPECT=1 \
|
| 89 |
+
go_run ./cmd/weaviate-server \
|
| 90 |
+
--scheme http \
|
| 91 |
+
--host "127.0.0.1" \
|
| 92 |
+
--port 8080 \
|
| 93 |
+
--read-timeout=600s \
|
| 94 |
+
--write-timeout=600s
|
| 95 |
+
;;
|
| 96 |
+
|
| 97 |
+
local-first-rbac)
|
| 98 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 99 |
+
AUTHENTICATION_APIKEY_ENABLED=true \
|
| 100 |
+
AUTHORIZATION_RBAC_ENABLED=true \
|
| 101 |
+
AUTHENTICATION_APIKEY_ALLOWED_KEYS='jane-secret-key,ian-secret-key,jp-secret-key' \
|
| 102 |
+
AUTHENTICATION_APIKEY_USERS='jane@doe.com,ian-smith,jp-hwang' \
|
| 103 |
+
AUTHORIZATION_RBAC_ROOT_USERS='jp-hwang' \
|
| 104 |
+
PERSISTENCE_DATA_PATH="${PERSISTENCE_DATA_PATH}-weaviate-0" \
|
| 105 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-0" \
|
| 106 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 107 |
+
ENABLE_MODULES="text2vec-contextionary,backup-filesystem" \
|
| 108 |
+
PROMETHEUS_MONITORING_PORT="2112" \
|
| 109 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 110 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 111 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 112 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 113 |
+
RAFT_BOOTSTRAP_EXPECT=3 \
|
| 114 |
+
go_run ./cmd/weaviate-server \
|
| 115 |
+
--scheme http \
|
| 116 |
+
--host "127.0.0.1" \
|
| 117 |
+
--port 8080 \
|
| 118 |
+
--read-timeout=600s \
|
| 119 |
+
--write-timeout=600s
|
| 120 |
+
;;
|
| 121 |
+
|
| 122 |
+
local-second-rbac)
|
| 123 |
+
GRPC_PORT=50052 \
|
| 124 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 125 |
+
AUTHENTICATION_APIKEY_ENABLED=true \
|
| 126 |
+
AUTHORIZATION_RBAC_ENABLED=true \
|
| 127 |
+
AUTHENTICATION_APIKEY_ALLOWED_KEYS='jane-secret-key,ian-secret-key,jp-secret-key' \
|
| 128 |
+
AUTHENTICATION_APIKEY_USERS='jane@doe.com,ian-smith,jp-hwang' \
|
| 129 |
+
AUTHORIZATION_RBAC_ROOT_USERS='jp-hwang' \
|
| 130 |
+
PERSISTENCE_DATA_PATH="${PERSISTENCE_DATA_PATH}-weaviate-1" \
|
| 131 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-1" \
|
| 132 |
+
CLUSTER_HOSTNAME="weaviate-1" \
|
| 133 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 134 |
+
CLUSTER_GOSSIP_BIND_PORT="7102" \
|
| 135 |
+
CLUSTER_DATA_BIND_PORT="7103" \
|
| 136 |
+
CLUSTER_JOIN="localhost:7100" \
|
| 137 |
+
PROMETHEUS_MONITORING_PORT="2113" \
|
| 138 |
+
RAFT_PORT="8302" \
|
| 139 |
+
RAFT_INTERNAL_RPC_PORT="8303" \
|
| 140 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 141 |
+
RAFT_BOOTSTRAP_EXPECT=3 \
|
| 142 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 143 |
+
ENABLE_MODULES="text2vec-contextionary,backup-filesystem" \
|
| 144 |
+
go_run ./cmd/weaviate-server \
|
| 145 |
+
--scheme http \
|
| 146 |
+
--host "127.0.0.1" \
|
| 147 |
+
--port 8081 \
|
| 148 |
+
--read-timeout=600s \
|
| 149 |
+
--write-timeout=600s
|
| 150 |
+
;;
|
| 151 |
+
|
| 152 |
+
local-third-rbac)
|
| 153 |
+
GRPC_PORT=50053 \
|
| 154 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 155 |
+
AUTHENTICATION_APIKEY_ENABLED=true \
|
| 156 |
+
AUTHORIZATION_RBAC_ENABLED=true \
|
| 157 |
+
AUTHENTICATION_APIKEY_ALLOWED_KEYS='jane-secret-key,ian-secret-key,jp-secret-key' \
|
| 158 |
+
AUTHENTICATION_APIKEY_USERS='jane@doe.com,ian-smith,jp-hwang' \
|
| 159 |
+
AUTHORIZATION_RBAC_ROOT_USERS='jp-hwang' \
|
| 160 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-2" \
|
| 161 |
+
PERSISTENCE_DATA_PATH="${PERSISTENCE_DATA_PATH}-weaviate-2" \
|
| 162 |
+
CLUSTER_HOSTNAME="weaviate-2" \
|
| 163 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 164 |
+
CLUSTER_GOSSIP_BIND_PORT="7104" \
|
| 165 |
+
CLUSTER_DATA_BIND_PORT="7105" \
|
| 166 |
+
CLUSTER_JOIN="localhost:7100" \
|
| 167 |
+
PROMETHEUS_MONITORING_PORT="2114" \
|
| 168 |
+
RAFT_PORT="8304" \
|
| 169 |
+
RAFT_INTERNAL_RPC_PORT="8305" \
|
| 170 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 171 |
+
RAFT_BOOTSTRAP_EXPECT=3 \
|
| 172 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 173 |
+
ENABLE_MODULES="text2vec-contextionary,backup-filesystem" \
|
| 174 |
+
go_run ./cmd/weaviate-server \
|
| 175 |
+
--scheme http \
|
| 176 |
+
--host "127.0.0.1" \
|
| 177 |
+
--port 8082 \
|
| 178 |
+
--read-timeout=600s \
|
| 179 |
+
--write-timeout=600s
|
| 180 |
+
;;
|
| 181 |
+
|
| 182 |
+
local-development)
|
| 183 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 184 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 185 |
+
PERSISTENCE_DATA_PATH="${PERSISTENCE_DATA_PATH}-weaviate-0" \
|
| 186 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-0" \
|
| 187 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 188 |
+
ENABLE_MODULES="text2vec-contextionary,backup-filesystem" \
|
| 189 |
+
PROMETHEUS_MONITORING_METRIC_NAMESPACE="weaviate" \
|
| 190 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 191 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 192 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 193 |
+
PROMETHEUS_MONITORING_ENABLED=true \
|
| 194 |
+
PROMETHEUS_MONITORING_PORT="${PROMETHEUS_MONITORING_PORT}" \
|
| 195 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 196 |
+
RAFT_BOOTSTRAP_EXPECT=3 \
|
| 197 |
+
go_run ./cmd/weaviate-server \
|
| 198 |
+
--scheme http \
|
| 199 |
+
--host "127.0.0.1" \
|
| 200 |
+
--port 8080 \
|
| 201 |
+
--read-timeout=600s \
|
| 202 |
+
--write-timeout=600s
|
| 203 |
+
;;
|
| 204 |
+
second-node)
|
| 205 |
+
GRPC_PORT=50052 \
|
| 206 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 207 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 208 |
+
PERSISTENCE_DATA_PATH="${PERSISTENCE_DATA_PATH}-weaviate-1" \
|
| 209 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-1" \
|
| 210 |
+
CLUSTER_HOSTNAME="weaviate-1" \
|
| 211 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 212 |
+
CLUSTER_GOSSIP_BIND_PORT="7102" \
|
| 213 |
+
CLUSTER_DATA_BIND_PORT="7103" \
|
| 214 |
+
CLUSTER_JOIN="localhost:7100" \
|
| 215 |
+
PROMETHEUS_MONITORING_METRIC_NAMESPACE="weaviate" \
|
| 216 |
+
PROMETHEUS_MONITORING_PORT="$((PROMETHEUS_MONITORING_PORT + 1))" \
|
| 217 |
+
PROMETHEUS_MONITORING_ENABLED=true \
|
| 218 |
+
RAFT_PORT="8302" \
|
| 219 |
+
RAFT_INTERNAL_RPC_PORT="8303" \
|
| 220 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 221 |
+
RAFT_BOOTSTRAP_EXPECT=3 \
|
| 222 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 223 |
+
ENABLE_MODULES="text2vec-contextionary,backup-filesystem" \
|
| 224 |
+
go_run ./cmd/weaviate-server \
|
| 225 |
+
--scheme http \
|
| 226 |
+
--host "127.0.0.1" \
|
| 227 |
+
--port 8081 \
|
| 228 |
+
--read-timeout=600s \
|
| 229 |
+
--write-timeout=600s
|
| 230 |
+
;;
|
| 231 |
+
|
| 232 |
+
third-node)
|
| 233 |
+
GRPC_PORT=50053 \
|
| 234 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 235 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 236 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-2" \
|
| 237 |
+
PERSISTENCE_DATA_PATH="${PERSISTENCE_DATA_PATH}-weaviate-2" \
|
| 238 |
+
CLUSTER_HOSTNAME="weaviate-2" \
|
| 239 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 240 |
+
CLUSTER_GOSSIP_BIND_PORT="7104" \
|
| 241 |
+
CLUSTER_DATA_BIND_PORT="7105" \
|
| 242 |
+
CLUSTER_JOIN="localhost:7100" \
|
| 243 |
+
PROMETHEUS_MONITORING_METRIC_NAMESPACE="weaviate" \
|
| 244 |
+
PROMETHEUS_MONITORING_PORT="$((PROMETHEUS_MONITORING_PORT + 2))" \
|
| 245 |
+
PROMETHEUS_MONITORING_ENABLED=true \
|
| 246 |
+
RAFT_PORT="8304" \
|
| 247 |
+
RAFT_INTERNAL_RPC_PORT="8305" \
|
| 248 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 249 |
+
RAFT_BOOTSTRAP_EXPECT=3 \
|
| 250 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 251 |
+
ENABLE_MODULES="text2vec-contextionary,backup-filesystem" \
|
| 252 |
+
go_run ./cmd/weaviate-server \
|
| 253 |
+
--scheme http \
|
| 254 |
+
--host "127.0.0.1" \
|
| 255 |
+
--port 8082 \
|
| 256 |
+
--read-timeout=600s \
|
| 257 |
+
--write-timeout=600s
|
| 258 |
+
;;
|
| 259 |
+
|
| 260 |
+
fourth-node)
|
| 261 |
+
GRPC_PORT=50054 \
|
| 262 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 263 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 264 |
+
PERSISTENCE_DATA_PATH="./data-weaviate-4" \
|
| 265 |
+
CLUSTER_HOSTNAME="weaviate-4" \
|
| 266 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 267 |
+
CLUSTER_GOSSIP_BIND_PORT="7106" \
|
| 268 |
+
CLUSTER_DATA_BIND_PORT="7107" \
|
| 269 |
+
CLUSTER_JOIN="localhost:7100" \
|
| 270 |
+
PROMETHEUS_MONITORING_PORT="2115" \
|
| 271 |
+
PROMETHEUS_MONITORING_METRIC_NAMESPACE="weaviate" \
|
| 272 |
+
RAFT_PORT="8306" \
|
| 273 |
+
RAFT_INTERNAL_RPC_PORT="8307" \
|
| 274 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 275 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 276 |
+
ENABLE_MODULES="text2vec-contextionary" \
|
| 277 |
+
go_run ./cmd/weaviate-server \
|
| 278 |
+
--scheme http \
|
| 279 |
+
--host "127.0.0.1" \
|
| 280 |
+
--port 8083 \
|
| 281 |
+
--read-timeout=600s \
|
| 282 |
+
--write-timeout=600s
|
| 283 |
+
;;
|
| 284 |
+
|
| 285 |
+
local-transformers)
|
| 286 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 287 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 288 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-transformers \
|
| 289 |
+
TRANSFORMERS_INFERENCE_API="http://localhost:8000" \
|
| 290 |
+
ENABLE_MODULES="text2vec-transformers" \
|
| 291 |
+
go_run ./cmd/weaviate-server \
|
| 292 |
+
--scheme http \
|
| 293 |
+
--host "127.0.0.1" \
|
| 294 |
+
--port 8080 \
|
| 295 |
+
--read-timeout=600s \
|
| 296 |
+
--write-timeout=600s
|
| 297 |
+
;;
|
| 298 |
+
local-transformers-passage-query)
|
| 299 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 300 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 301 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-transformers \
|
| 302 |
+
TRANSFORMERS_PASSAGE_INFERENCE_API="http://localhost:8006" \
|
| 303 |
+
TRANSFORMERS_QUERY_INFERENCE_API="http://localhost:8007" \
|
| 304 |
+
ENABLE_MODULES="text2vec-transformers" \
|
| 305 |
+
go_run ./cmd/weaviate-server \
|
| 306 |
+
--scheme http \
|
| 307 |
+
--host "127.0.0.1" \
|
| 308 |
+
--port 8080 \
|
| 309 |
+
--read-timeout=600s \
|
| 310 |
+
--write-timeout=600s
|
| 311 |
+
;;
|
| 312 |
+
local-qna)
|
| 313 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 314 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 315 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 316 |
+
QNA_INFERENCE_API="http://localhost:8001" \
|
| 317 |
+
ENABLE_MODULES="text2vec-contextionary,qna-transformers" \
|
| 318 |
+
go_run ./cmd/weaviate-server \
|
| 319 |
+
--scheme http \
|
| 320 |
+
--host "127.0.0.1" \
|
| 321 |
+
--port 8080 \
|
| 322 |
+
--read-timeout=600s \
|
| 323 |
+
--write-timeout=600s
|
| 324 |
+
;;
|
| 325 |
+
local-sum)
|
| 326 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 327 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 328 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 329 |
+
SUM_INFERENCE_API="http://localhost:8008" \
|
| 330 |
+
ENABLE_MODULES="text2vec-contextionary,sum-transformers" \
|
| 331 |
+
go_run ./cmd/weaviate-server \
|
| 332 |
+
--scheme http \
|
| 333 |
+
--host "127.0.0.1" \
|
| 334 |
+
--port 8080 \
|
| 335 |
+
--read-timeout=600s \
|
| 336 |
+
--write-timeout=600s
|
| 337 |
+
;;
|
| 338 |
+
local-image)
|
| 339 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 340 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 341 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 342 |
+
IMAGE_INFERENCE_API="http://localhost:8002" \
|
| 343 |
+
ENABLE_MODULES="text2vec-contextionary,img2vec-neural" \
|
| 344 |
+
go_run ./cmd/weaviate-server \
|
| 345 |
+
--scheme http \
|
| 346 |
+
--host "127.0.0.1" \
|
| 347 |
+
--port 8080 \
|
| 348 |
+
--read-timeout=600s \
|
| 349 |
+
--write-timeout=600s
|
| 350 |
+
;;
|
| 351 |
+
local-ner)
|
| 352 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 353 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 354 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 355 |
+
NER_INFERENCE_API="http://localhost:8003" \
|
| 356 |
+
ENABLE_MODULES="text2vec-contextionary,ner-transformers" \
|
| 357 |
+
go_run ./cmd/weaviate-server \
|
| 358 |
+
--scheme http \
|
| 359 |
+
--host "127.0.0.1" \
|
| 360 |
+
--port 8080 \
|
| 361 |
+
--read-timeout=600s \
|
| 362 |
+
--write-timeout=600s
|
| 363 |
+
;;
|
| 364 |
+
local-spellcheck)
|
| 365 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 366 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 367 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 368 |
+
SPELLCHECK_INFERENCE_API="http://localhost:8004" \
|
| 369 |
+
ENABLE_MODULES="text2vec-contextionary,text-spellcheck" \
|
| 370 |
+
go_run ./cmd/weaviate-server \
|
| 371 |
+
--scheme http \
|
| 372 |
+
--host "127.0.0.1" \
|
| 373 |
+
--port 8080 \
|
| 374 |
+
--read-timeout=600s \
|
| 375 |
+
--write-timeout=600s
|
| 376 |
+
;;
|
| 377 |
+
local-clip)
|
| 378 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 379 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 380 |
+
DEFAULT_VECTORIZER_MODULE=multi2vec-clip \
|
| 381 |
+
CLIP_INFERENCE_API="http://localhost:8005" \
|
| 382 |
+
ENABLE_MODULES="multi2vec-clip" \
|
| 383 |
+
go_run ./cmd/weaviate-server \
|
| 384 |
+
--scheme http \
|
| 385 |
+
--host "127.0.0.1" \
|
| 386 |
+
--port 8080 \
|
| 387 |
+
--read-timeout=600s \
|
| 388 |
+
--write-timeout=600s
|
| 389 |
+
;;
|
| 390 |
+
local-bind)
|
| 391 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 392 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 393 |
+
DEFAULT_VECTORIZER_MODULE=multi2vec-bind \
|
| 394 |
+
BIND_INFERENCE_API="http://localhost:8011" \
|
| 395 |
+
ENABLE_MODULES="multi2vec-bind" \
|
| 396 |
+
go_run ./cmd/weaviate-server \
|
| 397 |
+
--scheme http \
|
| 398 |
+
--host "127.0.0.1" \
|
| 399 |
+
--port 8080 \
|
| 400 |
+
--read-timeout=600s \
|
| 401 |
+
--write-timeout=600s
|
| 402 |
+
;;
|
| 403 |
+
local-oidc)
|
| 404 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 405 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=false \
|
| 406 |
+
AUTHENTICATION_OIDC_ENABLED=true \
|
| 407 |
+
AUTHENTICATION_OIDC_ISSUER=http://localhost:9090/auth/realms/weaviate \
|
| 408 |
+
AUTHENTICATION_OIDC_USERNAME_CLAIM=email \
|
| 409 |
+
AUTHENTICATION_OIDC_GROUPS_CLAIM=groups \
|
| 410 |
+
AUTHENTICATION_OIDC_CLIENT_ID=demo \
|
| 411 |
+
AUTHORIZATION_ADMINLIST_ENABLED=true \
|
| 412 |
+
AUTHORIZATION_ADMINLIST_USERS=john@doe.com \
|
| 413 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 414 |
+
go_run ./cmd/weaviate-server \
|
| 415 |
+
--scheme http \
|
| 416 |
+
--host "127.0.0.1" \
|
| 417 |
+
--port 8080
|
| 418 |
+
;;
|
| 419 |
+
|
| 420 |
+
local-apikey)
|
| 421 |
+
AUTHENTICATION_APIKEY_ENABLED=true \
|
| 422 |
+
AUTHENTICATION_APIKEY_ALLOWED_KEYS=my-secret-key \
|
| 423 |
+
AUTHENTICATION_APIKEY_USERS=john@doe.com \
|
| 424 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=false \
|
| 425 |
+
AUTHORIZATION_ADMINLIST_ENABLED=true \
|
| 426 |
+
AUTHORIZATION_ADMINLIST_USERS=john@doe.com \
|
| 427 |
+
DEFAULT_VECTORIZER_MODULE=none \
|
| 428 |
+
go_run ./cmd/weaviate-server \
|
| 429 |
+
--scheme http \
|
| 430 |
+
--host "127.0.0.1" \
|
| 431 |
+
--port 8080
|
| 432 |
+
;;
|
| 433 |
+
|
| 434 |
+
local-wcs-oidc-and-apikey)
|
| 435 |
+
AUTHENTICATION_APIKEY_ENABLED=true \
|
| 436 |
+
AUTHENTICATION_APIKEY_ALLOWED_KEYS=my-secret-key,my-secret-read-only-key \
|
| 437 |
+
AUTHENTICATION_APIKEY_USERS=etienne@semi.technology,etienne+read-only@semi.technology \
|
| 438 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=false \
|
| 439 |
+
AUTHENTICATION_OIDC_ENABLED=true \
|
| 440 |
+
AUTHENTICATION_OIDC_ISSUER=https://auth.wcs.api.weaviate.io/auth/realms/SeMI\
|
| 441 |
+
AUTHENTICATION_OIDC_USERNAME_CLAIM=email \
|
| 442 |
+
AUTHENTICATION_OIDC_GROUPS_CLAIM=groups \
|
| 443 |
+
AUTHENTICATION_OIDC_CLIENT_ID=wcs \
|
| 444 |
+
AUTHORIZATION_ADMINLIST_ENABLED=true \
|
| 445 |
+
AUTHORIZATION_ADMINLIST_USERS=etienne@semi.technology \
|
| 446 |
+
AUTHORIZATION_ADMINLIST_READONLY_USERS=etienne+read-only@semi.technology \
|
| 447 |
+
DEFAULT_VECTORIZER_MODULE=none \
|
| 448 |
+
RUNTIME_OVERRIDES_ENABLED=true \
|
| 449 |
+
RUNTIME_OVERRIDES_PATH="${PWD}/tools/dev/config.runtime-overrides.yaml" \
|
| 450 |
+
RUNTIME_OVERRIDES_LOAD_INTERVAL=30s \
|
| 451 |
+
go_run ./cmd/weaviate-server \
|
| 452 |
+
--scheme http \
|
| 453 |
+
--host "127.0.0.1" \
|
| 454 |
+
--port 8080
|
| 455 |
+
;;
|
| 456 |
+
|
| 457 |
+
local-multi-text)
|
| 458 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 459 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 460 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 461 |
+
TRANSFORMERS_INFERENCE_API=http://localhost:8000 \
|
| 462 |
+
CLIP_INFERENCE_API=http://localhost:8005 \
|
| 463 |
+
ENABLE_MODULES=text2vec-contextionary,text2vec-transformers,multi2vec-clip \
|
| 464 |
+
go_run ./cmd/weaviate-server \
|
| 465 |
+
--scheme http \
|
| 466 |
+
--host "127.0.0.1" \
|
| 467 |
+
--port 8080
|
| 468 |
+
;;
|
| 469 |
+
|
| 470 |
+
local-ollama)
|
| 471 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 472 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-ollama \
|
| 473 |
+
ENABLE_MODULES="text2vec-ollama" \
|
| 474 |
+
go_run ./cmd/weaviate-server \
|
| 475 |
+
--scheme http \
|
| 476 |
+
--host "127.0.0.1" \
|
| 477 |
+
--port 8080 \
|
| 478 |
+
--read-timeout=600s \
|
| 479 |
+
--write-timeout=600s
|
| 480 |
+
;;
|
| 481 |
+
|
| 482 |
+
local-openai)
|
| 483 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 484 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-openai \
|
| 485 |
+
ENABLE_MODULES="text2vec-openai" \
|
| 486 |
+
go_run ./cmd/weaviate-server \
|
| 487 |
+
--scheme http \
|
| 488 |
+
--host "127.0.0.1" \
|
| 489 |
+
--port 8080 \
|
| 490 |
+
--read-timeout=600s \
|
| 491 |
+
--write-timeout=600s
|
| 492 |
+
;;
|
| 493 |
+
|
| 494 |
+
local-qna-openai)
|
| 495 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 496 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 497 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 498 |
+
QNA_INFERENCE_API="http://localhost:8001" \
|
| 499 |
+
CLUSTER_HOSTNAME="weaviate-0" \
|
| 500 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 501 |
+
ENABLE_MODULES="text2vec-contextionary,qna-openai" \
|
| 502 |
+
go_run ./cmd/weaviate-server \
|
| 503 |
+
--scheme http \
|
| 504 |
+
--host "127.0.0.1" \
|
| 505 |
+
--port 8080 \
|
| 506 |
+
--read-timeout=600s \
|
| 507 |
+
--write-timeout=600s
|
| 508 |
+
;;
|
| 509 |
+
|
| 510 |
+
local-generative-openai)
|
| 511 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 512 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 513 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 514 |
+
QNA_INFERENCE_API="http://localhost:8001" \
|
| 515 |
+
CLUSTER_HOSTNAME="weaviate-0" \
|
| 516 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 517 |
+
ENABLE_MODULES="text2vec-contextionary,generative-openai" \
|
| 518 |
+
go_run ./cmd/weaviate-server \
|
| 519 |
+
--scheme http \
|
| 520 |
+
--host "127.0.0.1" \
|
| 521 |
+
--port 8080 \
|
| 522 |
+
--read-timeout=600s \
|
| 523 |
+
--write-timeout=600s
|
| 524 |
+
;;
|
| 525 |
+
|
| 526 |
+
local-all-openai)
|
| 527 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 528 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 529 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 530 |
+
QNA_INFERENCE_API="http://localhost:8001" \
|
| 531 |
+
CLUSTER_HOSTNAME="weaviate-0" \
|
| 532 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 533 |
+
ENABLE_MODULES="text2vec-contextionary,qna-openai,generative-openai,text2vec-openai" \
|
| 534 |
+
go_run ./cmd/weaviate-server \
|
| 535 |
+
--scheme http \
|
| 536 |
+
--host "127.0.0.1" \
|
| 537 |
+
--port 8080 \
|
| 538 |
+
--read-timeout=600s \
|
| 539 |
+
--write-timeout=600s
|
| 540 |
+
;;
|
| 541 |
+
|
| 542 |
+
local-all-google)
|
| 543 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 544 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 545 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 546 |
+
QNA_INFERENCE_API="http://localhost:8001" \
|
| 547 |
+
CLUSTER_HOSTNAME="weaviate-0" \
|
| 548 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 549 |
+
ENABLE_MODULES="text2vec-contextionary,generative-google,text2vec-google" \
|
| 550 |
+
go_run ./cmd/weaviate-server \
|
| 551 |
+
--scheme http \
|
| 552 |
+
--host "127.0.0.1" \
|
| 553 |
+
--port 8080 \
|
| 554 |
+
--read-timeout=600s \
|
| 555 |
+
--write-timeout=600s
|
| 556 |
+
;;
|
| 557 |
+
|
| 558 |
+
local-all-openai-cohere-google)
|
| 559 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 560 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 561 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 562 |
+
QNA_INFERENCE_API="http://localhost:8001" \
|
| 563 |
+
CLUSTER_HOSTNAME="weaviate-0" \
|
| 564 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 565 |
+
ENABLE_MODULES="text2vec-contextionary,generative-google,text2vec-google,qna-openai,generative-openai,text2vec-openai,generative-cohere,text2vec-cohere,reranker-cohere" \
|
| 566 |
+
go_run ./cmd/weaviate-server \
|
| 567 |
+
--scheme http \
|
| 568 |
+
--host "127.0.0.1" \
|
| 569 |
+
--port 8080 \
|
| 570 |
+
--read-timeout=600s \
|
| 571 |
+
--write-timeout=600s
|
| 572 |
+
;;
|
| 573 |
+
|
| 574 |
+
local-all-openai-voyageai-google)
|
| 575 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 576 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 577 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 578 |
+
QNA_INFERENCE_API="http://localhost:8001" \
|
| 579 |
+
CLUSTER_HOSTNAME="weaviate-0" \
|
| 580 |
+
ENABLE_MODULES="text2vec-contextionary,generative-google,text2vec-google,qna-openai,generative-openai,text2vec-openai,text2vec-voyageai,reranker-voyageai,multi2vec-voyageai" \
|
| 581 |
+
go_run ./cmd/weaviate-server \
|
| 582 |
+
--scheme http \
|
| 583 |
+
--host "127.0.0.1" \
|
| 584 |
+
--port 8080 \
|
| 585 |
+
--read-timeout=600s \
|
| 586 |
+
--write-timeout=600s
|
| 587 |
+
;;
|
| 588 |
+
|
| 589 |
+
local-huggingface)
|
| 590 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 591 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 592 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-huggingface \
|
| 593 |
+
ENABLE_MODULES="text2vec-huggingface" \
|
| 594 |
+
go_run ./cmd/weaviate-server \
|
| 595 |
+
--scheme http \
|
| 596 |
+
--host "127.0.0.1" \
|
| 597 |
+
--port 8080 \
|
| 598 |
+
--read-timeout=600s \
|
| 599 |
+
--write-timeout=600s
|
| 600 |
+
;;
|
| 601 |
+
|
| 602 |
+
local-no-modules)
|
| 603 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 604 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 605 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 606 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 607 |
+
DEFAULT_VECTORIZER_MODULE=none \
|
| 608 |
+
RUNTIME_OVERRIDES_ENABLED=true \
|
| 609 |
+
RUNTIME_OVERRIDES_PATH="${PWD}/tools/dev/config.runtime-overrides.yaml" \
|
| 610 |
+
RUNTIME_OVERRIDES_LOAD_INTERVAL=5s \
|
| 611 |
+
go_run ./cmd/weaviate-server \
|
| 612 |
+
--scheme http \
|
| 613 |
+
--host "127.0.0.1" \
|
| 614 |
+
--port 8080 \
|
| 615 |
+
--read-timeout=3600s \
|
| 616 |
+
--write-timeout=3600s
|
| 617 |
+
;;
|
| 618 |
+
|
| 619 |
+
local-centroid)
|
| 620 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 621 |
+
ENABLE_MODULES="ref2vec-centroid" \
|
| 622 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 623 |
+
go_run ./cmd/weaviate-server \
|
| 624 |
+
--scheme http \
|
| 625 |
+
--host "127.0.0.1" \
|
| 626 |
+
--port 8080 \
|
| 627 |
+
--read-timeout=3600s \
|
| 628 |
+
--write-timeout=3600s
|
| 629 |
+
;;
|
| 630 |
+
|
| 631 |
+
local-s3)
|
| 632 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 633 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 634 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 635 |
+
BACKUP_S3_ENDPOINT="localhost:9000" \
|
| 636 |
+
BACKUP_S3_USE_SSL="false" \
|
| 637 |
+
BACKUP_S3_BUCKET="weaviate-backups" \
|
| 638 |
+
AWS_ACCESS_KEY_ID="aws_access_key" \
|
| 639 |
+
AWS_SECRET_KEY="aws_secret_key" \
|
| 640 |
+
ENABLE_MODULES="text2vec-contextionary,backup-s3" \
|
| 641 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 642 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 643 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 644 |
+
go_run ./cmd/weaviate-server \
|
| 645 |
+
--scheme http \
|
| 646 |
+
--host "127.0.0.1" \
|
| 647 |
+
--port 8080 \
|
| 648 |
+
--read-timeout=600s \
|
| 649 |
+
--write-timeout=600s
|
| 650 |
+
;;
|
| 651 |
+
|
| 652 |
+
local-minio)
|
| 653 |
+
docker run \
|
| 654 |
+
-p 9000:9000 \
|
| 655 |
+
-p 9001:9001 \
|
| 656 |
+
--user $(id -u):$(id -g) \
|
| 657 |
+
--name minio1 \
|
| 658 |
+
-e "MINIO_ROOT_USER=aws_access_key" \
|
| 659 |
+
-e "MINIO_ROOT_PASSWORD=aws_secret_key" \
|
| 660 |
+
-v ${HOME}/minio/data:/data \
|
| 661 |
+
quay.io/minio/minio server /data --console-address ":9001"
|
| 662 |
+
;;
|
| 663 |
+
|
| 664 |
+
local-node-with-offload)
|
| 665 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 666 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 667 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 668 |
+
PERSISTENCE_DATA_PATH="./data-weaviate-0" \
|
| 669 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-0" \
|
| 670 |
+
ENABLE_MODULES="backup-s3,offload-s3" \
|
| 671 |
+
BACKUP_S3_BUCKET="weaviate-backups" \
|
| 672 |
+
BACKUP_S3_USE_SSL="false" \
|
| 673 |
+
BACKUP_S3_ENDPOINT="localhost:9000" \
|
| 674 |
+
ENABLE_MODULES="backup-filesystem,text2vec-contextionary,offload-s3" \
|
| 675 |
+
PROMETHEUS_MONITORING_PORT="2112" \
|
| 676 |
+
PROMETHEUS_MONITORING_METRIC_NAMESPACE="weaviate" \
|
| 677 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 678 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 679 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 680 |
+
RAFT_BOOTSTRAP_EXPECT=1 \
|
| 681 |
+
OFFLOAD_S3_BUCKET_AUTO_CREATE=true \
|
| 682 |
+
OFFLOAD_S3_ENDPOINT="http://localhost:9000"\
|
| 683 |
+
OFFLOAD_S3_BUCKET_AUTO_CREATE=true \
|
| 684 |
+
AWS_ACCESS_KEY_ID="aws_access_key"\
|
| 685 |
+
AWS_SECRET_KEY="aws_secret_key"\
|
| 686 |
+
go_run ./cmd/weaviate-server \
|
| 687 |
+
--scheme http \
|
| 688 |
+
--host "127.0.0.1" \
|
| 689 |
+
--port 8080 \
|
| 690 |
+
--read-timeout=600s \
|
| 691 |
+
--write-timeout=600s
|
| 692 |
+
;;
|
| 693 |
+
|
| 694 |
+
local-single-offload-node)
|
| 695 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 696 |
+
PERSISTENCE_DATA_PATH="./data-weaviate-0" \
|
| 697 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-0" \
|
| 698 |
+
ENABLE_MODULES="backup-s3,offload-s3" \
|
| 699 |
+
BACKUP_S3_BUCKET="weaviate-backups" \
|
| 700 |
+
BACKUP_S3_USE_SSL="false" \
|
| 701 |
+
BACKUP_S3_ENDPOINT="localhost:9000" \
|
| 702 |
+
PROMETHEUS_MONITORING_PORT="2112" \
|
| 703 |
+
PROMETHEUS_MONITORING_METRIC_NAMESPACE="weaviate" \
|
| 704 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 705 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 706 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 707 |
+
RAFT_BOOTSTRAP_EXPECT=1 \
|
| 708 |
+
OFFLOAD_S3_ENDPOINT="http://localhost:9000"\
|
| 709 |
+
OFFLOAD_S3_BUCKET_AUTO_CREATE=true \
|
| 710 |
+
AWS_ACCESS_KEY_ID="aws_access_key"\
|
| 711 |
+
AWS_SECRET_KEY="aws_secret_key"\
|
| 712 |
+
go_run ./cmd/weaviate-server \
|
| 713 |
+
--scheme http \
|
| 714 |
+
--host "127.0.0.1" \
|
| 715 |
+
--port 8080 \
|
| 716 |
+
--read-timeout=600s \
|
| 717 |
+
--write-timeout=600s
|
| 718 |
+
;;
|
| 719 |
+
|
| 720 |
+
first-s3)
|
| 721 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 722 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 723 |
+
PERSISTENCE_DATA_PATH="./${PERSISTENCE_DATA_PATH}-weaviate-0" \
|
| 724 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-0" \
|
| 725 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 726 |
+
ENABLE_MODULES="text2vec-contextionary,backup-s3,offload-s3" \
|
| 727 |
+
BACKUP_S3_BUCKET="weaviate-backups" \
|
| 728 |
+
BACKUP_S3_USE_SSL="false" \
|
| 729 |
+
BACKUP_S3_ENDPOINT="localhost:9000" \
|
| 730 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 731 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 732 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 733 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 734 |
+
RAFT_BOOTSTRAP_EXPECT=3 \
|
| 735 |
+
OFFLOAD_S3_BUCKET_AUTO_CREATE=true \
|
| 736 |
+
OFFLOAD_S3_ENDPOINT="http://localhost:9000"\
|
| 737 |
+
AWS_ACCESS_KEY_ID="aws_access_key"\
|
| 738 |
+
AWS_SECRET_KEY="aws_secret_key"\
|
| 739 |
+
go_run ./cmd/weaviate-server \
|
| 740 |
+
--scheme http \
|
| 741 |
+
--host "127.0.0.1" \
|
| 742 |
+
--port 8080 \
|
| 743 |
+
--read-timeout=600s \
|
| 744 |
+
--write-timeout=600s
|
| 745 |
+
;;
|
| 746 |
+
|
| 747 |
+
second-s3)
|
| 748 |
+
GRPC_PORT=50052 \
|
| 749 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 750 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 751 |
+
PERSISTENCE_DATA_PATH="./${PERSISTENCE_DATA_PATH}-weaviate-1" \
|
| 752 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-1" \
|
| 753 |
+
BACKUP_S3_BUCKET="weaviate-backups" \
|
| 754 |
+
BACKUP_S3_USE_SSL="false" \
|
| 755 |
+
BACKUP_S3_ENDPOINT="localhost:9000" \
|
| 756 |
+
CLUSTER_HOSTNAME="weaviate-1" \
|
| 757 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 758 |
+
CLUSTER_GOSSIP_BIND_PORT="7102" \
|
| 759 |
+
CLUSTER_DATA_BIND_PORT="7103" \
|
| 760 |
+
CLUSTER_JOIN="localhost:7100" \
|
| 761 |
+
PROMETHEUS_MONITORING_PORT="2113" \
|
| 762 |
+
PROMETHEUS_MONITORING_METRIC_NAMESPACE="weaviate" \
|
| 763 |
+
RAFT_PORT="8302" \
|
| 764 |
+
RAFT_INTERNAL_RPC_PORT="8303" \
|
| 765 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 766 |
+
RAFT_BOOTSTRAP_EXPECT=3 \
|
| 767 |
+
OFFLOAD_S3_BUCKET_AUTO_CREATE=true \
|
| 768 |
+
OFFLOAD_S3_ENDPOINT="http://localhost:9000"\
|
| 769 |
+
AWS_ACCESS_KEY_ID="aws_access_key"\
|
| 770 |
+
AWS_SECRET_KEY="aws_secret_key"\
|
| 771 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 772 |
+
ENABLE_MODULES="text2vec-contextionary,backup-s3,offload-s3" \
|
| 773 |
+
go_run ./cmd/weaviate-server \
|
| 774 |
+
--scheme http \
|
| 775 |
+
--host "127.0.0.1" \
|
| 776 |
+
--port 8081 \
|
| 777 |
+
--read-timeout=600s \
|
| 778 |
+
--write-timeout=600s
|
| 779 |
+
;;
|
| 780 |
+
|
| 781 |
+
third-s3)
|
| 782 |
+
GRPC_PORT=50053 \
|
| 783 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 784 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 785 |
+
PERSISTENCE_DATA_PATH="./${PERSISTENCE_DATA_PATH}-weaviate-2" \
|
| 786 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups-weaviate-2" \
|
| 787 |
+
BACKUP_S3_BUCKET="weaviate-backups" \
|
| 788 |
+
BACKUP_S3_USE_SSL="false" \
|
| 789 |
+
BACKUP_S3_ENDPOINT="localhost:9000" \
|
| 790 |
+
CLUSTER_HOSTNAME="weaviate-2" \
|
| 791 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 792 |
+
CLUSTER_GOSSIP_BIND_PORT="7104" \
|
| 793 |
+
CLUSTER_DATA_BIND_PORT="7105" \
|
| 794 |
+
CLUSTER_JOIN="localhost:7100" \
|
| 795 |
+
PROMETHEUS_MONITORING_PORT="2114" \
|
| 796 |
+
PROMETHEUS_MONITORING_METRIC_NAMESPACE="weaviate" \
|
| 797 |
+
RAFT_PORT="8304" \
|
| 798 |
+
RAFT_INTERNAL_RPC_PORT="8305" \
|
| 799 |
+
RAFT_JOIN="weaviate-0:8300,weaviate-1:8302,weaviate-2:8304" \
|
| 800 |
+
RAFT_BOOTSTRAP_EXPECT=3 \
|
| 801 |
+
OFFLOAD_S3_BUCKET_AUTO_CREATE=true \
|
| 802 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 803 |
+
ENABLE_MODULES="text2vec-contextionary,backup-s3,offload-s3" \
|
| 804 |
+
OFFLOAD_S3_ENDPOINT="http://localhost:9000"\
|
| 805 |
+
AWS_ACCESS_KEY_ID="aws_access_key"\
|
| 806 |
+
AWS_SECRET_KEY="aws_secret_key"\
|
| 807 |
+
go_run ./cmd/weaviate-server \
|
| 808 |
+
--scheme http \
|
| 809 |
+
--host "127.0.0.1" \
|
| 810 |
+
--port 8082 \
|
| 811 |
+
--read-timeout=600s \
|
| 812 |
+
--write-timeout=600s
|
| 813 |
+
;;
|
| 814 |
+
local-gcs)
|
| 815 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 816 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 817 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 818 |
+
GOOGLE_CLOUD_PROJECT=project-id \
|
| 819 |
+
STORAGE_EMULATOR_HOST=localhost:9090 \
|
| 820 |
+
BACKUP_GCS_ENDPOINT=localhost:9090 \
|
| 821 |
+
BACKUP_GCS_BUCKET=weaviate-backups \
|
| 822 |
+
ENABLE_MODULES="text2vec-contextionary,backup-gcs" \
|
| 823 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 824 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 825 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 826 |
+
go_run ./cmd/weaviate-server \
|
| 827 |
+
--scheme http \
|
| 828 |
+
--host "127.0.0.1" \
|
| 829 |
+
--port 8080 \
|
| 830 |
+
--read-timeout=600s \
|
| 831 |
+
--write-timeout=600s
|
| 832 |
+
;;
|
| 833 |
+
|
| 834 |
+
local-gcs-2)
|
| 835 |
+
PERSISTENCE_DATA_PATH="./data-weaviate-1" \
|
| 836 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 837 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 838 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 839 |
+
GOOGLE_CLOUD_PROJECT=project-id \
|
| 840 |
+
STORAGE_EMULATOR_HOST=localhost:9090 \
|
| 841 |
+
BACKUP_GCS_ENDPOINT=localhost:9090 \
|
| 842 |
+
BACKUP_GCS_BUCKET=weaviate-backups \
|
| 843 |
+
ENABLE_MODULES="text2vec-contextionary,backup-gcs" \
|
| 844 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 845 |
+
CLUSTER_HOSTNAME="weaviate-1" \
|
| 846 |
+
CLUSTER_GOSSIP_BIND_PORT="7102" \
|
| 847 |
+
CLUSTER_DATA_BIND_PORT="7103" \
|
| 848 |
+
CLUSTER_JOIN="localhost:7100" \
|
| 849 |
+
GRPC_PORT=50052 \
|
| 850 |
+
go_run ./cmd/weaviate-server \
|
| 851 |
+
--scheme http \
|
| 852 |
+
--host "127.0.0.1" \
|
| 853 |
+
--port 8081 \
|
| 854 |
+
--read-timeout=600s \
|
| 855 |
+
--write-timeout=600s
|
| 856 |
+
;;
|
| 857 |
+
|
| 858 |
+
local-gcs-3)
|
| 859 |
+
PERSISTENCE_DATA_PATH="./data-weaviate-2" \
|
| 860 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 861 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 862 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 863 |
+
GOOGLE_CLOUD_PROJECT=project-id \
|
| 864 |
+
STORAGE_EMULATOR_HOST=localhost:9090 \
|
| 865 |
+
BACKUP_GCS_ENDPOINT=localhost:9090 \
|
| 866 |
+
BACKUP_GCS_BUCKET=weaviate-backups \
|
| 867 |
+
ENABLE_MODULES="text2vec-contextionary,backup-gcs" \
|
| 868 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 869 |
+
CLUSTER_HOSTNAME="weaviate-2" \
|
| 870 |
+
CLUSTER_GOSSIP_BIND_PORT="7104" \
|
| 871 |
+
CLUSTER_DATA_BIND_PORT="7105" \
|
| 872 |
+
CLUSTER_JOIN="localhost:7100" \
|
| 873 |
+
GRPC_PORT=50053 \
|
| 874 |
+
go_run ./cmd/weaviate-server \
|
| 875 |
+
--scheme http \
|
| 876 |
+
--host "127.0.0.1" \
|
| 877 |
+
--port 8082 \
|
| 878 |
+
--read-timeout=600s \
|
| 879 |
+
--write-timeout=600s
|
| 880 |
+
;;
|
| 881 |
+
|
| 882 |
+
local-azure)
|
| 883 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 884 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 885 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 886 |
+
BACKUP_AZURE_CONTAINER=weaviate-container \
|
| 887 |
+
AZURE_STORAGE_CONNECTION_STRING="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;" \
|
| 888 |
+
ENABLE_MODULES="text2vec-contextionary,backup-azure" \
|
| 889 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 890 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 891 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 892 |
+
go_run ./cmd/weaviate-server \
|
| 893 |
+
--scheme http \
|
| 894 |
+
--host "127.0.0.1" \
|
| 895 |
+
--port 8080 \
|
| 896 |
+
--read-timeout=600s \
|
| 897 |
+
--write-timeout=600s
|
| 898 |
+
;;
|
| 899 |
+
create-gcs-bucket)
|
| 900 |
+
echo "make sure that you ran docker-compose up backup-gcs"
|
| 901 |
+
curl -X POST "http://localhost:9090/storage/v1/b" \
|
| 902 |
+
-H "Content-Type: application/json" \
|
| 903 |
+
-d '{"name": "weaviate-usage"}'
|
| 904 |
+
curl -X POST "http://localhost:9090/storage/v1/b" \
|
| 905 |
+
-H "Content-Type: application/json" \
|
| 906 |
+
-d '{"name": "weaviate-backups"}'
|
| 907 |
+
;;
|
| 908 |
+
|
| 909 |
+
local-usage-gcs)
|
| 910 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 911 |
+
LOG_LEVEL=debug \
|
| 912 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 913 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 914 |
+
STORAGE_EMULATOR_HOST=localhost:9090 \
|
| 915 |
+
BACKUP_GCS_ENDPOINT=localhost:9090 \
|
| 916 |
+
BACKUP_GCS_BUCKET=weaviate-backups \
|
| 917 |
+
USAGE_GCS_BUCKET=weaviate-usage \
|
| 918 |
+
USAGE_GCS_PREFIX=billing-usage \
|
| 919 |
+
TRACK_VECTOR_DIMENSIONS=false \
|
| 920 |
+
USAGE_SCRAPE_INTERVAL=1s \
|
| 921 |
+
USAGE_POLICY_VERSION=2025-06-01 \
|
| 922 |
+
RUNTIME_OVERRIDES_LOAD_INTERVAL=3s \
|
| 923 |
+
ENABLE_MODULES="text2vec-contextionary,backup-gcs,usage-gcs" \
|
| 924 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 925 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 926 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 927 |
+
RUNTIME_OVERRIDES_ENABLED=true \
|
| 928 |
+
RUNTIME_OVERRIDES_PATH="${PWD}/tools/dev/config.runtime-overrides.yaml" \
|
| 929 |
+
RUNTIME_OVERRIDES_LOAD_INTERVAL=30s \
|
| 930 |
+
go_run ./cmd/weaviate-server \
|
| 931 |
+
--scheme http \
|
| 932 |
+
--host "127.0.0.1" \
|
| 933 |
+
--port 8080 \
|
| 934 |
+
--read-timeout=600s \
|
| 935 |
+
--write-timeout=600s
|
| 936 |
+
;;
|
| 937 |
+
|
| 938 |
+
create-s3-bucket)
|
| 939 |
+
echo "make sure that you ran docker-compose up backup-s3 or have MinIO running on port 9000"
|
| 940 |
+
AWS_ACCESS_KEY_ID=aws_access_key \
|
| 941 |
+
AWS_SECRET_ACCESS_KEY=aws_secret_key \
|
| 942 |
+
aws --endpoint-url=http://localhost:9000 s3 mb s3://weaviate-usage
|
| 943 |
+
AWS_ACCESS_KEY_ID=aws_access_key \
|
| 944 |
+
AWS_SECRET_ACCESS_KEY=aws_secret_key \
|
| 945 |
+
aws --endpoint-url=http://localhost:9000 s3 mb s3://weaviate-backups
|
| 946 |
+
;;
|
| 947 |
+
|
| 948 |
+
local-usage-s3)
|
| 949 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 950 |
+
LOG_LEVEL=debug \
|
| 951 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 952 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 953 |
+
AWS_ACCESS_KEY_ID=aws_access_key \
|
| 954 |
+
AWS_SECRET_ACCESS_KEY=aws_secret_key \
|
| 955 |
+
AWS_REGION=us-east-1 \
|
| 956 |
+
AWS_ENDPOINT=http://localhost:9000 \
|
| 957 |
+
BACKUP_S3_ENDPOINT=localhost:9000 \
|
| 958 |
+
BACKUP_S3_BUCKET=weaviate-backups \
|
| 959 |
+
BACKUP_S3_USE_SSL=false \
|
| 960 |
+
TRACK_VECTOR_DIMENSIONS=false \
|
| 961 |
+
USAGE_S3_BUCKET=weaviate-usage \
|
| 962 |
+
USAGE_S3_PREFIX=billing-usage \
|
| 963 |
+
USAGE_SCRAPE_INTERVAL=1s \
|
| 964 |
+
USAGE_POLICY_VERSION=2025-06-01 \
|
| 965 |
+
RUNTIME_OVERRIDES_LOAD_INTERVAL=3s \
|
| 966 |
+
ENABLE_MODULES="text2vec-contextionary,backup-s3,usage-s3" \
|
| 967 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 968 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 969 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 970 |
+
RUNTIME_OVERRIDES_ENABLED=true \
|
| 971 |
+
RUNTIME_OVERRIDES_PATH="${PWD}/tools/dev/config.runtime-overrides.yaml" \
|
| 972 |
+
RUNTIME_OVERRIDES_LOAD_INTERVAL=30s \
|
| 973 |
+
go_run ./cmd/weaviate-server \
|
| 974 |
+
--scheme http \
|
| 975 |
+
--host "127.0.0.1" \
|
| 976 |
+
--port 8080 \
|
| 977 |
+
--read-timeout=600s \
|
| 978 |
+
--write-timeout=600s
|
| 979 |
+
;;
|
| 980 |
+
|
| 981 |
+
local-cohere)
|
| 982 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 983 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 984 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-cohere \
|
| 985 |
+
ENABLE_MODULES="text2vec-cohere" \
|
| 986 |
+
go_run ./cmd/weaviate-server \
|
| 987 |
+
--scheme http \
|
| 988 |
+
--host "127.0.0.1" \
|
| 989 |
+
--port 8080 \
|
| 990 |
+
--read-timeout=600s \
|
| 991 |
+
--write-timeout=600s
|
| 992 |
+
;;
|
| 993 |
+
|
| 994 |
+
local-all-cohere)
|
| 995 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 996 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 997 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-cohere \
|
| 998 |
+
ENABLE_MODULES="text2vec-cohere,reranker-cohere,generative-cohere" \
|
| 999 |
+
go_run ./cmd/weaviate-server \
|
| 1000 |
+
--scheme http \
|
| 1001 |
+
--host "127.0.0.1" \
|
| 1002 |
+
--port 8080 \
|
| 1003 |
+
--read-timeout=600s \
|
| 1004 |
+
--write-timeout=600s
|
| 1005 |
+
;;
|
| 1006 |
+
|
| 1007 |
+
local-voyageai)
|
| 1008 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 1009 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-voyageai \
|
| 1010 |
+
ENABLE_MODULES="text2vec-voyageai" \
|
| 1011 |
+
go_run ./cmd/weaviate-server \
|
| 1012 |
+
--scheme http \
|
| 1013 |
+
--host "127.0.0.1" \
|
| 1014 |
+
--port 8080 \
|
| 1015 |
+
--read-timeout=600s \
|
| 1016 |
+
--write-timeout=600s
|
| 1017 |
+
;;
|
| 1018 |
+
|
| 1019 |
+
local-all-voyageai)
|
| 1020 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 1021 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-voyageai \
|
| 1022 |
+
ENABLE_MODULES="text2vec-voyageai,reranker-voyageai" \
|
| 1023 |
+
go_run ./cmd/weaviate-server \
|
| 1024 |
+
--scheme http \
|
| 1025 |
+
--host "127.0.0.1" \
|
| 1026 |
+
--port 8080 \
|
| 1027 |
+
--read-timeout=600s \
|
| 1028 |
+
--write-timeout=600s
|
| 1029 |
+
;;
|
| 1030 |
+
|
| 1031 |
+
local-reranker-transformers)
|
| 1032 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 1033 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 1034 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-contextionary \
|
| 1035 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 1036 |
+
RERANKER_INFERENCE_API="http://localhost:8009" \
|
| 1037 |
+
ENABLE_MODULES="text2vec-contextionary,reranker-transformers" \
|
| 1038 |
+
go_run ./cmd/weaviate-server \
|
| 1039 |
+
--scheme http \
|
| 1040 |
+
--host "127.0.0.1" \
|
| 1041 |
+
--port 8080 \
|
| 1042 |
+
--read-timeout=600s \
|
| 1043 |
+
--write-timeout=600s
|
| 1044 |
+
;;
|
| 1045 |
+
local-gpt4all)
|
| 1046 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 1047 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 1048 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-gpt4all \
|
| 1049 |
+
GPT4ALL_INFERENCE_API="http://localhost:8010" \
|
| 1050 |
+
ENABLE_MODULES="text2vec-gpt4all" \
|
| 1051 |
+
go_run ./cmd/weaviate-server \
|
| 1052 |
+
--scheme http \
|
| 1053 |
+
--host "127.0.0.1" \
|
| 1054 |
+
--port 8080 \
|
| 1055 |
+
--read-timeout=600s \
|
| 1056 |
+
--write-timeout=600s
|
| 1057 |
+
;;
|
| 1058 |
+
local-bigram)
|
| 1059 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 1060 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-bigram \
|
| 1061 |
+
BACKUP_FILESYSTEM_PATH="${PWD}/backups" \
|
| 1062 |
+
ENABLE_MODULES="text2vec-bigram,backup-filesystem" \
|
| 1063 |
+
CLUSTER_IN_LOCALHOST=true \
|
| 1064 |
+
CLUSTER_GOSSIP_BIND_PORT="7100" \
|
| 1065 |
+
CLUSTER_DATA_BIND_PORT="7101" \
|
| 1066 |
+
RAFT_BOOTSTRAP_EXPECT=1 \
|
| 1067 |
+
go_run ./cmd/weaviate-server \
|
| 1068 |
+
--scheme http \
|
| 1069 |
+
--host "127.0.0.1" \
|
| 1070 |
+
--port 8080 \
|
| 1071 |
+
--read-timeout=600s \
|
| 1072 |
+
--write-timeout=600s
|
| 1073 |
+
;;
|
| 1074 |
+
local-model2vec)
|
| 1075 |
+
CONTEXTIONARY_URL=localhost:9999 \
|
| 1076 |
+
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
| 1077 |
+
DEFAULT_VECTORIZER_MODULE=text2vec-model2vec \
|
| 1078 |
+
MODEL2VEC_INFERENCE_API="http://localhost:8012" \
|
| 1079 |
+
ENABLE_MODULES="text2vec-model2vec" \
|
| 1080 |
+
go_run ./cmd/weaviate-server \
|
| 1081 |
+
--scheme http \
|
| 1082 |
+
--host "127.0.0.1" \
|
| 1083 |
+
--port 8080 \
|
| 1084 |
+
--read-timeout=600s \
|
| 1085 |
+
--write-timeout=600s
|
| 1086 |
+
;;
|
| 1087 |
+
local-prometheus)
|
| 1088 |
+
echo "Starting monitoring setup..."
|
| 1089 |
+
|
| 1090 |
+
cleanup() {
|
| 1091 |
+
echo "Cleaning up existing containers and volumes..."
|
| 1092 |
+
docker stop prometheus grafana 2>/dev/null || true
|
| 1093 |
+
docker rm -f prometheus grafana 2>/dev/null || true
|
| 1094 |
+
docker volume rm grafana_data 2>/dev/null || true
|
| 1095 |
+
docker network rm monitoring 2>/dev/null || true
|
| 1096 |
+
echo "Cleanup complete."
|
| 1097 |
+
}
|
| 1098 |
+
|
| 1099 |
+
cleanup
|
| 1100 |
+
|
| 1101 |
+
echo "Creating new setup..."
|
| 1102 |
+
|
| 1103 |
+
docker network create monitoring 2>/dev/null || true
|
| 1104 |
+
|
| 1105 |
+
|
| 1106 |
+
echo "Starting Prometheus..."
|
| 1107 |
+
docker run -d \
|
| 1108 |
+
--name prometheus \
|
| 1109 |
+
--network monitoring \
|
| 1110 |
+
-p 9090:9090 \
|
| 1111 |
+
--add-host=host.docker.internal:host-gateway \
|
| 1112 |
+
-v "$(pwd)/tools/dev/prometheus_config/prometheus.yml:/etc/prometheus/prometheus.yml" \
|
| 1113 |
+
prom/prometheus
|
| 1114 |
+
|
| 1115 |
+
|
| 1116 |
+
echo "Starting Grafana..."
|
| 1117 |
+
docker run -d \
|
| 1118 |
+
--name grafana \
|
| 1119 |
+
--network monitoring \
|
| 1120 |
+
-p 3000:3000 \
|
| 1121 |
+
-e "GF_SECURITY_ADMIN_PASSWORD=admin" \
|
| 1122 |
+
-e "GF_LOG_LEVEL=debug" \
|
| 1123 |
+
-v "$(pwd)/tools/dev/grafana/datasources:/etc/grafana/provisioning/datasources" \
|
| 1124 |
+
-v "$(pwd)/tools/dev/grafana/dashboards/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml" \
|
| 1125 |
+
-v "$(pwd)/tools/dev/grafana/dashboards:/etc/grafana/dashboards" \
|
| 1126 |
+
grafana/grafana
|
| 1127 |
+
|
| 1128 |
+
echo "Waiting for services to start..."
|
| 1129 |
+
sleep 5
|
| 1130 |
+
|
| 1131 |
+
if docker ps | grep -q prometheus; then
|
| 1132 |
+
echo "Prometheus is running"
|
| 1133 |
+
echo "Checking Prometheus targets..."
|
| 1134 |
+
curl -s http://localhost:9090/api/v1/targets | jq '.data.activeTargets[] | {job:.job, state:.health}'
|
| 1135 |
+
else
|
| 1136 |
+
echo "Error: Prometheus failed to start"
|
| 1137 |
+
docker logs prometheus
|
| 1138 |
+
fi
|
| 1139 |
+
|
| 1140 |
+
if docker ps | grep -q grafana; then
|
| 1141 |
+
echo "Grafana is running"
|
| 1142 |
+
echo "Checking Grafana logs..."
|
| 1143 |
+
docker logs grafana
|
| 1144 |
+
else
|
| 1145 |
+
echo "Error: Grafana failed to start"
|
| 1146 |
+
docker logs grafana
|
| 1147 |
+
fi
|
| 1148 |
+
|
| 1149 |
+
echo "Setup complete! Services are available at:"
|
| 1150 |
+
echo "Prometheus: http://localhost:9090"
|
| 1151 |
+
echo "Grafana: http://localhost:3000 (admin/admin)"
|
| 1152 |
+
echo "Dashboards should be available at:"
|
| 1153 |
+
echo "- Overview: http://localhost:3000/d/weaviate-overview/weaviate-overview"
|
| 1154 |
+
;;
|
| 1155 |
+
*)
|
| 1156 |
+
echo "Invalid config" 2>&1
|
| 1157 |
+
exit 1
|
| 1158 |
+
;;
|
| 1159 |
+
esac
|
platform/dbops/binaries/weaviate-src/tools/dev/run_dev_server_no_network.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
|
| 3 |
+
# Jump to root directory
|
| 4 |
+
cd "$( dirname "${BASH_SOURCE[0]}" )"/../.. || exit 1
|
| 5 |
+
|
| 6 |
+
export GO111MODULE=on
|
| 7 |
+
|
| 8 |
+
export DEVELOPMENT_UI=on
|
| 9 |
+
go run ./cmd/weaviate-server \
|
| 10 |
+
--scheme http \
|
| 11 |
+
--host "127.0.0.1" \
|
| 12 |
+
--port 8080 \
|
| 13 |
+
--config-file=tools/dev/config.local-no-network.yaml
|
platform/dbops/binaries/weaviate-src/tools/dev/run_test_server.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
|
| 3 |
+
# Jump to root directory
|
| 4 |
+
cd "$( dirname "${BASH_SOURCE[0]}" )"/../.. || exit 1
|
| 5 |
+
|
| 6 |
+
go run ./cmd/weaviate-server \
|
| 7 |
+
--scheme http \
|
| 8 |
+
--host "127.0.0.1" \
|
| 9 |
+
--port 8080 \
|
| 10 |
+
--config-file=tools/dev/config.json \
|
| 11 |
+
--config janusgraph_test
|
platform/dbops/binaries/weaviate-src/tools/dev/vector_search.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
|
| 3 |
+
search_term="${1:required}"
|
| 4 |
+
|
| 5 |
+
query="{ Local { Explore { Concepts(keywords:[\\\"$search_term\\\"]) { className beacon } } } }"
|
| 6 |
+
body="{\"query\":\"$query\"}"
|
| 7 |
+
endpoint=localhost:8080/v1/graphql
|
| 8 |
+
|
| 9 |
+
curl -s -H 'Content-Type: application/json' -d "$body" $endpoint | jq -r .data.Local.Explore.Concepts[].beacon | while read -r url; do
|
| 10 |
+
res=$(echo "$url" | sed 's#weaviate://localhost#http://localhost:8080/v1#g' | xargs curl -s)
|
| 11 |
+
echo -en "$res" | jq -r .class | tr -d '\n'
|
| 12 |
+
echo -en "\t"
|
| 13 |
+
echo -en "$res" | jq -r .schema.name
|
| 14 |
+
|
| 15 |
+
done;
|
platform/dbops/binaries/weaviate-src/tools/dev/windows/create_checksums.sh
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
|
| 3 |
+
set -eou pipefail
|
| 4 |
+
|
| 5 |
+
VERSION=${1-}
|
| 6 |
+
|
| 7 |
+
function echo_green() {
|
| 8 |
+
green='\033[0;32m'
|
| 9 |
+
nc='\033[0m'
|
| 10 |
+
echo -e "${green}${*}${nc}"
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
function echo_red() {
|
| 14 |
+
red='\033[0;31m'
|
| 15 |
+
nc='\033[0m'
|
| 16 |
+
echo -e "${red}${*}${nc}"
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
function echo_purp_bold() {
|
| 20 |
+
purp='\033[1;35m'
|
| 21 |
+
nc='\033[0m'
|
| 22 |
+
echo -e "${purp}${*}${nc}"
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
function check_binary_files_existance() {
|
| 26 |
+
FILES=("binaries-windows-amd64.zip" "binaries-windows-arm64.zip")
|
| 27 |
+
for f in "${FILES[@]}"
|
| 28 |
+
do
|
| 29 |
+
if [ ! -f "$f" ]; then
|
| 30 |
+
echo_red "File $f does not exist."
|
| 31 |
+
echo_red "This script expects binaries-windows-amd64.zip and binaries-windows-arm64.zip files to be present."
|
| 32 |
+
echo_red "Before running it please first download windows binaries files from github CI pipeline"
|
| 33 |
+
echo_red "so that this script can properly modify the names of the files and generate checksums."
|
| 34 |
+
exit 1
|
| 35 |
+
fi
|
| 36 |
+
done
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
function calculate_checksums() {
|
| 40 |
+
shasum -a 256 $1 | cut -d ' ' -f 1 > $1.sha256
|
| 41 |
+
md5 $1 | cut -d ' ' -f 4 > $1.md5
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
function prepare_binary() {
|
| 45 |
+
arch=$1
|
| 46 |
+
arch_dir=$arch
|
| 47 |
+
mkdir $arch_dir && mv binaries-windows-$arch.zip $arch_dir && cd $arch_dir
|
| 48 |
+
|
| 49 |
+
unzip binaries-windows-$arch.zip
|
| 50 |
+
cp ../../../../README.md .
|
| 51 |
+
cp ../../../../LICENSE .
|
| 52 |
+
zip weaviate-$VERSION-windows-$arch.zip weaviate.exe LICENSE README.md
|
| 53 |
+
calculate_checksums weaviate-$VERSION-windows-$arch.zip
|
| 54 |
+
|
| 55 |
+
rm weaviate.exe
|
| 56 |
+
mv weaviate* ../
|
| 57 |
+
cd .. && rm -fr $arch_dir
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
function main() {
|
| 61 |
+
if test -z "$VERSION"; then
|
| 62 |
+
echo "Missing version parameter. Usage: $0 VERSION"
|
| 63 |
+
exit 1
|
| 64 |
+
fi
|
| 65 |
+
|
| 66 |
+
if case $VERSION in v*) false;; esac; then
|
| 67 |
+
VERSION="v$VERSION"
|
| 68 |
+
fi
|
| 69 |
+
|
| 70 |
+
check_binary_files_existance
|
| 71 |
+
|
| 72 |
+
OUT_DIR="dist"
|
| 73 |
+
if [ -d $OUT_DIR ]; then
|
| 74 |
+
rm -fr $OUT_DIR
|
| 75 |
+
fi
|
| 76 |
+
|
| 77 |
+
ARCHITECTURES=("amd64" "arm64")
|
| 78 |
+
for arch in "${ARCHITECTURES[@]}"
|
| 79 |
+
do
|
| 80 |
+
prepare_binary $arch
|
| 81 |
+
done
|
| 82 |
+
|
| 83 |
+
mkdir $OUT_DIR && mv weaviate* $OUT_DIR
|
| 84 |
+
|
| 85 |
+
echo_purp_bold "${VERSION} windows artifacts available here: $(pwd)/$OUT_DIR"
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
main "$@"
|
platform/dbops/binaries/weaviate-src/tools/license_headers/header.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
platform/dbops/binaries/weaviate-src/tools/license_headers/main.go
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
| 11 |
+
|
| 12 |
+
package main
|
| 13 |
+
|
| 14 |
+
import (
|
| 15 |
+
"bytes"
|
| 16 |
+
"fmt"
|
| 17 |
+
"log"
|
| 18 |
+
"os"
|
| 19 |
+
"regexp"
|
| 20 |
+
"strings"
|
| 21 |
+
"time"
|
| 22 |
+
|
| 23 |
+
"github.com/bmatcuk/doublestar"
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
var (
|
| 27 |
+
headerSectionRe *regexp.Regexp
|
| 28 |
+
buildTagRe *regexp.Regexp
|
| 29 |
+
targetHeader []byte
|
| 30 |
+
yearRe *regexp.Regexp
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
+
func init() {
|
| 34 |
+
headerSectionRe = regexp.MustCompile(`^(//.*\n)*\n`)
|
| 35 |
+
buildTagRe = regexp.MustCompile(`^//go:build`)
|
| 36 |
+
yearRe = regexp.MustCompile(`2016 - \d{4}`)
|
| 37 |
+
h, err := os.ReadFile("tools/license_headers/header.txt")
|
| 38 |
+
fatal(err)
|
| 39 |
+
|
| 40 |
+
// Replace the year with current year
|
| 41 |
+
currentYear := time.Now().Year()
|
| 42 |
+
targetHeader = yearRe.ReplaceAll(h, []byte(fmt.Sprintf("2016 - %d", currentYear)))
|
| 43 |
+
targetHeader = bytes.TrimSpace(targetHeader)
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
func main() {
|
| 47 |
+
fileNames, err := doublestar.Glob("**/*.go")
|
| 48 |
+
fatal(err)
|
| 49 |
+
for _, name := range fileNames {
|
| 50 |
+
if len := len(name); len > 5 && name[len-6:] == ".pb.go" || strings.HasPrefix(name, "vendor/") {
|
| 51 |
+
continue
|
| 52 |
+
}
|
| 53 |
+
fatal(processSingleFile(name))
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
func processSingleFile(name string) error {
|
| 58 |
+
bytes, err := os.ReadFile(name)
|
| 59 |
+
if err != nil {
|
| 60 |
+
return fmt.Errorf("%s: %w", name, err)
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
if hasNoHeader(bytes, name) {
|
| 64 |
+
err := extendWithHeader(name, bytes)
|
| 65 |
+
if err != nil {
|
| 66 |
+
return fmt.Errorf("%s: %w", name, err)
|
| 67 |
+
}
|
| 68 |
+
fmt.Printf("🖋️ successfully created header: %s\n", name)
|
| 69 |
+
return nil
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
if headerNeedsUpdate(bytes) {
|
| 73 |
+
err := updateHeader(name, bytes)
|
| 74 |
+
if err != nil {
|
| 75 |
+
return fmt.Errorf("%s: %w", name, err)
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
fmt.Printf("👷 successfully updated: %s\n", name)
|
| 79 |
+
} else {
|
| 80 |
+
fmt.Printf("✅ already up to date: %s\n", name)
|
| 81 |
+
}
|
| 82 |
+
return nil
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
func headerNeedsUpdate(content []byte) bool {
|
| 86 |
+
current := headerSectionRe.Find(content)
|
| 87 |
+
return !bytes.Equal(bytes.TrimSpace(current), targetHeader)
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
func extendWithHeader(name string, content []byte) error {
|
| 91 |
+
target := append(targetHeader, []byte("\n\n")...)
|
| 92 |
+
updated := append(target, content...)
|
| 93 |
+
return os.WriteFile(name, updated, 0)
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
func updateHeader(name string, content []byte) error {
|
| 97 |
+
if startsWithBuildTag(content) {
|
| 98 |
+
// the document starts with a build tag, this means we don't replace, but
|
| 99 |
+
// insert the header at pos 0
|
| 100 |
+
return extendWithHeader(name, content)
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
// append a newline so we consistently have one newline regardless of the
|
| 104 |
+
// input doc
|
| 105 |
+
target := append(targetHeader, []byte("\n\n")...)
|
| 106 |
+
replaced := headerSectionRe.ReplaceAll(content, target)
|
| 107 |
+
return os.WriteFile(name, replaced, 0)
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
func hasNoHeader(content []byte, name string) bool {
|
| 111 |
+
h := headerSectionRe.Find(content)
|
| 112 |
+
if h == nil {
|
| 113 |
+
// there is no comment section at all
|
| 114 |
+
return true
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
lines := bytes.Split(h, []byte("\n"))
|
| 118 |
+
|
| 119 |
+
// this comment is so short, this is most likely not a header section,
|
| 120 |
+
// let's add a header in front of it instead
|
| 121 |
+
return len(lines) < 4
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
func startsWithBuildTag(content []byte) bool {
|
| 125 |
+
return buildTagRe.Match(content)
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
func fatal(err error) {
|
| 129 |
+
if err != nil {
|
| 130 |
+
log.Fatal(err)
|
| 131 |
+
}
|
| 132 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/release_template/main.go
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
| 11 |
+
|
| 12 |
+
package main
|
| 13 |
+
|
| 14 |
+
import (
|
| 15 |
+
"encoding/json"
|
| 16 |
+
"fmt"
|
| 17 |
+
"io"
|
| 18 |
+
"log"
|
| 19 |
+
"net/http"
|
| 20 |
+
"os"
|
| 21 |
+
"strings"
|
| 22 |
+
|
| 23 |
+
"github.com/pkg/errors"
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
const configurationAPIOrigin = "https://configuration.weaviate.io"
|
| 27 |
+
|
| 28 |
+
func main() {
|
| 29 |
+
version := os.Getenv("VERSION")
|
| 30 |
+
|
| 31 |
+
languages, err := getLanguages()
|
| 32 |
+
fatal(err)
|
| 33 |
+
|
| 34 |
+
languages, err = getModels(languages)
|
| 35 |
+
fatal(err)
|
| 36 |
+
|
| 37 |
+
printRelaeseNotes(languages, version)
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
type language struct {
|
| 41 |
+
code string
|
| 42 |
+
label string
|
| 43 |
+
model string
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
func printRelaeseNotes(languages []language, version string) {
|
| 47 |
+
fmt.Printf("Docker image/tag: `semitechnologies/weaviate:%s`\n", version)
|
| 48 |
+
fmt.Printf("See also: example docker-compose files in %s. ", makeLinks(languages, version))
|
| 49 |
+
fmt.Printf("If you need to configure additional settings, you can also generate " +
|
| 50 |
+
"a custom `docker-compose.yml` file [using the documentation]" +
|
| 51 |
+
"(https://weaviate.io/developers/weaviate/installation/docker-compose).")
|
| 52 |
+
fmt.Printf("\n## Breaking Changes\n*none*\n")
|
| 53 |
+
fmt.Printf("\n## New Features\n*none*\n")
|
| 54 |
+
fmt.Printf("\n## Fixes\n*none*\n")
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
func makeLinks(languages []language, version string) string {
|
| 58 |
+
var out string
|
| 59 |
+
|
| 60 |
+
for i, lang := range languages {
|
| 61 |
+
if i != 0 {
|
| 62 |
+
out += ", "
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
link := fmt.Sprintf("%s/docker-compose?weaviate_version=%s&language=%s&contextionary_model=%s",
|
| 66 |
+
configurationAPIOrigin, version, lang.code, lang.model)
|
| 67 |
+
out += fmt.Sprintf("[%s](%s)", lang.label, link)
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
return out
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
func getModels(languages []language) ([]language, error) {
|
| 74 |
+
for i, lang := range languages {
|
| 75 |
+
resp, err := http.Get(fmt.Sprintf(
|
| 76 |
+
"%s/docker-compose/parameters/contextionary-models?language=%s",
|
| 77 |
+
configurationAPIOrigin, lang.code))
|
| 78 |
+
if err != nil {
|
| 79 |
+
return nil, errors.Wrapf(err, "language %s", lang.label)
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
defer resp.Body.Close()
|
| 83 |
+
bytes, err := io.ReadAll(resp.Body)
|
| 84 |
+
if err != nil {
|
| 85 |
+
return nil, errors.Wrapf(err, "language %s", lang.label)
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
model, err := extractModel(bytes)
|
| 89 |
+
if err != nil {
|
| 90 |
+
return nil, errors.Wrapf(err, "language %s", lang.label)
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
languages[i].model = model
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
return languages, nil
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
func extractModel(in []byte) (string, error) {
|
| 100 |
+
var payload map[string]interface{}
|
| 101 |
+
err := json.Unmarshal(in, &payload)
|
| 102 |
+
if err != nil {
|
| 103 |
+
return "", err
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
options := payload["items"].([]interface{})
|
| 107 |
+
if len(options) < 1 {
|
| 108 |
+
return "", fmt.Errorf("no model options for this language")
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
return options[0].(map[string]interface{})["value"].(string), nil
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
func getLanguages() ([]language, error) {
|
| 115 |
+
codes := strings.Split(os.Getenv("LANGUAGES"), " ")
|
| 116 |
+
|
| 117 |
+
out := make([]language, len(codes))
|
| 118 |
+
for i, code := range codes {
|
| 119 |
+
label, err := languageFullName(code)
|
| 120 |
+
if err != nil {
|
| 121 |
+
return nil, err
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
out[i] = language{
|
| 125 |
+
code: code,
|
| 126 |
+
label: label,
|
| 127 |
+
}
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
return out, nil
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
func fatal(err error) {
|
| 134 |
+
if err != nil {
|
| 135 |
+
log.Fatal(err)
|
| 136 |
+
}
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
func languageFullName(code string) (string, error) {
|
| 140 |
+
switch code {
|
| 141 |
+
case "en":
|
| 142 |
+
return "English", nil
|
| 143 |
+
case "de":
|
| 144 |
+
return "German", nil
|
| 145 |
+
case "it":
|
| 146 |
+
return "Italian", nil
|
| 147 |
+
case "cs":
|
| 148 |
+
return "Czech", nil
|
| 149 |
+
case "nl":
|
| 150 |
+
return "Dutch", nil
|
| 151 |
+
default:
|
| 152 |
+
return "", fmt.Errorf("unknown language %s", code)
|
| 153 |
+
}
|
| 154 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/swagger_custom_code/main.go
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
| 11 |
+
|
| 12 |
+
package main
|
| 13 |
+
|
| 14 |
+
import (
|
| 15 |
+
"fmt"
|
| 16 |
+
"os"
|
| 17 |
+
"strings"
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
func main() {
|
| 21 |
+
overrideObject("entities/models/vectors.go")
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
func overrideObject(name string) error {
|
| 25 |
+
bytes, err := os.ReadFile(name)
|
| 26 |
+
if err != nil {
|
| 27 |
+
return fmt.Errorf("%s: %w", name, err)
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
objectStr := string(bytes)
|
| 31 |
+
|
| 32 |
+
importStr := `import (
|
| 33 |
+
"fmt"
|
| 34 |
+
"encoding/json"`
|
| 35 |
+
|
| 36 |
+
objectStr = strings.Replace(objectStr, "import (", importStr, 1)
|
| 37 |
+
|
| 38 |
+
unmarshalStr := `
|
| 39 |
+
// UnmarshalJSON custom unmarshalling method
|
| 40 |
+
func (v *Vectors) UnmarshalJSON(data []byte) error {
|
| 41 |
+
var rawVectors map[string]json.RawMessage
|
| 42 |
+
if err := json.Unmarshal(data, &rawVectors); err != nil {
|
| 43 |
+
return err
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
if len(rawVectors) > 0 {
|
| 47 |
+
*v = make(Vectors)
|
| 48 |
+
for targetVector, rawMessage := range rawVectors {
|
| 49 |
+
// Try unmarshaling as []float32
|
| 50 |
+
var vector []float32
|
| 51 |
+
if err := json.Unmarshal(rawMessage, &vector); err == nil {
|
| 52 |
+
if len(vector) > 0 {
|
| 53 |
+
(*v)[targetVector] = vector
|
| 54 |
+
}
|
| 55 |
+
continue
|
| 56 |
+
}
|
| 57 |
+
// Try unmarshaling as [][]float32
|
| 58 |
+
var multiVector [][]float32
|
| 59 |
+
if err := json.Unmarshal(rawMessage, &multiVector); err == nil {
|
| 60 |
+
if len(multiVector) > 0 {
|
| 61 |
+
(*v)[targetVector] = multiVector
|
| 62 |
+
}
|
| 63 |
+
continue
|
| 64 |
+
}
|
| 65 |
+
return fmt.Errorf("vectors: cannot unmarshal vector into either []float32 or [][]float32 for target vector %s", targetVector)
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
return nil
|
| 69 |
+
}
|
| 70 |
+
`
|
| 71 |
+
return os.WriteFile(name, []byte(fmt.Sprintf("%s%s", objectStr, unmarshalStr)), 0)
|
| 72 |
+
}
|
platform/dbops/binaries/weaviate-src/tools/test/run_ci_server.sh
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
# This scripts starts a Weaviate server with the test scheme and waits until weaviate is up and running.
|
| 5 |
+
|
| 6 |
+
function build() {
|
| 7 |
+
echo "Pull images..."
|
| 8 |
+
surpress_on_success docker pull golang:1.19-alpine
|
| 9 |
+
echo "Build containers (this will take the longest)..."
|
| 10 |
+
GIT_REVISION=$(git rev-parse --short HEAD)
|
| 11 |
+
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
| 12 |
+
echo_red $1 $2
|
| 13 |
+
docker compose -f "$1" build --build-arg GIT_REVISION="$GIT_REVISION" --build-arg GIT_BRANCH="$GIT_BRANCH" --build-arg EXTRA_BUILD_ARGS="-race" "$2"
|
| 14 |
+
echo "Start up docker compose setup..."
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
function wait(){
|
| 18 |
+
MAX_WAIT_SECONDS=60
|
| 19 |
+
ALREADY_WAITING=0
|
| 20 |
+
|
| 21 |
+
while true; do
|
| 22 |
+
if curl -s http://localhost:8080 > /dev/null; then
|
| 23 |
+
break
|
| 24 |
+
else
|
| 25 |
+
if [ $? -eq 7 ]; then
|
| 26 |
+
echo "Weaviate is not up yet. (waited for ${ALREADY_WAITING}s)"
|
| 27 |
+
echo "Weaviate:"
|
| 28 |
+
docker compose -f "$1" logs weaviate
|
| 29 |
+
if [ $ALREADY_WAITING -gt $MAX_WAIT_SECONDS ]; then
|
| 30 |
+
echo "Weaviate did not start up in $MAX_WAIT_SECONDS."
|
| 31 |
+
docker compose -f "$1" logs
|
| 32 |
+
exit 1
|
| 33 |
+
else
|
| 34 |
+
sleep 2
|
| 35 |
+
let ALREADY_WAITING=$ALREADY_WAITING+2
|
| 36 |
+
fi
|
| 37 |
+
fi
|
| 38 |
+
fi
|
| 39 |
+
done
|
| 40 |
+
|
| 41 |
+
echo "Weaviate is up and running!"
|
| 42 |
+
}
|
| 43 |
+
surpress_on_success() {
|
| 44 |
+
out="$("${@}" 2>&1)" || { echo_red "FAILED!"; echo "$out"; return 1; }
|
| 45 |
+
echo "Done!"
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
function echo_red() {
|
| 49 |
+
red='\033[0;31m'
|
| 50 |
+
nc='\033[0m'
|
| 51 |
+
echo -e "${red}${*}${nc}"
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
START_WEAVIATE_AUTH=${1:-""}
|
| 55 |
+
if [ $# -eq 1 ] && [ "$1" == "--with-auth" ]; then
|
| 56 |
+
START_WEAVIATE_AUTH="true"
|
| 57 |
+
fi
|
| 58 |
+
|
| 59 |
+
build docker-compose-test.yml weaviate
|
| 60 |
+
surpress_on_success docker compose -f docker-compose-test.yml up --force-recreate -d weaviate contextionary
|
| 61 |
+
|
| 62 |
+
if [ "$START_WEAVIATE_AUTH" == "true" ]; then
|
| 63 |
+
build docker-compose-auth-test.yml weaviate-auth
|
| 64 |
+
surpress_on_success docker compose -f docker-compose-auth-test.yml up --force-recreate -d weaviate-auth
|
| 65 |
+
fi
|
| 66 |
+
|
| 67 |
+
wait docker-compose-test.yml
|
| 68 |
+
if [ "$START_WEAVIATE_AUTH" == "true" ]; then
|
| 69 |
+
wait docker-compose-auth-test.yml
|
| 70 |
+
fi
|
platform/dbops/binaries/weaviate-src/usecases/backup/auth_test.go
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
| 11 |
+
|
| 12 |
+
package backup
|
| 13 |
+
|
| 14 |
+
import (
|
| 15 |
+
"context"
|
| 16 |
+
"encoding/json"
|
| 17 |
+
"fmt"
|
| 18 |
+
"reflect"
|
| 19 |
+
"testing"
|
| 20 |
+
"time"
|
| 21 |
+
|
| 22 |
+
"github.com/sirupsen/logrus/hooks/test"
|
| 23 |
+
"github.com/stretchr/testify/assert"
|
| 24 |
+
"github.com/stretchr/testify/mock"
|
| 25 |
+
"github.com/stretchr/testify/require"
|
| 26 |
+
|
| 27 |
+
"github.com/weaviate/weaviate/entities/backup"
|
| 28 |
+
"github.com/weaviate/weaviate/entities/models"
|
| 29 |
+
"github.com/weaviate/weaviate/entities/modulecapabilities"
|
| 30 |
+
"github.com/weaviate/weaviate/usecases/auth/authorization"
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
+
// A component-test like test suite that makes sure that every available UC is
|
| 34 |
+
// potentially protected with the Authorization plugin
|
| 35 |
+
|
| 36 |
+
func Test_Authorization(t *testing.T) {
|
| 37 |
+
req := &BackupRequest{ID: "123", Backend: "filesystem"}
|
| 38 |
+
type testCase struct {
|
| 39 |
+
methodName string
|
| 40 |
+
additionalArgs []interface{}
|
| 41 |
+
classes []string
|
| 42 |
+
expectedVerb string
|
| 43 |
+
expectedResource string
|
| 44 |
+
ignoreAuthZ bool
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
tests := []testCase{
|
| 48 |
+
{
|
| 49 |
+
methodName: "Backup",
|
| 50 |
+
additionalArgs: []interface{}{req},
|
| 51 |
+
expectedVerb: authorization.CREATE,
|
| 52 |
+
expectedResource: authorization.Backups("ABC")[0],
|
| 53 |
+
classes: []string{"ABC"},
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
methodName: "BackupStatus",
|
| 57 |
+
additionalArgs: []interface{}{"filesystem", "123", "", ""},
|
| 58 |
+
classes: []string{"ABC"},
|
| 59 |
+
ignoreAuthZ: true,
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
methodName: "Restore",
|
| 63 |
+
additionalArgs: []interface{}{req, false},
|
| 64 |
+
expectedVerb: authorization.CREATE,
|
| 65 |
+
expectedResource: authorization.Backups("ABC")[0],
|
| 66 |
+
classes: []string{"ABC"},
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
methodName: "RestorationStatus",
|
| 70 |
+
additionalArgs: []interface{}{"filesystem", "123", "", ""},
|
| 71 |
+
classes: []string{"ABC"},
|
| 72 |
+
ignoreAuthZ: true,
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
methodName: "Cancel",
|
| 76 |
+
additionalArgs: []interface{}{"filesystem", "123", "", ""},
|
| 77 |
+
expectedVerb: authorization.DELETE,
|
| 78 |
+
expectedResource: authorization.Backups("ABC")[0],
|
| 79 |
+
classes: []string{"ABC"},
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
methodName: "List",
|
| 83 |
+
additionalArgs: []interface{}{"filesystem"},
|
| 84 |
+
classes: []string{"ABC"},
|
| 85 |
+
ignoreAuthZ: true,
|
| 86 |
+
},
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
t.Run("verify that a test for every public method exists", func(t *testing.T) {
|
| 90 |
+
testedMethods := make([]string, len(tests))
|
| 91 |
+
for i, test := range tests {
|
| 92 |
+
testedMethods[i] = test.methodName
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
for _, method := range allExportedMethods(&Scheduler{}) {
|
| 96 |
+
switch method {
|
| 97 |
+
case "OnCommit", "OnAbort", "OnCanCommit",
|
| 98 |
+
"OnStatus", "CleanupUnfinishedBackups":
|
| 99 |
+
continue
|
| 100 |
+
}
|
| 101 |
+
assert.Contains(t, testedMethods, method)
|
| 102 |
+
}
|
| 103 |
+
})
|
| 104 |
+
|
| 105 |
+
t.Run("verify the tested methods require correct permissions from the authorizer", func(t *testing.T) {
|
| 106 |
+
logger, _ := test.NewNullLogger()
|
| 107 |
+
for _, test := range tests {
|
| 108 |
+
t.Run(test.methodName, func(t *testing.T) {
|
| 109 |
+
authorizer := authorization.NewMockAuthorizer(t)
|
| 110 |
+
selector := NewMockSelector(t)
|
| 111 |
+
backupProvider := NewMockBackupBackendProvider(t)
|
| 112 |
+
nodeResolver := NewMockNodeResolver(t)
|
| 113 |
+
modcapabilities := modulecapabilities.NewMockBackupBackend(t)
|
| 114 |
+
|
| 115 |
+
backupProvider.On("BackupBackend", mock.Anything).Return(modcapabilities, nil).Maybe()
|
| 116 |
+
|
| 117 |
+
modcapabilities.On("IsExternal").Return(false).Maybe()
|
| 118 |
+
modcapabilities.On("HomeDir", mock.Anything, mock.Anything, mock.Anything).Return("/").Maybe()
|
| 119 |
+
|
| 120 |
+
d, err := json.Marshal(backup.DistributedBackupDescriptor{
|
| 121 |
+
StartedAt: time.Now(),
|
| 122 |
+
Nodes: map[string]*backup.NodeDescriptor{
|
| 123 |
+
"node-0": {
|
| 124 |
+
Classes: test.classes,
|
| 125 |
+
Status: backup.Success,
|
| 126 |
+
},
|
| 127 |
+
},
|
| 128 |
+
Status: backup.Success,
|
| 129 |
+
ID: "123",
|
| 130 |
+
Version: "2.1",
|
| 131 |
+
ServerVersion: "x.x.x",
|
| 132 |
+
Error: "",
|
| 133 |
+
})
|
| 134 |
+
require.Nil(t, err)
|
| 135 |
+
var dd backup.DistributedBackupDescriptor
|
| 136 |
+
err = json.Unmarshal(d, &dd)
|
| 137 |
+
require.Nil(t, err)
|
| 138 |
+
|
| 139 |
+
var notFound interface{}
|
| 140 |
+
if test.methodName == "Backup" {
|
| 141 |
+
notFound = backup.ErrNotFound{}
|
| 142 |
+
} else {
|
| 143 |
+
notFound = nil
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
modcapabilities.On("GetObject", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(d, notFound).Maybe()
|
| 147 |
+
modcapabilities.On("PutObject", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(nil).Maybe()
|
| 148 |
+
|
| 149 |
+
modcapabilities.On("Initialize", mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(nil).Maybe()
|
| 150 |
+
|
| 151 |
+
// AllBackups mock expectation for List method
|
| 152 |
+
if test.methodName == "List" {
|
| 153 |
+
modcapabilities.On("AllBackups", mock.Anything).Return([]*backup.DistributedBackupDescriptor{&dd}, nil)
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
nodeResolver.On("NodeCount").Return(1).Maybe()
|
| 157 |
+
nodeResolver.On("LeaderID").Return("node-0").Maybe()
|
| 158 |
+
nodeResolver.On("AllNames").Return([]string{"node-0"}).Maybe()
|
| 159 |
+
nodeResolver.On("NodeHostname", mock.Anything).Return("localhost", false).Maybe()
|
| 160 |
+
|
| 161 |
+
selector.On("Shards", mock.Anything, test.classes[0]).Return([]string{"node-0"}, nil).Maybe()
|
| 162 |
+
selector.On("ListClasses", mock.Anything).Return(test.classes).Maybe()
|
| 163 |
+
selector.On("Backupable", mock.Anything, mock.Anything).Return(nil).Maybe()
|
| 164 |
+
|
| 165 |
+
s := NewScheduler(authorizer, nil, selector, backupProvider, nodeResolver, &fakeSchemaManger{}, logger)
|
| 166 |
+
require.NotNil(t, s)
|
| 167 |
+
|
| 168 |
+
if !test.ignoreAuthZ {
|
| 169 |
+
authorizer.On("Authorize", mock.Anything, mock.Anything, test.expectedVerb, test.expectedResource).Return(nil)
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
args := append([]interface{}{context.Background(), &models.Principal{}}, test.additionalArgs...)
|
| 173 |
+
callFuncByName(s, test.methodName, args...)
|
| 174 |
+
})
|
| 175 |
+
}
|
| 176 |
+
})
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
// inspired by https://stackoverflow.com/a/33008200
|
| 180 |
+
func callFuncByName(manager interface{}, funcName string, params ...interface{}) (out []reflect.Value, err error) {
|
| 181 |
+
managerValue := reflect.ValueOf(manager)
|
| 182 |
+
m := managerValue.MethodByName(funcName)
|
| 183 |
+
if !m.IsValid() {
|
| 184 |
+
return make([]reflect.Value, 0), fmt.Errorf("Method not found \"%s\"", funcName)
|
| 185 |
+
}
|
| 186 |
+
in := make([]reflect.Value, len(params))
|
| 187 |
+
for i, param := range params {
|
| 188 |
+
in[i] = reflect.ValueOf(param)
|
| 189 |
+
}
|
| 190 |
+
out = m.Call(in)
|
| 191 |
+
return
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
func allExportedMethods(subject interface{}) []string {
|
| 195 |
+
var methods []string
|
| 196 |
+
subjectType := reflect.TypeOf(subject)
|
| 197 |
+
for i := 0; i < subjectType.NumMethod(); i++ {
|
| 198 |
+
name := subjectType.Method(i).Name
|
| 199 |
+
if name[0] >= 'A' && name[0] <= 'Z' {
|
| 200 |
+
methods = append(methods, name)
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
return methods
|
| 205 |
+
}
|
platform/dbops/binaries/weaviate-src/usecases/backup/backend.go
ADDED
|
@@ -0,0 +1,702 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
| 11 |
+
|
| 12 |
+
package backup
|
| 13 |
+
|
| 14 |
+
import (
|
| 15 |
+
"context"
|
| 16 |
+
"encoding/json"
|
| 17 |
+
"errors"
|
| 18 |
+
"fmt"
|
| 19 |
+
"io"
|
| 20 |
+
"os"
|
| 21 |
+
"path"
|
| 22 |
+
"path/filepath"
|
| 23 |
+
"runtime"
|
| 24 |
+
"sync/atomic"
|
| 25 |
+
"time"
|
| 26 |
+
|
| 27 |
+
"github.com/prometheus/client_golang/prometheus"
|
| 28 |
+
"github.com/sirupsen/logrus"
|
| 29 |
+
|
| 30 |
+
"github.com/weaviate/weaviate/cluster/fsm"
|
| 31 |
+
"github.com/weaviate/weaviate/entities/backup"
|
| 32 |
+
enterrors "github.com/weaviate/weaviate/entities/errors"
|
| 33 |
+
"github.com/weaviate/weaviate/entities/modulecapabilities"
|
| 34 |
+
"github.com/weaviate/weaviate/usecases/monitoring"
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
// TODO adjust or make configurable
|
| 38 |
+
const (
|
| 39 |
+
storeTimeout = 24 * time.Hour
|
| 40 |
+
metaTimeout = 20 * time.Minute
|
| 41 |
+
|
| 42 |
+
// DefaultChunkSize if size is not specified
|
| 43 |
+
DefaultChunkSize = 1 << 27 // 128MB
|
| 44 |
+
|
| 45 |
+
// maxChunkSize is the upper bound on the chunk size
|
| 46 |
+
maxChunkSize = 1 << 29 // 512MB
|
| 47 |
+
|
| 48 |
+
// minChunkSize is the lower bound on the chunk size
|
| 49 |
+
minChunkSize = 1 << 21 // 2MB
|
| 50 |
+
|
| 51 |
+
// maxCPUPercentage max CPU percentage can be consumed by the file writer
|
| 52 |
+
maxCPUPercentage = 80
|
| 53 |
+
|
| 54 |
+
// DefaultCPUPercentage default CPU percentage can be consumed by the file writer
|
| 55 |
+
DefaultCPUPercentage = 50
|
| 56 |
+
)
|
| 57 |
+
|
| 58 |
+
const (
|
| 59 |
+
// BackupFile used by a node to store its metadata
|
| 60 |
+
BackupFile = "backup.json"
|
| 61 |
+
// GlobalBackupFile used by coordinator to store its metadata
|
| 62 |
+
GlobalBackupFile = "backup_config.json"
|
| 63 |
+
GlobalRestoreFile = "restore_config.json"
|
| 64 |
+
TempDirectory = ".backup.tmp"
|
| 65 |
+
)
|
| 66 |
+
|
| 67 |
+
var _NUMCPU = runtime.NumCPU()
|
| 68 |
+
|
| 69 |
+
type objectStore struct {
|
| 70 |
+
backend modulecapabilities.BackupBackend
|
| 71 |
+
|
| 72 |
+
backupId string // use supplied backup id
|
| 73 |
+
bucket string // Override bucket for one call
|
| 74 |
+
path string // Override path for one call
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
func (s *objectStore) HomeDir(overrideBucket, overridePath string) string {
|
| 78 |
+
return s.backend.HomeDir(s.backupId, overrideBucket, overridePath)
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
func (s *objectStore) WriteToFile(ctx context.Context, key, destPath, overrideBucket, overridePath string) error {
|
| 82 |
+
return s.backend.WriteToFile(ctx, s.backupId, key, destPath, overrideBucket, overridePath)
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
// SourceDataPath is data path of all source files
|
| 86 |
+
func (s *objectStore) SourceDataPath() string {
|
| 87 |
+
return s.backend.SourceDataPath()
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
func (s *objectStore) Write(ctx context.Context, key, overrideBucket, overridePath string, r io.ReadCloser) (int64, error) {
|
| 91 |
+
return s.backend.Write(ctx, s.backupId, key, overrideBucket, overridePath, r)
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
func (s *objectStore) Read(ctx context.Context, key, overrideBucket, overridePath string, w io.WriteCloser) (int64, error) {
|
| 95 |
+
return s.backend.Read(ctx, s.backupId, key, overrideBucket, overridePath, w)
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
func (s *objectStore) Initialize(ctx context.Context, overrideBucket, overridePath string) error {
|
| 99 |
+
return s.backend.Initialize(ctx, s.backupId, overrideBucket, overridePath)
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
// meta marshals and uploads metadata
|
| 103 |
+
func (s *objectStore) putMeta(ctx context.Context, key, overrideBucket, overridePath string, desc interface{}) error {
|
| 104 |
+
bytes, err := json.Marshal(desc)
|
| 105 |
+
if err != nil {
|
| 106 |
+
return fmt.Errorf("putMeta: marshal meta file %q: %w", key, err)
|
| 107 |
+
}
|
| 108 |
+
ctx, cancel := context.WithTimeout(ctx, metaTimeout)
|
| 109 |
+
defer cancel()
|
| 110 |
+
if err := s.backend.PutObject(ctx, s.backupId, key, overrideBucket, overridePath, bytes); err != nil {
|
| 111 |
+
return fmt.Errorf("putMeta: upload meta file %q into bucket %v, path %v: %w", key, overrideBucket, overridePath, err)
|
| 112 |
+
}
|
| 113 |
+
return nil
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
func (s *objectStore) meta(ctx context.Context, key, overrideBucket, overridePath string, dest interface{}) error {
|
| 117 |
+
bytes, err := s.backend.GetObject(ctx, s.backupId, key, overrideBucket, overridePath)
|
| 118 |
+
if err != nil {
|
| 119 |
+
return err
|
| 120 |
+
}
|
| 121 |
+
err = json.Unmarshal(bytes, dest)
|
| 122 |
+
if err != nil {
|
| 123 |
+
return fmt.Errorf("marshal meta file %q: %w", key, err)
|
| 124 |
+
}
|
| 125 |
+
return nil
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
type nodeStore struct {
|
| 129 |
+
objectStore
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
func NewNodeStore(backend modulecapabilities.BackupBackend, backupId, bucket, path string) *nodeStore {
|
| 133 |
+
return &nodeStore{objectStore: objectStore{backend, backupId, bucket, path}}
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
// Meta gets meta data using standard path or deprecated old path
|
| 137 |
+
//
|
| 138 |
+
// adjustBasePath: sets the base path to the old path if the backup has been created prior to v1.17.
|
| 139 |
+
func (s *nodeStore) Meta(ctx context.Context, backupID, overrideBucket, overridePath string, adjustBasePath bool) (*backup.BackupDescriptor, error) {
|
| 140 |
+
var result backup.BackupDescriptor
|
| 141 |
+
err := s.meta(ctx, BackupFile, overrideBucket, overridePath, &result)
|
| 142 |
+
if err != nil {
|
| 143 |
+
cs := &objectStore{s.backend, backupID, overrideBucket, overridePath} // for backward compatibility
|
| 144 |
+
if err := cs.meta(ctx, BackupFile, overrideBucket, overridePath, &result); err == nil {
|
| 145 |
+
if adjustBasePath {
|
| 146 |
+
s.objectStore.backupId = backupID
|
| 147 |
+
}
|
| 148 |
+
return &result, nil
|
| 149 |
+
}
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
return &result, err
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
// meta marshals and uploads metadata
|
| 156 |
+
func (s *nodeStore) PutMeta(ctx context.Context, desc *backup.BackupDescriptor, overrideBucket, overridePath string) error {
|
| 157 |
+
return s.putMeta(ctx, BackupFile, overrideBucket, overridePath, desc)
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
type coordStore struct {
|
| 161 |
+
objectStore
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
// PutMeta puts coordinator's global metadata into object store
|
| 165 |
+
func (s *coordStore) PutMeta(ctx context.Context, filename string, desc *backup.DistributedBackupDescriptor, overrideBucket, overridePath string) error {
|
| 166 |
+
return s.putMeta(ctx, filename, overrideBucket, overridePath, desc)
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
// Meta gets coordinator's global metadata from object store
|
| 170 |
+
func (s *coordStore) Meta(ctx context.Context, filename, overrideBucket, overridePath string) (*backup.DistributedBackupDescriptor, error) {
|
| 171 |
+
var result backup.DistributedBackupDescriptor
|
| 172 |
+
err := s.meta(ctx, filename, overrideBucket, overridePath, &result)
|
| 173 |
+
if err != nil && filename == GlobalBackupFile {
|
| 174 |
+
var oldBackup backup.BackupDescriptor
|
| 175 |
+
if err := s.meta(ctx, BackupFile, overrideBucket, overridePath, &oldBackup); err == nil {
|
| 176 |
+
return oldBackup.ToDistributed(), nil
|
| 177 |
+
}
|
| 178 |
+
}
|
| 179 |
+
return &result, err
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
// uploader uploads backup artifacts. This includes db files and metadata
|
| 183 |
+
type uploader struct {
|
| 184 |
+
sourcer Sourcer
|
| 185 |
+
rbacSourcer fsm.Snapshotter
|
| 186 |
+
dynUserSourcer fsm.Snapshotter
|
| 187 |
+
backend nodeStore
|
| 188 |
+
backupID string
|
| 189 |
+
zipConfig
|
| 190 |
+
setStatus func(st backup.Status)
|
| 191 |
+
log logrus.FieldLogger
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
func newUploader(sourcer Sourcer, rbacSourcer fsm.Snapshotter, dynUserSourcer fsm.Snapshotter, backend nodeStore,
|
| 195 |
+
backupID string, setstatus func(st backup.Status), l logrus.FieldLogger,
|
| 196 |
+
) *uploader {
|
| 197 |
+
return &uploader{
|
| 198 |
+
sourcer, rbacSourcer, dynUserSourcer, backend,
|
| 199 |
+
backupID,
|
| 200 |
+
newZipConfig(Compression{
|
| 201 |
+
Level: DefaultCompression,
|
| 202 |
+
CPUPercentage: DefaultCPUPercentage,
|
| 203 |
+
ChunkSize: DefaultChunkSize,
|
| 204 |
+
}),
|
| 205 |
+
setstatus,
|
| 206 |
+
l,
|
| 207 |
+
}
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
func (u *uploader) withCompression(cfg zipConfig) *uploader {
|
| 211 |
+
u.zipConfig = cfg
|
| 212 |
+
return u
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
// all uploads all files in addition to the metadata file
|
| 216 |
+
func (u *uploader) all(ctx context.Context, classes []string, desc *backup.BackupDescriptor, overrideBucket, overridePath string) (err error) {
|
| 217 |
+
u.setStatus(backup.Transferring)
|
| 218 |
+
desc.Status = string(backup.Transferring)
|
| 219 |
+
ch := u.sourcer.BackupDescriptors(ctx, desc.ID, classes)
|
| 220 |
+
var totalPreCompressionSize int64 // Track total pre-compression bytes
|
| 221 |
+
defer func() {
|
| 222 |
+
// release indexes under all conditions
|
| 223 |
+
u.releaseIndexes(classes, desc.ID)
|
| 224 |
+
|
| 225 |
+
// make sure context is not cancelled when uploading metadata
|
| 226 |
+
ctx := context.Background()
|
| 227 |
+
|
| 228 |
+
// Handle success case first
|
| 229 |
+
if err == nil {
|
| 230 |
+
u.log.Info("start uploading metadata")
|
| 231 |
+
if err = u.backend.PutMeta(ctx, desc, overrideBucket, overridePath); err != nil {
|
| 232 |
+
desc.Status = string(backup.Transferred)
|
| 233 |
+
}
|
| 234 |
+
u.setStatus(backup.Success)
|
| 235 |
+
u.log.Info("finish uploading metadata")
|
| 236 |
+
return
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
desc.Error = err.Error()
|
| 240 |
+
|
| 241 |
+
// Handle error cases
|
| 242 |
+
if errors.Is(err, context.Canceled) || errors.Is(ctx.Err(), context.Canceled) {
|
| 243 |
+
u.setStatus(backup.Cancelled)
|
| 244 |
+
desc.Status = string(backup.Cancelled)
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
u.log.Info("start uploading metadata for cancelled or failed backup")
|
| 248 |
+
if metaErr := u.backend.PutMeta(ctx, desc, overrideBucket, overridePath); metaErr != nil {
|
| 249 |
+
// combine errors for shadowing the original error in case
|
| 250 |
+
// of putMeta failure
|
| 251 |
+
err = fmt.Errorf("upload %w: %w", err, metaErr)
|
| 252 |
+
}
|
| 253 |
+
u.log.Info("finish uploading metadata for cancelled or failed backup")
|
| 254 |
+
}()
|
| 255 |
+
|
| 256 |
+
contextChecker := func(ctx context.Context) error {
|
| 257 |
+
ctxerr := ctx.Err()
|
| 258 |
+
if ctxerr != nil {
|
| 259 |
+
u.setStatus(backup.Cancelled)
|
| 260 |
+
desc.Status = string(backup.Cancelled)
|
| 261 |
+
u.releaseIndexes(classes, desc.ID)
|
| 262 |
+
}
|
| 263 |
+
return ctxerr
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
Loop:
|
| 267 |
+
for {
|
| 268 |
+
select {
|
| 269 |
+
case cdesc, ok := <-ch:
|
| 270 |
+
if !ok {
|
| 271 |
+
u.releaseIndexes(classes, desc.ID)
|
| 272 |
+
break Loop // we are done
|
| 273 |
+
}
|
| 274 |
+
if cdesc.Error != nil {
|
| 275 |
+
return cdesc.Error
|
| 276 |
+
}
|
| 277 |
+
u.log.WithField("class", cdesc.Name).Info("start uploading files")
|
| 278 |
+
preCompressionSize, err := u.class(ctx, desc.ID, &cdesc, overrideBucket, overridePath)
|
| 279 |
+
if err != nil {
|
| 280 |
+
return err
|
| 281 |
+
}
|
| 282 |
+
totalPreCompressionSize += preCompressionSize
|
| 283 |
+
cdesc.PreCompressionSizeBytes = preCompressionSize // Set pre-compression size for this class
|
| 284 |
+
desc.Classes = append(desc.Classes, cdesc)
|
| 285 |
+
u.log.WithField("class", cdesc.Name).Info("finish uploading files")
|
| 286 |
+
|
| 287 |
+
case <-ctx.Done():
|
| 288 |
+
return contextChecker(ctx)
|
| 289 |
+
}
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
if err := ctx.Err(); err != nil {
|
| 293 |
+
return contextChecker(ctx)
|
| 294 |
+
} else if u.rbacSourcer != nil {
|
| 295 |
+
u.log.Info("start uploading RBAC backups")
|
| 296 |
+
descrp, err := u.rbacSourcer.Snapshot()
|
| 297 |
+
if err != nil {
|
| 298 |
+
return err
|
| 299 |
+
}
|
| 300 |
+
desc.RbacBackups = descrp
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
if err := ctx.Err(); err != nil {
|
| 304 |
+
return contextChecker(ctx)
|
| 305 |
+
} else if u.dynUserSourcer != nil {
|
| 306 |
+
u.log.Info("start uploading dynamic user backups")
|
| 307 |
+
descrp, err := u.dynUserSourcer.Snapshot()
|
| 308 |
+
if err != nil {
|
| 309 |
+
return err
|
| 310 |
+
}
|
| 311 |
+
desc.UserBackups = descrp
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
u.setStatus(backup.Transferred)
|
| 315 |
+
desc.Status = string(backup.Success)
|
| 316 |
+
// After all classes, set desc.PreCompressionSizeBytes as the sum of all class sizes
|
| 317 |
+
desc.PreCompressionSizeBytes = totalPreCompressionSize
|
| 318 |
+
return nil
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
func (u *uploader) releaseIndexes(classes []string, ID string) {
|
| 322 |
+
for _, class := range classes {
|
| 323 |
+
className := class
|
| 324 |
+
enterrors.GoWrapper(func() {
|
| 325 |
+
if err := u.sourcer.ReleaseBackup(context.Background(), ID, className); err != nil {
|
| 326 |
+
u.log.WithFields(logrus.Fields{
|
| 327 |
+
"class": className,
|
| 328 |
+
"backupID": ID,
|
| 329 |
+
}).Error("failed to release backup")
|
| 330 |
+
}
|
| 331 |
+
}, u.log)
|
| 332 |
+
}
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
// class uploads one class
|
| 336 |
+
// Returns the number of bytes written for this class
|
| 337 |
+
func (u *uploader) class(ctx context.Context, id string, desc *backup.ClassDescriptor, overrideBucket, overridePath string) (int64, error) {
|
| 338 |
+
var err error
|
| 339 |
+
classLabel := desc.Name
|
| 340 |
+
if monitoring.GetMetrics().Group {
|
| 341 |
+
classLabel = "n/a"
|
| 342 |
+
}
|
| 343 |
+
metric, err := monitoring.GetMetrics().BackupStoreDurations.GetMetricWithLabelValues(getType(u.backend.backend), classLabel)
|
| 344 |
+
if err == nil {
|
| 345 |
+
timer := prometheus.NewTimer(metric)
|
| 346 |
+
defer timer.ObserveDuration()
|
| 347 |
+
}
|
| 348 |
+
defer func() {
|
| 349 |
+
// backups need to be released anyway
|
| 350 |
+
enterrors.GoWrapper(func() {
|
| 351 |
+
if err := u.sourcer.ReleaseBackup(context.Background(), id, desc.Name); err != nil {
|
| 352 |
+
u.log.WithFields(logrus.Fields{
|
| 353 |
+
"class": id,
|
| 354 |
+
"backupID": desc.Name,
|
| 355 |
+
}).Error("failed to release backup")
|
| 356 |
+
}
|
| 357 |
+
}, u.log)
|
| 358 |
+
}()
|
| 359 |
+
ctx, cancel := context.WithTimeout(ctx, storeTimeout)
|
| 360 |
+
defer cancel()
|
| 361 |
+
|
| 362 |
+
u.log.WithFields(logrus.Fields{
|
| 363 |
+
"action": "upload_class",
|
| 364 |
+
"duration": storeTimeout,
|
| 365 |
+
}).Debug("context.WithTimeout")
|
| 366 |
+
|
| 367 |
+
nShards := len(desc.Shards)
|
| 368 |
+
if nShards == 0 {
|
| 369 |
+
return 0, nil
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
desc.Chunks = make(map[int32][]string, 1+nShards/2)
|
| 373 |
+
var (
|
| 374 |
+
hasJobs atomic.Bool
|
| 375 |
+
lastChunk = int32(0)
|
| 376 |
+
nWorker = u.GoPoolSize
|
| 377 |
+
)
|
| 378 |
+
if nWorker > nShards {
|
| 379 |
+
nWorker = nShards
|
| 380 |
+
}
|
| 381 |
+
hasJobs.Store(nShards > 0)
|
| 382 |
+
|
| 383 |
+
// jobs produces work for the processor
|
| 384 |
+
jobs := func(xs []*backup.ShardDescriptor) <-chan *backup.ShardDescriptor {
|
| 385 |
+
sendCh := make(chan *backup.ShardDescriptor)
|
| 386 |
+
f := func() {
|
| 387 |
+
defer close(sendCh)
|
| 388 |
+
defer hasJobs.Store(false)
|
| 389 |
+
|
| 390 |
+
for _, shard := range xs {
|
| 391 |
+
select {
|
| 392 |
+
case sendCh <- shard:
|
| 393 |
+
// cancellation will happen for two reasons:
|
| 394 |
+
// - 1. if the whole operation has been aborted,
|
| 395 |
+
// - 2. or if the processor routine returns an error
|
| 396 |
+
case <-ctx.Done():
|
| 397 |
+
return
|
| 398 |
+
}
|
| 399 |
+
}
|
| 400 |
+
}
|
| 401 |
+
enterrors.GoWrapper(f, u.log)
|
| 402 |
+
return sendCh
|
| 403 |
+
}
|
| 404 |
+
|
| 405 |
+
// processor
|
| 406 |
+
processor := func(nWorker int, sender <-chan *backup.ShardDescriptor) <-chan chuckShards {
|
| 407 |
+
eg, ctx := enterrors.NewErrorGroupWithContextWrapper(u.log, ctx)
|
| 408 |
+
eg.SetLimit(nWorker)
|
| 409 |
+
recvCh := make(chan chuckShards, nWorker)
|
| 410 |
+
f := func() {
|
| 411 |
+
defer close(recvCh)
|
| 412 |
+
for i := 0; i < nWorker; i++ {
|
| 413 |
+
eg.Go(func() error {
|
| 414 |
+
// operation might have been aborted see comment above
|
| 415 |
+
if err := ctx.Err(); err != nil {
|
| 416 |
+
return err
|
| 417 |
+
}
|
| 418 |
+
for hasJobs.Load() {
|
| 419 |
+
if err := ctx.Err(); err != nil {
|
| 420 |
+
return err
|
| 421 |
+
}
|
| 422 |
+
chunk := atomic.AddInt32(&lastChunk, 1)
|
| 423 |
+
shards, preCompressionSize, err := u.compress(ctx, desc.Name, chunk, sender, overrideBucket, overridePath)
|
| 424 |
+
if err != nil {
|
| 425 |
+
return err
|
| 426 |
+
}
|
| 427 |
+
if m := int32(len(shards)); m > 0 {
|
| 428 |
+
recvCh <- chuckShards{chunk, shards, preCompressionSize}
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
return err
|
| 432 |
+
})
|
| 433 |
+
}
|
| 434 |
+
err = eg.Wait()
|
| 435 |
+
}
|
| 436 |
+
enterrors.GoWrapper(f, u.log)
|
| 437 |
+
return recvCh
|
| 438 |
+
}
|
| 439 |
+
|
| 440 |
+
for x := range processor(nWorker, jobs(desc.Shards)) {
|
| 441 |
+
desc.Chunks[x.chunk] = x.shards
|
| 442 |
+
desc.PreCompressionSizeBytes += x.preCompressionSize
|
| 443 |
+
}
|
| 444 |
+
return desc.PreCompressionSizeBytes, err
|
| 445 |
+
}
|
| 446 |
+
|
| 447 |
+
type chuckShards struct {
|
| 448 |
+
chunk int32
|
| 449 |
+
shards []string
|
| 450 |
+
preCompressionSize int64
|
| 451 |
+
}
|
| 452 |
+
|
| 453 |
+
func (u *uploader) compress(ctx context.Context,
|
| 454 |
+
class string, // class name
|
| 455 |
+
chunk int32, // chunk index
|
| 456 |
+
ch <-chan *backup.ShardDescriptor, // chan of shards
|
| 457 |
+
overrideBucket, overridePath string, // bucket name and path
|
| 458 |
+
) ([]string, int64, error) {
|
| 459 |
+
var (
|
| 460 |
+
chunkKey = chunkKey(class, chunk)
|
| 461 |
+
shards = make([]string, 0, 10)
|
| 462 |
+
// add tolerance to enable better optimization of the chunk size
|
| 463 |
+
maxSize = int64(u.ChunkSize + u.ChunkSize/20) // size + 5%
|
| 464 |
+
preCompressionSize atomic.Int64
|
| 465 |
+
eg = enterrors.NewErrorGroupWrapper(u.log)
|
| 466 |
+
)
|
| 467 |
+
zip, reader := NewZip(u.backend.SourceDataPath(), u.Level)
|
| 468 |
+
producer := func() error {
|
| 469 |
+
defer zip.Close()
|
| 470 |
+
lastShardSize := int64(0)
|
| 471 |
+
for shard := range ch {
|
| 472 |
+
if err := ctx.Err(); err != nil {
|
| 473 |
+
return err
|
| 474 |
+
}
|
| 475 |
+
|
| 476 |
+
eg.Go(func() error {
|
| 477 |
+
// Calculate pre-compression size for this shard
|
| 478 |
+
shardPreSize := u.calculateShardPreCompressionSize(shard)
|
| 479 |
+
preCompressionSize.Add(shardPreSize)
|
| 480 |
+
return nil
|
| 481 |
+
})
|
| 482 |
+
|
| 483 |
+
if _, err := zip.WriteShard(ctx, shard); err != nil {
|
| 484 |
+
return err
|
| 485 |
+
}
|
| 486 |
+
shard.Chunk = chunk
|
| 487 |
+
shards = append(shards, shard.Name)
|
| 488 |
+
shard.ClearTemporary()
|
| 489 |
+
zip.gzw.Flush() // flush new shard
|
| 490 |
+
lastShardSize = zip.lastWritten() - lastShardSize
|
| 491 |
+
if zip.lastWritten()+lastShardSize > maxSize {
|
| 492 |
+
break
|
| 493 |
+
}
|
| 494 |
+
}
|
| 495 |
+
return nil
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
// consumer
|
| 499 |
+
eg.Go(func() error {
|
| 500 |
+
if _, err := u.backend.Write(ctx, chunkKey, overrideBucket, overridePath, reader); err != nil {
|
| 501 |
+
return err
|
| 502 |
+
}
|
| 503 |
+
return nil
|
| 504 |
+
})
|
| 505 |
+
|
| 506 |
+
if err := producer(); err != nil {
|
| 507 |
+
return shards, preCompressionSize.Load(), err
|
| 508 |
+
}
|
| 509 |
+
// wait for the consumer to finish
|
| 510 |
+
return shards, preCompressionSize.Load(), eg.Wait()
|
| 511 |
+
}
|
| 512 |
+
|
| 513 |
+
// calculateShardPreCompressionSize calculates the total size of a shard before compression
|
| 514 |
+
// Since shards are paused and memtables are flushed during backup, we only need to calculate
|
| 515 |
+
// the size of files on disk, not in-memory data.
|
| 516 |
+
func (u *uploader) calculateShardPreCompressionSize(shard *backup.ShardDescriptor) int64 {
|
| 517 |
+
var totalSize int64
|
| 518 |
+
sourceDataPath := u.backend.SourceDataPath()
|
| 519 |
+
// Add size of files on disk (in-memory data is flushed to disk during backup preparation)
|
| 520 |
+
for _, filePath := range shard.Files {
|
| 521 |
+
fullPath := filepath.Join(sourceDataPath, filePath)
|
| 522 |
+
if info, err := os.Stat(fullPath); err == nil {
|
| 523 |
+
totalSize += info.Size()
|
| 524 |
+
}
|
| 525 |
+
}
|
| 526 |
+
|
| 527 |
+
u.log.WithFields(logrus.Fields{
|
| 528 |
+
"shard": shard.Name,
|
| 529 |
+
"filesCount": len(shard.Files),
|
| 530 |
+
"totalSize": totalSize,
|
| 531 |
+
"sourceDataPath": sourceDataPath,
|
| 532 |
+
}).Debug("calculated pre-compression size for shard")
|
| 533 |
+
|
| 534 |
+
return totalSize
|
| 535 |
+
}
|
| 536 |
+
|
| 537 |
+
// fileWriter downloads files from object store and writes files to the destination folder destDir
|
| 538 |
+
type fileWriter struct {
|
| 539 |
+
sourcer Sourcer
|
| 540 |
+
backend nodeStore
|
| 541 |
+
tempDir string
|
| 542 |
+
destDir string
|
| 543 |
+
movedFiles []string // files successfully moved to destination folder
|
| 544 |
+
compressed bool
|
| 545 |
+
GoPoolSize int
|
| 546 |
+
migrator func(classPath string) error
|
| 547 |
+
logger logrus.FieldLogger
|
| 548 |
+
}
|
| 549 |
+
|
| 550 |
+
func newFileWriter(sourcer Sourcer, backend nodeStore,
|
| 551 |
+
compressed bool, logger logrus.FieldLogger,
|
| 552 |
+
) *fileWriter {
|
| 553 |
+
destDir := backend.SourceDataPath()
|
| 554 |
+
return &fileWriter{
|
| 555 |
+
sourcer: sourcer,
|
| 556 |
+
backend: backend,
|
| 557 |
+
destDir: destDir,
|
| 558 |
+
tempDir: path.Join(destDir, TempDirectory),
|
| 559 |
+
movedFiles: make([]string, 0, 64),
|
| 560 |
+
compressed: compressed,
|
| 561 |
+
GoPoolSize: routinePoolSize(50),
|
| 562 |
+
logger: logger,
|
| 563 |
+
}
|
| 564 |
+
}
|
| 565 |
+
|
| 566 |
+
func (fw *fileWriter) WithPoolPercentage(p int) *fileWriter {
|
| 567 |
+
fw.GoPoolSize = routinePoolSize(p)
|
| 568 |
+
return fw
|
| 569 |
+
}
|
| 570 |
+
|
| 571 |
+
func (fw *fileWriter) setMigrator(m func(classPath string) error) { fw.migrator = m }
|
| 572 |
+
|
| 573 |
+
// Write downloads files and put them in the destination directory
|
| 574 |
+
func (fw *fileWriter) Write(ctx context.Context, desc *backup.ClassDescriptor, overrideBucket, overridePath string) (err error) {
|
| 575 |
+
if len(desc.Shards) == 0 { // nothing to copy
|
| 576 |
+
return nil
|
| 577 |
+
}
|
| 578 |
+
classTempDir := path.Join(fw.tempDir, desc.Name)
|
| 579 |
+
|
| 580 |
+
if err := fw.writeTempFiles(ctx, classTempDir, overrideBucket, overridePath, desc); err != nil {
|
| 581 |
+
return fmt.Errorf("get files: %w", err)
|
| 582 |
+
}
|
| 583 |
+
|
| 584 |
+
if fw.migrator != nil {
|
| 585 |
+
if err := fw.migrator(classTempDir); err != nil {
|
| 586 |
+
return fmt.Errorf("migrate from pre 1.23: %w", err)
|
| 587 |
+
}
|
| 588 |
+
}
|
| 589 |
+
|
| 590 |
+
return nil
|
| 591 |
+
}
|
| 592 |
+
|
| 593 |
+
// writeTempFiles writes class files into a temporary directory
|
| 594 |
+
// temporary directory path = d.tempDir/className
|
| 595 |
+
// Function makes sure that created files will be removed in case of an error
|
| 596 |
+
func (fw *fileWriter) writeTempFiles(ctx context.Context, classTempDir, overrideBucket, overridePath string, desc *backup.ClassDescriptor) (err error) {
|
| 597 |
+
if err := os.RemoveAll(classTempDir); err != nil {
|
| 598 |
+
return fmt.Errorf("remove %s: %w", classTempDir, err)
|
| 599 |
+
}
|
| 600 |
+
if err := os.MkdirAll(classTempDir, os.ModePerm); err != nil {
|
| 601 |
+
return fmt.Errorf("create temp class folder %s: %w", classTempDir, err)
|
| 602 |
+
}
|
| 603 |
+
ctx, cancel := context.WithCancel(ctx)
|
| 604 |
+
defer cancel()
|
| 605 |
+
|
| 606 |
+
// no compression processed as before
|
| 607 |
+
eg, ctx := enterrors.NewErrorGroupWithContextWrapper(fw.logger, ctx)
|
| 608 |
+
if !fw.compressed {
|
| 609 |
+
eg.SetLimit(2 * _NUMCPU)
|
| 610 |
+
for _, shard := range desc.Shards {
|
| 611 |
+
shard := shard
|
| 612 |
+
eg.Go(func() error { return fw.writeTempShard(ctx, shard, classTempDir, overrideBucket, overridePath) }, shard.Name)
|
| 613 |
+
}
|
| 614 |
+
return eg.Wait()
|
| 615 |
+
}
|
| 616 |
+
|
| 617 |
+
// source files are compressed
|
| 618 |
+
|
| 619 |
+
eg.SetLimit(fw.GoPoolSize)
|
| 620 |
+
for k := range desc.Chunks {
|
| 621 |
+
chunk := chunkKey(desc.Name, k)
|
| 622 |
+
eg.Go(func() error {
|
| 623 |
+
uz, w := NewUnzip(classTempDir)
|
| 624 |
+
enterrors.GoWrapper(func() {
|
| 625 |
+
fw.backend.Read(ctx, chunk, overrideBucket, overridePath, w)
|
| 626 |
+
}, fw.logger)
|
| 627 |
+
_, err := uz.ReadChunk()
|
| 628 |
+
return err
|
| 629 |
+
})
|
| 630 |
+
}
|
| 631 |
+
return eg.Wait()
|
| 632 |
+
}
|
| 633 |
+
|
| 634 |
+
func (fw *fileWriter) writeTempShard(ctx context.Context, sd *backup.ShardDescriptor, classTempDir, overrideBucket, overridePath string) error {
|
| 635 |
+
for _, key := range sd.Files {
|
| 636 |
+
destPath := path.Join(classTempDir, key)
|
| 637 |
+
destDir := path.Dir(destPath)
|
| 638 |
+
if err := os.MkdirAll(destDir, os.ModePerm); err != nil {
|
| 639 |
+
return fmt.Errorf("create folder %s: %w", destDir, err)
|
| 640 |
+
}
|
| 641 |
+
if err := fw.backend.WriteToFile(ctx, key, destPath, overrideBucket, overridePath); err != nil {
|
| 642 |
+
return fmt.Errorf("write file %s: %w", destPath, err)
|
| 643 |
+
}
|
| 644 |
+
}
|
| 645 |
+
destPath := path.Join(classTempDir, sd.DocIDCounterPath)
|
| 646 |
+
if err := os.WriteFile(destPath, sd.DocIDCounter, os.ModePerm); err != nil {
|
| 647 |
+
return fmt.Errorf("write counter file %s: %w", destPath, err)
|
| 648 |
+
}
|
| 649 |
+
destPath = path.Join(classTempDir, sd.PropLengthTrackerPath)
|
| 650 |
+
if err := os.WriteFile(destPath, sd.PropLengthTracker, os.ModePerm); err != nil {
|
| 651 |
+
return fmt.Errorf("write prop file %s: %w", destPath, err)
|
| 652 |
+
}
|
| 653 |
+
destPath = path.Join(classTempDir, sd.ShardVersionPath)
|
| 654 |
+
if err := os.WriteFile(destPath, sd.Version, os.ModePerm); err != nil {
|
| 655 |
+
return fmt.Errorf("write version file %s: %w", destPath, err)
|
| 656 |
+
}
|
| 657 |
+
return nil
|
| 658 |
+
}
|
| 659 |
+
|
| 660 |
+
func chunkKey(class string, id int32) string {
|
| 661 |
+
return fmt.Sprintf("%s/chunk-%d", class, id)
|
| 662 |
+
}
|
| 663 |
+
|
| 664 |
+
func routinePoolSize(percentage int) int {
|
| 665 |
+
if percentage == 0 { // default value
|
| 666 |
+
percentage = DefaultCPUPercentage
|
| 667 |
+
} else if percentage > maxCPUPercentage {
|
| 668 |
+
percentage = maxCPUPercentage
|
| 669 |
+
}
|
| 670 |
+
if x := (_NUMCPU * percentage) / 100; x > 0 {
|
| 671 |
+
return x
|
| 672 |
+
}
|
| 673 |
+
return 1
|
| 674 |
+
}
|
| 675 |
+
|
| 676 |
+
// RestoreClassDir returns a func that restores classes on the filesystem directly from the temporary class backup stored on disk.
|
| 677 |
+
// This function is invoked by the Raft store when a restoration request is sent by the backup coordinator.
|
| 678 |
+
func RestoreClassDir(dataPath string) func(class string) error {
|
| 679 |
+
return func(class string) error {
|
| 680 |
+
classTempDir := filepath.Join(dataPath, TempDirectory, class)
|
| 681 |
+
// nothing to restore
|
| 682 |
+
if _, err := os.Stat(classTempDir); err != nil {
|
| 683 |
+
return nil
|
| 684 |
+
}
|
| 685 |
+
defer os.RemoveAll(classTempDir)
|
| 686 |
+
files, err := os.ReadDir(classTempDir)
|
| 687 |
+
if err != nil {
|
| 688 |
+
return fmt.Errorf("read %s", classTempDir)
|
| 689 |
+
}
|
| 690 |
+
destDir := dataPath
|
| 691 |
+
|
| 692 |
+
for _, key := range files {
|
| 693 |
+
from := path.Join(classTempDir, key.Name())
|
| 694 |
+
to := path.Join(destDir, key.Name())
|
| 695 |
+
if err := os.Rename(from, to); err != nil {
|
| 696 |
+
return fmt.Errorf("move %s %s: %w", from, to, err)
|
| 697 |
+
}
|
| 698 |
+
}
|
| 699 |
+
|
| 700 |
+
return nil
|
| 701 |
+
}
|
| 702 |
+
}
|
platform/dbops/binaries/weaviate-src/usecases/backup/backend_test.go
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
| 11 |
+
|
| 12 |
+
package backup
|
| 13 |
+
|
| 14 |
+
import (
|
| 15 |
+
"os"
|
| 16 |
+
"path/filepath"
|
| 17 |
+
"testing"
|
| 18 |
+
|
| 19 |
+
"github.com/sirupsen/logrus"
|
| 20 |
+
"github.com/stretchr/testify/assert"
|
| 21 |
+
"github.com/stretchr/testify/require"
|
| 22 |
+
|
| 23 |
+
"github.com/weaviate/weaviate/entities/backup"
|
| 24 |
+
"github.com/weaviate/weaviate/entities/modulecapabilities"
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
func TestCalculateShardPreCompressionSize(t *testing.T) {
|
| 28 |
+
// Create a temporary directory for test files
|
| 29 |
+
tempDir := t.TempDir()
|
| 30 |
+
|
| 31 |
+
// Create test files with known sizes
|
| 32 |
+
testFiles := []string{
|
| 33 |
+
"test1.db",
|
| 34 |
+
"test2.db",
|
| 35 |
+
"test3.db",
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
// Create files with specific content
|
| 39 |
+
fileSizes := make(map[string]int64)
|
| 40 |
+
for i, filename := range testFiles {
|
| 41 |
+
content := make([]byte, 100*(i+1)) // 100, 200, 300 bytes
|
| 42 |
+
filePath := filepath.Join(tempDir, filename)
|
| 43 |
+
err := os.WriteFile(filePath, content, 0o644)
|
| 44 |
+
require.NoError(t, err)
|
| 45 |
+
fileSizes[filename] = int64(len(content))
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
// Create a test shard descriptor
|
| 49 |
+
shard := &backup.ShardDescriptor{
|
| 50 |
+
Name: "test-shard",
|
| 51 |
+
Node: "test-node",
|
| 52 |
+
Files: testFiles,
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
// Create a mock backend with expectations
|
| 56 |
+
mockBackend := modulecapabilities.NewMockBackupBackend(t)
|
| 57 |
+
mockBackend.EXPECT().SourceDataPath().Return(tempDir)
|
| 58 |
+
|
| 59 |
+
// Create a mock uploader with the temp directory as source path
|
| 60 |
+
uploader := &uploader{
|
| 61 |
+
backend: nodeStore{
|
| 62 |
+
objectStore: objectStore{
|
| 63 |
+
backend: mockBackend,
|
| 64 |
+
},
|
| 65 |
+
},
|
| 66 |
+
log: logrus.New(),
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
// Calculate pre-compression size
|
| 70 |
+
preCompressionSize := uploader.calculateShardPreCompressionSize(shard)
|
| 71 |
+
|
| 72 |
+
assert.Equal(t, int64(100+200+300), preCompressionSize)
|
| 73 |
+
}
|
platform/dbops/binaries/weaviate-src/usecases/backup/backupper.go
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// _ _
|
| 2 |
+
// __ _____ __ ___ ___ __ _| |_ ___
|
| 3 |
+
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
|
| 4 |
+
// \ V V / __/ (_| |\ V /| | (_| | || __/
|
| 5 |
+
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
|
| 6 |
+
//
|
| 7 |
+
// Copyright © 2016 - 2025 Weaviate B.V. All rights reserved.
|
| 8 |
+
//
|
| 9 |
+
// CONTACT: hello@weaviate.io
|
| 10 |
+
//
|
| 11 |
+
|
| 12 |
+
package backup
|
| 13 |
+
|
| 14 |
+
import (
|
| 15 |
+
"context"
|
| 16 |
+
"errors"
|
| 17 |
+
"fmt"
|
| 18 |
+
"time"
|
| 19 |
+
|
| 20 |
+
"github.com/sirupsen/logrus"
|
| 21 |
+
|
| 22 |
+
"github.com/weaviate/weaviate/cluster/fsm"
|
| 23 |
+
"github.com/weaviate/weaviate/entities/backup"
|
| 24 |
+
enterrors "github.com/weaviate/weaviate/entities/errors"
|
| 25 |
+
"github.com/weaviate/weaviate/entities/models"
|
| 26 |
+
"github.com/weaviate/weaviate/usecases/config"
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
type backupper struct {
|
| 30 |
+
node string
|
| 31 |
+
logger logrus.FieldLogger
|
| 32 |
+
sourcer Sourcer
|
| 33 |
+
rbacSourcer fsm.Snapshotter
|
| 34 |
+
dynUserSourcer fsm.Snapshotter
|
| 35 |
+
backends BackupBackendProvider
|
| 36 |
+
// shardCoordinationChan is sync and coordinate operations
|
| 37 |
+
shardSyncChan
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
func newBackupper(node string, logger logrus.FieldLogger, sourcer Sourcer, rbacSourcer fsm.Snapshotter, dynUserSourcer fsm.Snapshotter, backends BackupBackendProvider,
|
| 41 |
+
) *backupper {
|
| 42 |
+
return &backupper{
|
| 43 |
+
node: node,
|
| 44 |
+
logger: logger,
|
| 45 |
+
sourcer: sourcer,
|
| 46 |
+
rbacSourcer: rbacSourcer,
|
| 47 |
+
dynUserSourcer: dynUserSourcer,
|
| 48 |
+
backends: backends,
|
| 49 |
+
shardSyncChan: shardSyncChan{coordChan: make(chan interface{}, 5)},
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
// Backup is called by the User
|
| 54 |
+
func (b *backupper) Backup(ctx context.Context,
|
| 55 |
+
store nodeStore, id string, classes []string, overrideBucket, overridePath string,
|
| 56 |
+
) (*backup.CreateMeta, error) {
|
| 57 |
+
// make sure there is no active backup
|
| 58 |
+
req := Request{
|
| 59 |
+
Method: OpCreate,
|
| 60 |
+
ID: id,
|
| 61 |
+
Classes: classes,
|
| 62 |
+
Bucket: overrideBucket,
|
| 63 |
+
Path: overridePath,
|
| 64 |
+
}
|
| 65 |
+
if _, err := b.backup(store, &req); err != nil {
|
| 66 |
+
return nil, backup.NewErrUnprocessable(err)
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
return &backup.CreateMeta{
|
| 70 |
+
Path: store.HomeDir(overrideBucket, overridePath),
|
| 71 |
+
Status: backup.Started,
|
| 72 |
+
}, nil
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
// Status returns status of a backup
|
| 76 |
+
// If the backup is still active the status is immediately returned
|
| 77 |
+
// If not it fetches the metadata file to get the status
|
| 78 |
+
func (b *backupper) Status(ctx context.Context, backend, bakID string,
|
| 79 |
+
) (*models.BackupCreateStatusResponse, error) {
|
| 80 |
+
st, err := b.OnStatus(ctx, &StatusRequest{OpCreate, bakID, backend, "", ""}) // retrieved from store
|
| 81 |
+
if err != nil {
|
| 82 |
+
if errors.Is(err, errMetaNotFound) {
|
| 83 |
+
err = backup.NewErrNotFound(err)
|
| 84 |
+
} else {
|
| 85 |
+
err = backup.NewErrUnprocessable(err)
|
| 86 |
+
}
|
| 87 |
+
return nil, err
|
| 88 |
+
}
|
| 89 |
+
// check if backup is still active
|
| 90 |
+
status := string(st.Status)
|
| 91 |
+
return &models.BackupCreateStatusResponse{
|
| 92 |
+
ID: bakID,
|
| 93 |
+
Path: st.Path,
|
| 94 |
+
Status: &status,
|
| 95 |
+
Backend: backend,
|
| 96 |
+
}, nil
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
func (b *backupper) OnStatus(ctx context.Context, req *StatusRequest) (reqState, error) {
|
| 100 |
+
// check if backup is still active
|
| 101 |
+
st := b.lastOp.get()
|
| 102 |
+
if st.ID == req.ID {
|
| 103 |
+
return st, nil // st contains path, which is the homedir, a combination of bucket and path
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
// The backup might have been already created.
|
| 107 |
+
store, err := nodeBackend(b.node, b.backends, req.Backend, req.ID, req.Bucket, req.Path)
|
| 108 |
+
if err != nil {
|
| 109 |
+
return reqState{}, fmt.Errorf("no backup provider %q, did you enable the right module?", req.Backend)
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
meta, err := store.Meta(ctx, req.ID, store.bucket, store.path, false)
|
| 113 |
+
if err != nil {
|
| 114 |
+
path := fmt.Sprintf("%s/%s", req.ID, BackupFile)
|
| 115 |
+
return reqState{}, fmt.Errorf("cannot get status while backing up: %w: %q: %w", errMetaNotFound, path, err)
|
| 116 |
+
}
|
| 117 |
+
if meta.Error != "" {
|
| 118 |
+
return reqState{}, errors.New(meta.Error)
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
return reqState{
|
| 122 |
+
Starttime: meta.StartedAt,
|
| 123 |
+
ID: req.ID,
|
| 124 |
+
Path: store.HomeDir(store.bucket, store.path),
|
| 125 |
+
Status: backup.Status(meta.Status),
|
| 126 |
+
}, nil
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
// backup checks if the node is ready to back up (can commit phase)
|
| 130 |
+
//
|
| 131 |
+
// Moreover it starts a goroutine in the background which waits for the
|
| 132 |
+
// next instruction from the coordinator (second phase).
|
| 133 |
+
// It will start the backup as soon as it receives an ack, or abort otherwise
|
| 134 |
+
func (b *backupper) backup(store nodeStore, req *Request) (CanCommitResponse, error) {
|
| 135 |
+
id := req.ID
|
| 136 |
+
expiration := req.Duration
|
| 137 |
+
if expiration > _TimeoutShardCommit {
|
| 138 |
+
expiration = _TimeoutShardCommit
|
| 139 |
+
}
|
| 140 |
+
ret := CanCommitResponse{
|
| 141 |
+
Method: OpCreate,
|
| 142 |
+
ID: req.ID,
|
| 143 |
+
Timeout: expiration,
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
// make sure there is no active backup
|
| 147 |
+
if prevID := b.lastOp.renew(id, store.HomeDir(req.Bucket, req.Path), req.Bucket, req.Path); prevID != "" {
|
| 148 |
+
return ret, fmt.Errorf("backup %s already in progress", prevID)
|
| 149 |
+
}
|
| 150 |
+
b.waitingForCoordinatorToCommit.Store(true) // is set to false by wait()
|
| 151 |
+
// waits for ack from coordinator in order to processed with the backup
|
| 152 |
+
f := func() {
|
| 153 |
+
defer b.lastOp.reset()
|
| 154 |
+
if err := b.waitForCoordinator(expiration, id); err != nil {
|
| 155 |
+
b.logger.WithField("action", "create_backup").
|
| 156 |
+
Error(err)
|
| 157 |
+
b.lastAsyncError = err
|
| 158 |
+
return
|
| 159 |
+
|
| 160 |
+
}
|
| 161 |
+
provider := newUploader(b.sourcer, b.rbacSourcer, b.dynUserSourcer, store, req.ID, b.lastOp.set, b.logger).
|
| 162 |
+
withCompression(newZipConfig(req.Compression))
|
| 163 |
+
|
| 164 |
+
result := backup.BackupDescriptor{
|
| 165 |
+
StartedAt: time.Now().UTC(),
|
| 166 |
+
ID: id,
|
| 167 |
+
Classes: make([]backup.ClassDescriptor, 0, len(req.Classes)),
|
| 168 |
+
Version: Version,
|
| 169 |
+
ServerVersion: config.ServerVersion,
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
// the coordinator might want to abort the backup
|
| 173 |
+
done := make(chan struct{})
|
| 174 |
+
ctx := b.withCancellation(context.Background(), id, done, b.logger)
|
| 175 |
+
defer close(done)
|
| 176 |
+
|
| 177 |
+
logFields := logrus.Fields{"action": "create_backup", "backup_id": req.ID, "override_bucket": req.Bucket, "override_path": req.Path}
|
| 178 |
+
if err := provider.all(ctx, req.Classes, &result, req.Bucket, req.Path); err != nil {
|
| 179 |
+
b.logger.WithFields(logFields).Error(err)
|
| 180 |
+
b.lastAsyncError = err
|
| 181 |
+
|
| 182 |
+
} else {
|
| 183 |
+
b.logger.WithFields(logFields).Info("backup completed successfully")
|
| 184 |
+
}
|
| 185 |
+
result.CompletedAt = time.Now().UTC()
|
| 186 |
+
}
|
| 187 |
+
enterrors.GoWrapper(f, b.logger)
|
| 188 |
+
|
| 189 |
+
return ret, nil
|
| 190 |
+
}
|