This file contains hidden or 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
| docker run -d \ | |
| --network=host \ | |
| -v ~/extra/grafana/data:/var/lib/grafana \ | |
| -v ~/extra/grafana/provisioning:/etc/grafana/provisioning \ | |
| --name grafana \ | |
| grafana/grafana:6.3.5 |
This file contains hidden or 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
| apiVersion: 1 | |
| datasources: | |
| - name: Prometheus | |
| type: prometheus | |
| access: proxy | |
| url: http://localhost:9090 |
This file contains hidden or 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
| docker run \ | |
| --network=host \ | |
| -v ~/extra/prom/data:/data \ | |
| -v ~/extra/prom/alertmanager.yaml:/config/alertmanager.yaml \ | |
| --name alertmanager \ | |
| --entrypoint=/bin/alertmanager \ | |
| "prom/prometheus:v2.12.0" --config.file=/config/alertmanager.yaml |
This file contains hidden or 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
| receivers: | |
| - name: alerts-email | |
| email_configs: | |
| - to: [email protected] | |
| from: [email protected] | |
| smarthost: smtp.gmail.com:587 | |
| auth_username: [email protected] | |
| auth_password: 12345678910 | |
| - name: alerts-pager | |
| opsgenie_configs: |
This file contains hidden or 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
| docker run -d \ | |
| --network=host \ | |
| -v ~/extra/prom/data:/data:rw \ | |
| -v ~/extra/prom/prometheus.yaml:/config/prometheus.yaml:ro \ | |
| -v ~/extra/prom/alerts.yaml:/config/alerts.yaml:ro \ | |
| --read-only \ | |
| --name prometheus \ | |
| "prom/prometheus:v2.12.0" --config.file=/config/prometheus.yaml --storage.tsdb.path=/data/metrics --storage.tsdb.retention=31d |
This file contains hidden or 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
| groups: | |
| - name: c-lightning.rules | |
| rules: | |
| - alert: c_lightning_node_down | |
| expr: lightning_node_info{job="lightningd"} == 0 | |
| for: 1m | |
| labels: | |
| team: c-lightning | |
| severity: urgent | |
| annotations: |
This file contains hidden or 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
| global: | |
| evaluation_interval: 15s | |
| scrape_interval: 15s | |
| rule_files: | |
| - /config/alerts.yaml | |
| alerting: | |
| alertmanagers: | |
| - scheme: http |
This file contains hidden or 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
| docker run -d \ | |
| --network=host \ | |
| --name=lightning \ | |
| -v ~/extra/lightning:/root/.lightning \ | |
| blockstream/lightningd:prom lightningd --conf=/root/.lightning/lightning.conf |
This file contains hidden or 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
| network=bitcoin | |
| bitcoin-rpcuser=plugin-user | |
| bitcoin-rpcpassword=plugin-pass | |
| plugin-dir=/usr/local/bin/plugins |
This file contains hidden or 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
| plugin.add_option( | |
| 'prometheus-listen', | |
| '0.0.0.0:9900' | |
| 'Address and port to bind to' | |
| ) |