dd
Some checks failed
ansible-lint / gitleaks (pull_request) Successful in 4s
ansible-lint / Ansible Lint (pull_request) Failing after 45s

This commit is contained in:
Michael Grote 2024-09-23 21:36:26 +02:00
parent 4019ec8ff4
commit c979bc1108
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# Configuration file version
apiVersion: 1
# Mark provisioned data sources for deletion if they are no longer in a provisioning file.
# It takes no effect if data sources are already listed in the deleteDatasources section.
prune: true
# List of data sources to insert/update depending on what's
# available in the database.
datasources:
# <string, required> Sets the name you use to refer to
# the data source in panels and queries.
- name: Loki
# <string, required> Sets the data source type.
type: loki
# <string, required> Sets the access mode, either
# proxy or direct (Server or Browser in the UI).
# Some data sources are incompatible with any setting
# but proxy (Server).
access: direct
# <int> Sets the organization id. Defaults to orgId 1.
orgId: 1
# <string> Sets the data source's URL, including the
# port.
url: http://loki:3100
# <int> Sets the version. Used to compare versions when
# updating. Ignored when creating a new data source.
version: 1
# <bool> Allows users to edit data sources from the
# Grafana UI.
editable: false

View file

@ -22,6 +22,7 @@ services:
env_file: grafana.env
volumes:
- grafana:/var/lib/grafana
- datasources.j2:/etc/grafana/provisioning/dashboards
ports:
- "3101:3000"
networks:
@ -41,3 +42,4 @@ volumes:
# TODO: http://vm-test-2204.mgrote.net:9080/targets + wenn firewall aus
# TODO: grafana dashboard und datasource als code? + https://grafana.com/docs/grafana/latest/administration/provisioning/#datasources
# TODO: URLS: http://docker10.mgrote.net:3101/explore?orgId=1&left=%7B%22datasource%22:%22U4h5CxgHz%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22U4h5CxgHz%22%7D%7D%5D,%22range%22:%7B%22from%22:%22now-1h%22,%22to%22:%22now%22%7D%7D + http://docker10.mgrote.net:3100/ready + http://vm-test-2204.mgrote.net:9080/config