feat: Replace prometheus with metricbeat by extending the elastic_stack role #628
feat: Replace prometheus with metricbeat by extending the elastic_stack role #628vivekgsharma wants to merge 9 commits intov1.0-devfrom
Conversation
| @@ -0,0 +1,18 @@ | |||
| --- | |||
There was a problem hiding this comment.
Don't we have already metric beats in #617. How do you replace Prometheus here?
There was a problem hiding this comment.
Prometheus is used for data collection in the Tenderdash nodes as indicated by the configuration in the ansible/roles/metrics/templates/prometheus.yml.j2 file
To replace Prometheus with Metricbeat for collecting data from the Prometheus exporters, the Metricbeat role has been introduced with a configuration to scrape metrics from Prometheus endpoints. (ansible/roles/metricbeat/templates/metricbeat.yml.j2)
This new metricbeat role will be applied on the same logs instances where elastic_stack is being applied.
There was a problem hiding this comment.
We already have metric beats on the nodes where we are running tenderdash. Why not just configure them to collect data from tenderdash and send to elastic?
bf5651e to
3574d36
Compare
| to: "log.level" | ||
|
|
||
| metricbeat_modules: | ||
| - module: prometheus |
There was a problem hiding this comment.
Must be defined in configuration
|
|
||
| - name: Upload and apply Tenderdash log parsing pipeline | ||
| ansible.builtin.uri: | ||
| url: "{{ elasticsearch_url }}/logstash/_pipeline/process_proposal_pipeline" |
| metricbeat_modules: | ||
| - module: prometheus | ||
| period: 10s | ||
| hosts: ["localhost:{{ prometheus_port }}"] |
Issue being fixed or feature implemented
The metricbeat role has been added to replace Prometheus for data collection.
What was done?
The existing elastic_stack role has been extended by a new role named metricbeat to replace Prometheus by metricbeat for data collection
How Has This Been Tested?
Breaking Changes
This is an addition
Checklist: