forked from mrckndt/CS-Repro-Mattermost
working repro, still building
This commit is contained in:
BIN
files/.DS_Store
vendored
Normal file
BIN
files/.DS_Store
vendored
Normal file
Binary file not shown.
3
files/README.md
Normal file
3
files/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# AdvancedLogging.json
|
||||
|
||||
This is a json example to build the advanced logs for Mattermost. This will include the `stdout` files generated by ldap / sql trace. To use this format to a string and set `LogSettings.AdvancedLogging` or format to a string and use the environment variable `MM_LOGSETTINGS_ADVANCEDLOGGING`.
|
||||
40
files/advancedLogging.json
Normal file
40
files/advancedLogging.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"console-log": {
|
||||
"Type": "console",
|
||||
"Format": "json",
|
||||
"Levels": [
|
||||
{"ID": 10, "Name": "stdlog", "Stacktrace": false},
|
||||
{"ID": 5, "Name": "debug", "Stacktrace": false},
|
||||
{"ID": 4, "Name": "info", "Stacktrace": false, "color": 36},
|
||||
{"ID": 3, "Name": "warn", "Stacktrace": false, "color": 33},
|
||||
{"ID": 2, "Name": "error", "Stacktrace": true, "color": 31},
|
||||
{"ID": 1, "Name": "fatal", "Stacktrace": true},
|
||||
{"ID": 0, "Name": "panic", "Stacktrace": true}
|
||||
],
|
||||
"Options": {
|
||||
"Out": "stdout"
|
||||
},
|
||||
"MaxQueueSize": 1000
|
||||
},
|
||||
"file-log": {
|
||||
"Type": "file",
|
||||
"Format": "json",
|
||||
"Levels": [
|
||||
{"ID": 10, "Name": "stdlog", "Stacktrace": false},
|
||||
{"ID": 5, "Name": "debug", "Stacktrace": false},
|
||||
{"ID": 4, "Name": "info", "Stacktrace": false},
|
||||
{"ID": 3, "Name": "warn", "Stacktrace": false},
|
||||
{"ID": 2, "Name": "error", "Stacktrace": true},
|
||||
{"ID": 1, "Name": "fatal", "Stacktrace": true},
|
||||
{"ID": 0, "Name": "panic", "Stacktrace": true}
|
||||
],
|
||||
"Options": {
|
||||
"Compress": true,
|
||||
"Filename": "traceLogs.json",
|
||||
"MaxAgeDays": 15,
|
||||
"MaxBackups": 3,
|
||||
"MaxSizeMB": 100
|
||||
},
|
||||
"MaxQueueSize": 1000
|
||||
}
|
||||
}
|
||||
BIN
files/grafana/.DS_Store
vendored
Normal file
BIN
files/grafana/.DS_Store
vendored
Normal file
Binary file not shown.
1807
files/grafana/dashboards/bonusMetrics.json
Normal file
1807
files/grafana/dashboards/bonusMetrics.json
Normal file
File diff suppressed because it is too large
Load Diff
1289
files/grafana/dashboards/kpiMetrics.json
Normal file
1289
files/grafana/dashboards/kpiMetrics.json
Normal file
File diff suppressed because it is too large
Load Diff
2263
files/grafana/dashboards/metricsv2.json
Normal file
2263
files/grafana/dashboards/metricsv2.json
Normal file
File diff suppressed because it is too large
Load Diff
24
files/grafana/provisioning/dashboards/automatic.yml
Normal file
24
files/grafana/provisioning/dashboards/automatic.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
# <string> an unique provider name. Required
|
||||
- name: 'a unique provider name'
|
||||
# <int> Org id. Default to 1
|
||||
orgId: 1
|
||||
# <string> name of the dashboard folder.
|
||||
folder: ''
|
||||
# <string> folder UID. will be automatically generated if not specified
|
||||
folderUid: ''
|
||||
# <string> provider type. Default to 'file'
|
||||
type: file
|
||||
# <bool> disable dashboard deletion
|
||||
disableDeletion: false
|
||||
# <int> how often Grafana will scan for changed dashboards
|
||||
updateIntervalSeconds: 10
|
||||
# <bool> allow updating provisioned dashboards from the UI
|
||||
allowUiUpdates: false
|
||||
options:
|
||||
# <string, required> path to dashboard files on disk. Required when using the 'file' type
|
||||
path: /var/lib/grafana/dashboards
|
||||
# <bool> use folder names from filesystem to create folders in Grafana
|
||||
foldersFromFilesStructure: true
|
||||
17
files/grafana/provisioning/datasources/automatic.yml
Normal file
17
files/grafana/provisioning/datasources/automatic.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: mattermost
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: http://prometheus:9090
|
||||
password:
|
||||
user:
|
||||
database:
|
||||
isDefault: true
|
||||
jsonData:
|
||||
tlsAuth: false
|
||||
tlsAuthWithCACert: false
|
||||
httpMethod: "POST"
|
||||
version: 1
|
||||
editable: true
|
||||
30
files/prometheus.yml
Normal file
30
files/prometheus.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
# my global config
|
||||
global:
|
||||
scrape_interval: 5s # By default, scrape targets every 15 seconds.
|
||||
evaluation_interval: 5s # By default, scrape targets every 15 seconds.
|
||||
# scrape_timeout is set to the global default (10s).
|
||||
|
||||
# Attach these labels to any time series or alerts when communicating with
|
||||
# external systems (federation, remote storage, Alertmanager).
|
||||
external_labels:
|
||||
monitor: 'mattermost-monitor'
|
||||
|
||||
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
||||
rule_files:
|
||||
# - "first.rules"
|
||||
# - "second.rules"
|
||||
|
||||
# A scrape configuration containing exactly one endpoint to scrape:
|
||||
# Here it's Prometheus itself.
|
||||
scrape_configs:
|
||||
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
||||
- job_name: 'prometheus'
|
||||
|
||||
# Override the global default and scrape targets from this job every five seconds.
|
||||
# scrape_interval: 5s
|
||||
|
||||
# metrics_path defaults to '/metrics'
|
||||
# scheme defaults to 'http'.
|
||||
|
||||
static_configs:
|
||||
- targets: ["mattermost:8067"]
|
||||
1
files/public.crt
Normal file
1
files/public.crt
Normal file
@@ -0,0 +1 @@
|
||||
MIICozCCAYsCBgGDhvaKdjANBgkqhkiG9w0BAQsFADAVMRMwEQYDVQQDDAptYXR0ZXJtb3N0MB4XDTIyMDkyOTAxNTU0N1oXDTMyMDkyOTAxNTcyN1owFTETMBEGA1UEAwwKbWF0dGVybW9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAIhzTzXqXGG9rQbCHVZBJlZsruk+lRSp7dBItPl1Dr0DctaIWc1DXKQMQKLthGyE9RLlW4SyjH08qCo1oqACG4Lg8A1OER/9Gt263/Yim0IBTldzK27g9Xkp8MK6WUGMP4eweuNbu1UhuXy7+cb50dPD8/v0h4+ys1LGHZ0b/maNGN2ehz9nhnmpqrfCc9KDpljuib7AEa5cdscof6YAFQj8pYDidmS3AVE8tGpksuOUQl8FjKVPnmAJbkcQqymVVEMvcRa+O/1qqrSOunrYZsAlQmD74y6UA0kbstSu/K5PFgNGzmmDw/A/u11cPxzh5A7yOCJ3Q9JZBu/882dw/AUCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEANoRIrWqaC6iD/t78S98Rl1VVF86e3Ef2v/bmF3KNFi/twSzFaSuqLSVl9SkWoas8uKWX6AmtBOm9MCPIF7q+d+yAIQkt2UxtuFEsd61Z9Couc4p/rxJGbVGBRqeeTWm8GRUrASaj/JqbZVPM1QtOKpmlCP+5fEq7e/npO0Blfje5pWkAGkA4WhXxYpYVe+cCyXvpcckJLzGCxbGg2iFeD4nmPIO1Drsme35tgwt3gPZhY2DqUTaP/CsauxGi5xv840871kz6mOu75qw4Qpo0MBlSZR2f8IFaHyzZpFyu0p83ZKK3/XTPmuvFfJh59640axZBT6pXWoNp/JyD4KnZSg==
|
||||
Reference in New Issue
Block a user