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
feec79ae
Commit
feec79ae
authored
Jun 09, 2015
by
Fred Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
elasticsearch monitor role
parent
31159f15
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 @
feec79ae
---
#
# 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
:
[]
playbooks/roles/elasticsearch-monitor/meta/main.yml
0 → 100644
View file @
feec79ae
---
#
# 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
playbooks/roles/elasticsearch-monitor/tasks/main.yml
0 → 100644
View file @
feec79ae
---
#
# 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"
playbooks/roles/elasticsearch-monitor/templates/plugins/me.snov.newrelic-elasticsearch/newrelic-elasticsearch-plugin-1.4.1/config/plugin.json.j2
0 → 100644
View file @
feec79ae
{{ elasticsearch_monitor_plugin_config | to_nice_json }}
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