Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
8a7523df
Commit
8a7523df
authored
9 years ago
by
Fred Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2084 from edx/derf/elasticsearch_central_monitor
elasticsearch monitor role
parents
31159f15
feec79ae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
104 additions
and
0 deletions
+104
-0
playbooks/roles/elasticsearch-monitor/defaults/main.yml
+36
-0
playbooks/roles/elasticsearch-monitor/meta/main.yml
+16
-0
playbooks/roles/elasticsearch-monitor/tasks/main.yml
+51
-0
playbooks/roles/elasticsearch-monitor/templates/plugins/me.snov.newrelic-elasticsearch/newrelic-elasticsearch-plugin-1.4.1/config/plugin.json.j2
+1
-0
No files found.
playbooks/roles/elasticsearch-monitor/defaults/main.yml
0 → 100644
View file @
8a7523df
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Defaults for role elasticsearch-monitor
#
#
# vars are namespaced with the module name.
#
newrelic-npi-elasticsearch_role_name
:
newrelic-npi-elasticsearch
ELASTICSEARCH_MONITOR_PLUGIN
:
"
me.snov.newrelic-elasticsearch"
ELASTICSEARCH_MONITOR_HOSTS
:
-
name
:
"
elasticsearch"
host
:
"
localhost"
port
:
"
9200"
elasticsearch_monitor_plugin_config
:
agents
:
"
{{
ELASTICSEARCH_MONITOR_HOSTS
}}"
#
# OS packages
#
newrelic-npi-elasticsearch_debian_pkgs
:
[]
newrelic-npi-elasticsearch_redhat_pkgs
:
[]
This diff is collapsed.
Click to expand it.
playbooks/roles/elasticsearch-monitor/meta/main.yml
0 → 100644
View file @
8a7523df
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Role includes for role elasticsearch-monitor
#
# Example:
#
dependencies
:
-
role
:
newrelic-npi
This diff is collapsed.
Click to expand it.
playbooks/roles/elasticsearch-monitor/tasks/main.yml
0 → 100644
View file @
8a7523df
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role elasticsearch-monitor
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
#
-
name
:
download elasticsearch plugin
shell
:
>
./npi fetch {{ ELASTICSEARCH_MONITOR_PLUGIN }} -y
args
:
chdir
:
"
{{
NEWRELIC_NPI_PREFIX
}}"
creates
:
"
{{
NEWRELIC_NPI_PREFIX
}}/plugins/{{
ELASTICSEARCH_MONITOR_PLUGIN
}}.compressed"
sudo_user
:
"
{{
NEWRELIC_USER
}}"
-
name
:
prepare elasticsearch plugin
shell
:
>
./npi prepare {{ ELASTICSEARCH_MONITOR_PLUGIN }} -n
args
:
chdir
:
"
{{
NEWRELIC_NPI_PREFIX
}}"
sudo_user
:
"
{{
NEWRELIC_USER
}}"
-
name
:
configure elasticsearch plugin
template
:
>
src=plugins/me.snov.newrelic-elasticsearch/newrelic-elasticsearch-plugin-1.4.1/config/plugin.json.j2
dest={{ NEWRELIC_NPI_PREFIX }}/plugins/{{ ELASTICSEARCH_MONITOR_PLUGIN }}/newrelic-elasticsearch-plugin-1.4.1/config/plugin.json
owner={{ NEWRELIC_USER }}
mode=0644
-
name
:
register/start elasticsearch plugin
shell
:
>
./npi add-service {{ ELASTICSEARCH_MONITOR_PLUGIN }} --start --user={{ NEWRELIC_USER }}
args
:
chdir
:
"
{{
NEWRELIC_NPI_PREFIX
}}"
sudo_user
:
"
root"
This diff is collapsed.
Click to expand it.
playbooks/roles/elasticsearch-monitor/templates/plugins/me.snov.newrelic-elasticsearch/newrelic-elasticsearch-plugin-1.4.1/config/plugin.json.j2
0 → 100644
View file @
8a7523df
{{ elasticsearch_monitor_plugin_config | to_nice_json }}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment