-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hive: metrics support with prometheus and grafana
- Loading branch information
1 parent
f0f6472
commit 7c3acf5
Showing
23 changed files
with
4,931 additions
and
18 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,3 +3,7 @@ roles: | |
build_targets: | ||
- mainnet | ||
- minimal | ||
metrics: | ||
port: 5054 | ||
labels: | ||
vendor: lighthouse |
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
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,14 @@ | ||
FROM grafana/grafana | ||
|
||
ADD annotate_metrics.sh /hive/annotate_metrics.sh | ||
|
||
# see https://grafana.com/tutorials/provision-dashboards-and-data-sources/ | ||
# for more information about grafana provisioning configuration | ||
|
||
ADD grafana.ini /etc/grafana/config.ini | ||
|
||
ADD dashboards_provider.yaml /etc/grafana/provisioning/dashboards/dashboards_provider.yaml | ||
ADD dashboards /hive/grafana-dashboards | ||
|
||
|
||
|
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 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# The annotation is passed as JSON encoded payload in the first shell argument, | ||
# and then passed on as body to the API POST request. | ||
# See https://grafana.com/docs/grafana/latest/developers/http_api/annotations/ | ||
wget --post-data="$1" --header "Content-Type: application/json" "http://127.0.0.1:3000/api/annotations" |
Oops, something went wrong.