-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b99f996
commit 782d595
Showing
16 changed files
with
207 additions
and
7 deletions.
There are no files selected for viewing
Binary file added
BIN
+458 KB
...r/prometheus/prometheus_exporters/node_exporter_with_ipmitool_text_plugin_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+220 KB
...tor/prometheus/prometheus_exporters/node_exporter_with_smartmon_text_plugin.png
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
form flask import FLASK | ||
|
||
@app.route('/login', methods=['GET', 'POST']) | ||
def login(): | ||
if request.method == 'POST': | ||
return do_the_login() | ||
else: | ||
return show_the_login_form() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
form flask import FLASK | ||
|
||
@app.get('/login') | ||
def login_get(): | ||
return show_the_login_form() | ||
|
||
@app.post('/login') | ||
def login_post(): | ||
return do_the_login() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from flask import url_for | ||
|
||
@app.route('/') | ||
def index(): | ||
return 'index' | ||
|
||
@app.route('/login') | ||
def login(): | ||
return 'login' | ||
|
||
@app.route('/usr/<username>') | ||
def profile(username): | ||
return f'{username}\'s profile' | ||
|
||
with app.test_request_context(): | ||
print(url_for('index')) | ||
print(url_for('login')) | ||
print(url_for('login', netx='/')) | ||
print(url_for('profile', username-='John Doe')) |
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
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
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
2 changes: 2 additions & 0 deletions
2
...r/prometheus/prometheus_exporters/node_exporter_textfile-collector/textfile_collector_dir
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sudo mkdir -p /var/lib/node_exporter/textfile_collector | ||
sudo chomd 777 /var/lib/node_exporter/textfile_collector |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[Sun Aug 6 11:05:54 2023] ata5.00: exception Emask 0x0 SAct 0x80080000 SErr 0x0 action 0x6 frozen | ||
[Sun Aug 6 11:05:54 2023] ata5.00: failed command: READ FPDMA QUEUED | ||
[Sun Aug 6 11:05:54 2023] ata5.00: cmd 60/08:98:98:20:9c/00:00:02:00:00/40 tag 19 ncq dma 4096 in | ||
res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout) | ||
[Sun Aug 6 11:05:54 2023] ata5.00: status: { DRDY } | ||
[Sun Aug 6 11:05:54 2023] ata5.00: failed command: READ FPDMA QUEUED | ||
[Sun Aug 6 11:05:54 2023] ata5.00: cmd 60/08:f8:e8:e4:8c/00:00:00:00:00/40 tag 31 ncq dma 4096 in | ||
res 40/00:01:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout) | ||
[Sun Aug 6 11:05:54 2023] ata5.00: status: { DRDY } | ||
[Sun Aug 6 11:05:54 2023] ata5: hard resetting link | ||
[Sun Aug 6 11:05:54 2023] ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300) | ||
[Sun Aug 6 11:05:54 2023] ata5.00: configured for UDMA/133 | ||
[Sun Aug 6 11:05:54 2023] sd 4:0:0:0: [sdb] tag#31 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=30s | ||
[Sun Aug 6 11:05:54 2023] sd 4:0:0:0: [sdb] tag#31 Sense Key : Illegal Request [current] | ||
[Sun Aug 6 11:05:54 2023] sd 4:0:0:0: [sdb] tag#31 Add. Sense: Unaligned write command | ||
[Sun Aug 6 11:05:54 2023] sd 4:0:0:0: [sdb] tag#31 CDB: Read(10) 28 00 00 8c e4 e8 00 00 08 00 | ||
[Sun Aug 6 11:05:54 2023] blk_update_request: I/O error, dev sdb, sector 9233640 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 | ||
[Sun Aug 6 11:05:54 2023] ata5: EH complete | ||
[Sun Aug 6 11:05:54 2023] ata5.00: Enabling discard_zeroes_data | ||
[Sun Aug 6 11:06:24 2023] ata5.00: exception Emask 0x0 SAct 0x1000000 SErr 0x0 action 0x6 frozen | ||
[Sun Aug 6 11:06:24 2023] ata5.00: failed command: READ FPDMA QUEUED | ||
[Sun Aug 6 11:06:24 2023] ata5.00: cmd 60/08:c0:70:1f:ce/00:00:00:00:00/40 tag 24 ncq dma 4096 in | ||
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) | ||
[Sun Aug 6 11:06:24 2023] ata5.00: status: { DRDY } | ||
[Sun Aug 6 11:06:24 2023] ata5: hard resetting link | ||
[Sun Aug 6 11:06:24 2023] ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300) | ||
[Sun Aug 6 11:06:24 2023] ata5.00: configured for UDMA/133 | ||
[Sun Aug 6 11:06:24 2023] ata5.00: device reported invalid CHS sector 0 | ||
[Sun Aug 6 11:06:24 2023] sd 4:0:0:0: [sdb] tag#24 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=30s | ||
[Sun Aug 6 11:06:24 2023] sd 4:0:0:0: [sdb] tag#24 Sense Key : Illegal Request [current] | ||
[Sun Aug 6 11:06:24 2023] sd 4:0:0:0: [sdb] tag#24 Add. Sense: Unaligned write command | ||
[Sun Aug 6 11:06:24 2023] sd 4:0:0:0: [sdb] tag#24 CDB: Read(10) 28 00 00 ce 1f 70 00 00 08 00 | ||
[Sun Aug 6 11:06:24 2023] blk_update_request: I/O error, dev sdb, sector 13508464 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 | ||
[Sun Aug 6 11:06:24 2023] ata5: EH complete | ||
[Sun Aug 6 11:06:24 2023] ata5.00: Enabling discard_zeroes_data |
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
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