This is my notes on setting up node metrics to prometheus from an Allstar HamVoip system. This is very much a work in progress and subject to change. I used to export the data as JSON and have telegraf import into influxdb. My new setup exports as prometheus compatible metrics and uses grafan-agent to push the metrics into prometheus. This allows one to utilize the free grafana cloud. I'm looking in the future to have a version that can automatically creates metrics for every
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
{ | |
"basics": { | |
"name": "John Hogenmiller", | |
"label": "Infrastructure Automation Engineer", | |
"email": "[email protected]", | |
"phone": "(814) 602-9298", | |
"summary": "Experienced infrastructure engineer with a strong background in building and maintaining large-scale hardware and software environments. Skilled in Kubernetes orchestration, automation, open source contributions, tooling development, and observability. I thrive in dynamic teams, enjoy tackling unique challenges, and continuously strive to learn and grow.", | |
"highlights": [ | |
"DevOps - keen understanding of operating systems, and the frameworks which drive consistent testable deployments (Ansible, Salt, Puppet).", | |
"Deep understanding, learned through micro-service development and deployment, of build pipeline implementation.", |
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
#!/opt/stackstorm/st2/bin/python | |
import pymongo | |
import mongoengine | |
from pymongo.errors import OperationFailure | |
from pymongo.errors import ConnectionFailure | |
from pymongo.errors import ServerSelectionTimeoutError | |
import logging | |
logger = logging.getLogger() | |
logger.setLevel(logging.DEBUG) |
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
info: Incoming message from SmartThings: smartthings/living room couch/button = pushed | |
info: Incoming message from SmartThings: smartthings/living room couch/button = pushed | |
info: Incoming message from SmartThings: smartthings/piano switch/button = pushed | |
info: Incoming message from SmartThings: smartthings/piano switch/button = pushed | |
info: Incoming message from SmartThings: smartthings/piano switch/button = pushed | |
info: Incoming message from SmartThings: smartthings/piano switch/button = double | |
info: Saving current state | |
info: Incoming message from SmartThings: smartthings/Lance room inside/temperature = 68 | |
info: Incoming message from SmartThings: smartthings/sink button 2/temperature = 68 | |
info: Incoming message from SmartThings: smartthings/sink button 2/temperature = 65 |
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
built from master commit | |
jh1:signal ytjohn$ ./signal-back-v0.1.6-3-g293bfee-dirty format -v -P pass -o backup.xml -v signal-2018-07-24-14-59-45.backup | |
2018/08/10 08:46:53 MMS export not yet supported | |
2018/08/10 08:46:53 Panicked: runtime error: slice bounds out of range | |
2018/08/10 08:46:53 [frame: starting at 63283993, size 0; 36689266 remaining in file] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
vault.barrier.* | |
name="vault_barrier" | |
method="$1" | |
vault.consul.* | |
name="vault_consul" | |
method="$1" | |
vault.route.*.* | |
name="vault_route" |
+-------------------+--------+-----------+-------------------------------+ | name | secret | encrypted | expire_timestamp | +-------------------+--------+-----------+-------------------------------+ | certainty.token | True | True | Thu, 05 Apr 2018 18:17:18 UTC | | certainty.url | False | False | | | network.password | True | True | Thu, 05 Apr 2018 18:17:18 UTC | | network.username | False | False | | | threaddb.password | True | True | Thu, 05 Apr 2018 18:17:19 UTC | | threaddb.token | True | True | Thu, 05 Apr 2018 18:17:20 UTC | | threaddb.url | False | False | |
NewerOlder