Bug 1698870
Summary: | [RFE] Test sending metrics and logs to elasticsearch that is not based on OpenShift | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Shirly Radco <sradco> |
Component: | Documentation | Assignee: | Shirly Radco <sradco> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Guilherme Santos <gdeolive> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 4.3.9 | CC: | abpatil, bugs, bugzilla-qe-rhv, emarcus, gdeolive, gscott, lsurette, lsvaty, mkalinin, pelauter, rdlugyhe, srevivo, tburke |
Target Milestone: | ovirt-4.3.11 | Keywords: | Documentation, FutureFeature, Reopened, RFE, ZStream |
Target Release: | --- | Flags: | lsvaty:
testing_plan_complete-
|
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: |
The Red Hat knowledge base article, "Monitoring RHV with a standalone Elasticsearch instance," has been updated, and is available at https://access.redhat.com/articles/4921101
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-10-01 10:02:09 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Metrics | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1709705 |
Description
Shirly Radco
2019-04-11 12:04:31 UTC
Additional variables that needs to be set in the config.yml file: Set if no certificates required: use_omelasticsearch_cert: false If not using https add the also following: rsyslog_elasticsearch_usehttps_metrics: off rsyslog_elasticsearch_usehttps_logs: off If certificate are required user will need to specify their location, Default locations: # Where to find the CA certificate used to communicate with Elasticsearch rsyslog_elasticsearch_ca_cert_path: '/etc/rsyslog.d/elasticsearch_ca_cert.pem' # Where to find the client certificate used to communicate with Elasticsearch rsyslog_elasticsearch_client_cert_path: '/etc/rsyslog.d/elasticsearch_client_cert.pem' # Where to find the client certificate used to communicate with Elasticsearch rsyslog_elasticsearch_client_key_path: '/etc/rsyslog.d/elasticsearch_client_key.pem' *** Bug 1693744 has been marked as a duplicate of this bug. *** Update to step 2 in comment #1 The dynamic index templates names should be: project.ovirt-metrics-<ovirt_env_name> project.ovirt-logs-<ovirt_env_name> Yes, we do need to support customers who have existing ELK stacks for logging and metrics. We'll come up with a tighter set of requirements for what we want to support, and a reasonable set to test against to limit the infinite field. Let's re-open this, and track as an RFE to deliver this feature. I was able to test it following the steps: 1. Installed ElasticSearch 5.6.16 in a fresh vm following: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/_installation.html 2. On ES machine append the following "network.host: 0.0.0.0" on /etc/elasticsearch/elasticsearch.yml # cat "network.host: 0.0.0.0" >> /etc/elasticsearch/elasticsearch.yml 3. Followed this bz description and comment #1 for metrics side 4. After deploying rsyslog and collectd, I manually edit /etc/rsyslog.d/30-elasticsearch.conf following varialbes: # usehttps="off" (it was "on") # allowUnsignedCerts="off" (deleted this line) Results: Data was being pushed to ES instance outside ocp env Hi Guilherme, sharing a draft of the KB article with you, please let me know if this provides the procedure that is needed: https://docs.google.com/document/d/1pEZCIVud4a8F_qiJb17qWvQqzH-rVkWZiMYOeLdNxOo/edit?usp=sharing It looks good to me Eli! It does provide the steps needed. I just want to complement my comment #9 about the installation of Elastic Search. The tar installation method, presented in the tutorial link, may have some issues depending of the environment. A better approach is to use either the repositories or rpm here: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/rpm.html#rpm-repo Also there is a typo on step 2, the cmd should be: # cat "network.host: 0.0.0.0" >> /etc/elasticsearch/elasticsearch.yml (In reply to Guilherme Santos from comment #14) > I just want to complement my comment #9 about the installation of Elastic > Search. > The tar installation method, presented in the tutorial link, may have some > issues depending of the environment. A better approach is to use either the > repositories or rpm here: > https://www.elastic.co/guide/en/elasticsearch/reference/5.6/rpm.html#rpm-repo > > Also there is a typo on step 2, the cmd should be: > # cat "network.host: 0.0.0.0" >> /etc/elasticsearch/elasticsearch.yml Typo again: # echo "network.host: 0.0.0.0" >> /etc/elasticsearch/elasticsearch.yml |