-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add packages for Prometheus metrics (#3)
* Add packages for prometheus and node-exporter * Update `CHANGELOG.md` * Add missing volume spec for the prometheus service * Try to fix prometheus reverse-proxying * Fix issues with prometheus deployment * Add package for grafana * Fix syntax error in grafana package definition * Fix anonymous grana login * Expose prometheus server on host port 9090 * Try to fix host port conflict between prometheus and cockpit * Try again to fix prometheus deployment problems * Don't expose prometheus on host port, since reverse-proxying works for grafana * Try to support prometheus docker service discovery * Try fixing prometheus access to docker socket * Set up prometheus service discovery with docker labels * Fix prometheus scrape intervals * Remove TODO notes for links to add to device-portal * Fix scrape timeout for node-exporter * Provide prometheus config as part of the forklift package * Suppress unnamed volumes from filebrowser instances * Suppress unnamed volumes from the mosquitto instance * Change underscores to hyphens in Docker volume names * Try to make grafana automatically provision the prometheus datasource * Try to make grafana automatically provision the host summary dashboard * Bump device-portal to add links to prometheus & grafana * Upgrade container images to their latest versions * Troubleshoot incorrect scrape intervals * Fix grafana dashboard behavior when system time is incorrect, remove CPU usage gauge
- Loading branch information
Showing
28 changed files
with
2,719 additions
and
29 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
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,17 @@ | ||
services: | ||
server: | ||
networks: | ||
- caddy-ingress | ||
environment: | ||
- GF_SERVER_ROOT_URL=/admin/grafana | ||
- GF_SERVER_SERVE_FROM_SUB_PATH=true | ||
- GF_SECURITY_ALLOW_EMBEDDING=true | ||
labels: | ||
caddy: :80 | ||
caddy.redir: /admin/grafana /admin/grafana/ | ||
caddy.handle: /admin/grafana/* | ||
caddy.handle.reverse_proxy: "{{upstreams 3000}}" | ||
|
||
networks: | ||
caddy-ingress: | ||
external: true |
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 @@ | ||
services: | ||
server: | ||
environment: | ||
- GF_AUTH_DISABLE_LOGIN_FORM=true | ||
- GF_AUTH_ANONYMOUS_ENABLED=true | ||
# `Main Org.` is the default organization, needed for anonymous login: | ||
- GF_AUTH_ANONYMOUS_ORG_NAME=Main Org. | ||
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin | ||
- GF_AUTH_BASIC=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
services: | ||
server: | ||
image: grafana/grafana-oss:10.1.6 | ||
volumes: | ||
- server-data:/var/lib/grafana | ||
- ./provisioning:/provisioning | ||
- ./dashboards:/provisioned-dashboards | ||
extra_hosts: | ||
- host.docker.internal:host-gateway | ||
environment: | ||
- GF_PATHS_PROVISIONING=/provisioning | ||
- GF_SECURITY_ANGULAR_SUPPORT_ENABLED=false | ||
|
||
networks: | ||
default: | ||
name: none | ||
external: true | ||
|
||
volumes: | ||
server-data: {} |
Oops, something went wrong.