This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scrape_configs: | |
- job_name: system | |
pipeline_stages: | |
static_configs: | |
- targets: | |
- localhost | |
labels: | |
job: varlogs | |
host: ward_workstation | |
agent: promtail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
@type tail | |
format none | |
path /var/log/*.log | |
pos_file positions.pos | |
tag varlog.* | |
path_key filename | |
</source> | |
<match varlog.**> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INPUT] | |
Name tail | |
Path /var/log/*.log | |
Path_Key filename | |
[Output] | |
Name loki | |
Match * | |
Url http://localhost:3100/loki/api/v1/push | |
BatchWait 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usage of ./promtail-darwin-amd64: | |
-config.file string: | |
yaml file to load | |
-log.level value: | |
Only log messages with the given severity or above. Valid levels: [debug, info, warn, error] (default info) | |
-target.sync-period duration: | |
Period to resync directories being watched and files being tailed. (default 10s) | |
-version: | |
Print this builds version information (default false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loki: | |
servicePort: 443 | |
serviceScheme: https | |
serviceName: your_cluster.grafana.net | |
user: your_user_id | |
password: your_api_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
serverFiles: | |
prometheus.yml: | |
remote_write: | |
- | |
basic_auth: | |
password: your_api_key | |
username: your_username | |
url: "https://your_cluster.grafana.net/api/prom/push" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To troubleshoot and get more log info enable ldap debug logging in grafana.ini | |
# [log] | |
# filters = ldap:debug | |
[[servers]] | |
# Ldap server host (specify multiple hosts space separated) | |
host = "ldap.forumsys.com" | |
# Default port is 389 or 636 if use_ssl = true | |
port = 389 | |
# Set to true if ldap server supports TLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dashboard" : { | |
"annotations": { | |
"list": [ | |
{ | |
"datasource": "Loki", | |
"enable": true, | |
"expr": "{service=~\"[[service]]\"} Error", | |
"hide": false, | |
"iconColor": "rgba(255, 96, 96, 1)", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loki: | |
config: | |
auth_enabled: false | |
ingester: | |
lifecycler: | |
address: 127.0.0.1 | |
ring: | |
kvstore: | |
store: inmemory | |
replication_factor: 1 |
NewerOlder