-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiffdash.example.yml
More file actions
77 lines (65 loc) · 2.39 KB
/
diffdash.example.yml
File metadata and controls
77 lines (65 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Example diffdash configuration file
# Copy this to diffdash.yml and customize for your project
#
# Configuration is loaded from the following sources in order of precedence:
# 1. Environment variables (highest priority)
# 2. Path specified via --config flag
# 3. diffdash.yml in current directory
# 4. diffdash.yml in git repository root
# 5. Default values (lowest priority)
#
# NOTE: API tokens should ONLY be set via environment variables for security.
# Grafana configuration
grafana:
# Grafana instance URL (also accepts DIFFDASH_GRAFANA_URL env var)
url: https://grafana.mycompany.com
# Grafana folder ID to store dashboards (also accepts DIFFDASH_GRAFANA_FOLDER_ID)
# Use `diffdash folders` to list available folders
folder_id: 42
# Output adapters to use (also accepts DIFFDASH_OUTPUTS env var as comma-separated list)
# Available: grafana, json
outputs:
- grafana
- json
# Default environment filter for Loki/Prometheus queries
# (also accepts DIFFDASH_DEFAULT_ENV env var)
default_env: production
# Whether to post dashboard link as a comment on the PR
# (also accepts DIFFDASH_PR_COMMENT env var)
pr_comment: true
# Application name for dashboard queries (also accepts DIFFDASH_APP_NAME env var)
# If not set, will be inferred from git remote URL
app_name: my-service
# Custom PromQL expression for PR deployment annotations
# (also accepts DIFFDASH_PR_DEPLOY_ANNOTATION_EXPR env var)
# pr_deploy_annotation_expr: changes(deploy_timestamp{branch="$branch"}[5m]) > 0
# File filtering configuration
# Paths to ignore when scanning for observability signals
ignore_paths:
- vendor/
- lib/legacy/
- tmp/
# Only scan files within these paths (empty = scan all paths)
# include_paths:
# - app/
# - lib/
# File suffixes to exclude (defaults to test files)
excluded_suffixes:
- _spec.rb
- _test.rb
# Directories to exclude (defaults to test and config directories)
excluded_directories:
- spec
- test
- config
# Signal filtering configuration
signals:
# How to handle interpolated logs like: logger.info("User #{id} created")
# Options:
# - include: Include in dashboards (default)
# - warn: Include, but show warning in CLI suggesting structured logging
# - exclude: Exclude from dashboards entirely
#
# Structured logs (e.g., logger.info("user_created")) are always included.
# Use `diffdash lint` to find interpolated logs in your codebase.
interpolated_logs: include