deep_scrub_choked
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
apiVersion: 1
|
||||
|
||||
providers:
|
||||
- name: 'Ceph Dashboard'
|
||||
orgId: 1
|
||||
folder: 'ceph-dashboard'
|
||||
type: file
|
||||
disableDeletion: false
|
||||
updateIntervalSeconds: 3
|
||||
editable: false
|
||||
options:
|
||||
path: '{{ grafana_dashboards_path }}'
|
||||
@@ -0,0 +1,26 @@
|
||||
apiVersion: 1
|
||||
|
||||
# list of datasources that should be deleted from the database
|
||||
deleteDatasources:
|
||||
- name: '{{ grafana_datasource }}'
|
||||
orgId: 1
|
||||
|
||||
# list of datasources to insert/update depending
|
||||
# what's available in the database
|
||||
datasources:
|
||||
# <string, required> name of the datasource. Required
|
||||
- name: '{{ grafana_datasource }}'
|
||||
# <string, required> datasource type. Required
|
||||
type: 'prometheus'
|
||||
# <string, required> access mode. proxy or direct (Server or Browser in the UI). Required
|
||||
access: 'proxy'
|
||||
# <int> org id. will default to orgId 1 if not specified
|
||||
orgId: 1
|
||||
# <string> url
|
||||
url: 'http://{{ grafana_server_addr }}:{{ prometheus_port }}'
|
||||
# <bool> enable/disable basic auth
|
||||
basicAuth: false
|
||||
# <bool> mark as default datasource. Max one per org
|
||||
isDefault: true
|
||||
# <bool> allow users to edit datasources from the UI.
|
||||
editable: false
|
||||
@@ -0,0 +1,61 @@
|
||||
# This file is managed by ansible, don't make changes here - they will be
|
||||
# overwritten.
|
||||
[Unit]
|
||||
Description=grafana-server
|
||||
{% if container_binary == 'docker' %}
|
||||
After=docker.service network-online.target local-fs.target time-sync.target
|
||||
Requires=docker.service
|
||||
{% else %}
|
||||
After=network-online.target local-fs.target time-sync.target
|
||||
{% endif %}
|
||||
Wants=network-online.target local-fs.target time-sync.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/environment
|
||||
{% if container_binary == 'podman' %}
|
||||
ExecStartPre=-/usr/bin/rm -f /%t/%n-pid /%t/%n-cid
|
||||
ExecStartPre=-/usr/bin/{{ container_binary }} rm --storage grafana-server
|
||||
{% else %}
|
||||
ExecStartPre=-/usr/bin/{{ container_binary }} stop grafana-server
|
||||
{% endif %}
|
||||
ExecStartPre=-/usr/bin/{{ container_binary }} rm grafana-server
|
||||
ExecStart=/usr/bin/{{ container_binary }} run --rm --name=grafana-server \
|
||||
{% if container_binary == 'podman' %}
|
||||
-d --log-driver journald --conmon-pidfile /%t/%n-pid --cidfile /%t/%n-cid \
|
||||
{% endif %}
|
||||
--pids-limit={{ 0 if container_binary == 'podman' else -1 }} \
|
||||
-v /etc/grafana:/etc/grafana:Z \
|
||||
-v /var/lib/grafana:/var/lib/grafana:Z \
|
||||
--net=host \
|
||||
--cpu-period={{ grafana_container_cpu_period }} \
|
||||
--cpu-quota={{ grafana_container_cpu_period * grafana_container_cpu_cores }} \
|
||||
--memory={{ grafana_container_memory }}GB \
|
||||
--memory-swap={{ grafana_container_memory * 2 }}GB \
|
||||
-e GF_INSTALL_PLUGINS={{ grafana_plugins|join(',') }} \
|
||||
{% if ceph_docker_http_proxy is defined %}
|
||||
-e http_proxy={{ ceph_docker_http_proxy }} \
|
||||
{% endif %}
|
||||
{% if ceph_docker_https_proxy is defined %}
|
||||
-e https_proxy={{ ceph_docker_https_proxy }} \
|
||||
{% endif %}
|
||||
{% if ceph_docker_no_proxy is defined %}
|
||||
-e no_proxy={{ ceph_docker_no_proxy }} \
|
||||
{% endif %}
|
||||
{{ grafana_container_image }}
|
||||
{% if container_binary == 'podman' %}
|
||||
ExecStop=-/usr/bin/sh -c "/usr/bin/{{ container_binary }} rm -f `cat /%t/%n-cid`"
|
||||
{% else %}
|
||||
ExecStop=-/usr/bin/{{ container_binary }} stop grafana-server
|
||||
{% endif %}
|
||||
KillMode=none
|
||||
Restart=always
|
||||
RestartSec=10s
|
||||
TimeoutStartSec=120
|
||||
TimeoutStopSec=15
|
||||
{% if container_binary == 'podman' %}
|
||||
Type=forking
|
||||
PIDFile=/%t/%n-pid
|
||||
{% endif %}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,35 @@
|
||||
# [server]
|
||||
# root_url = %(protocol)s://%(domain)s:%(http_port)s/api/grafana/proxy
|
||||
|
||||
[users]
|
||||
default_theme = light
|
||||
|
||||
#################################### Anonymous Auth ##########################
|
||||
[auth.anonymous]
|
||||
# enable anonymous access
|
||||
enabled = true
|
||||
|
||||
# specify organization name that should be used for unauthenticated users
|
||||
org_name = Main Org.
|
||||
|
||||
# specify role for unauthenticated users
|
||||
org_role = Viewer
|
||||
|
||||
[server]
|
||||
cert_file = /etc/grafana/ceph-dashboard.crt
|
||||
cert_key = /etc/grafana/ceph-dashboard.key
|
||||
domain = {{ ansible_facts['fqdn'] }}
|
||||
protocol = {{ dashboard_protocol }}
|
||||
http_port = {{ grafana_port }}
|
||||
http_addr = {{ grafana_server_addr }}
|
||||
|
||||
[security]
|
||||
admin_user = {{ grafana_admin_user }}
|
||||
admin_password = {{ grafana_admin_password }}
|
||||
allow_embedding = {{ grafana_allow_embedding }}
|
||||
{% if dashboard_protocol == 'https' %}
|
||||
cookie_secure = true
|
||||
|
||||
[session]
|
||||
cookie_secure = true
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user