Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
6ea8390a
Commit
6ea8390a
authored
3 years ago
by
Zuul
Committed by
Gerrit Code Review
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Extend support for custom Grafana dashboards"
parents
2ecf0a87
d01192c1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/grafana/tasks/config.yml
+2
-18
2 additions, 18 deletions
ansible/roles/grafana/tasks/config.yml
doc/source/reference/logging-and-monitoring/grafana-guide.rst
+5
-3
5 additions, 3 deletions
...source/reference/logging-and-monitoring/grafana-guide.rst
with
7 additions
and
21 deletions
ansible/roles/grafana/tasks/config.yml
+
2
−
18
View file @
6ea8390a
...
@@ -139,26 +139,12 @@
...
@@ -139,26 +139,12 @@
-
inventory_hostname in groups[service.group]
-
inventory_hostname in groups[service.group]
-
service.enabled | bool
-
service.enabled | bool
-
name
:
Create custom Grafana dashboards folder
become
:
true
vars
:
service
:
"
{{
grafana_services['grafana']
}}"
file
:
dest
:
"
{{
node_config_directory
}}/grafana/dashboards/"
state
:
"
directory"
mode
:
"
0770"
when
:
-
grafana_custom_dashboards_folder.stat.exists
-
grafana_custom_dashboards_folder.stat.isdir
-
inventory_hostname in groups[service.group]
-
service.enabled | bool
-
name
:
Copying over custom dashboards
-
name
:
Copying over custom dashboards
vars
:
vars
:
service
:
"
{{
grafana_services['grafana']
}}"
service
:
"
{{
grafana_services['grafana']
}}"
copy
:
copy
:
src
:
"
{{
item
}}
"
src
:
"
{{
node_custom_config
}}/grafana/dashboards
"
dest
:
"
{{
node_config_directory
}}/grafana/
dashboards/
"
dest
:
"
{{
node_config_directory
}}/grafana/"
mode
:
"
0660"
mode
:
"
0660"
become
:
true
become
:
true
when
:
when
:
...
@@ -166,7 +152,5 @@
...
@@ -166,7 +152,5 @@
-
grafana_custom_dashboards_folder.stat.isdir
-
grafana_custom_dashboards_folder.stat.isdir
-
inventory_hostname in groups[service.group]
-
inventory_hostname in groups[service.group]
-
service.enabled | bool
-
service.enabled | bool
with_fileglob
:
-
"
{{
node_custom_config
}}/grafana/dashboards/*.json"
notify
:
notify
:
-
Restart grafana container
-
Restart grafana container
This diff is collapsed.
Click to expand it.
doc/source/reference/logging-and-monitoring/grafana-guide.rst
+
5
−
3
View file @
6ea8390a
...
@@ -35,9 +35,11 @@ Custom dashboards provisioning
...
@@ -35,9 +35,11 @@ Custom dashboards provisioning
Kolla Ansible sets custom dashboards provisioning using `Dashboard provider <https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards>`_.
Kolla Ansible sets custom dashboards provisioning using `Dashboard provider <https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards>`_.
Dashboard's JSON files should be placed into
Dashboard JSON files should be placed into the
``{{ node_custom_config }}/grafana/dashboards/`` folder.
``{{ node_custom_config }}/grafana/dashboards/`` folder. The use of
Dashboards will be imported to Grafana dashboards General Folder.
sub-folders is also supported when using a custom ``provisioning.yaml``
file. Dashboards will be imported into the Grafana dashboards 'General'
folder by default.
Grafana provisioner config can be altered by placing ``provisioning.yaml`` to
Grafana provisioner config can be altered by placing ``provisioning.yaml`` to
``{{ node_custom_config }}/grafana/`` folder.
``{{ node_custom_config }}/grafana/`` folder.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment