Initial commit: add .gitignore and README
This commit is contained in:
11
metricbeat/Dockerfile
Normal file
11
metricbeat/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM docker.elastic.co/beats/metricbeat:7.14.1
|
||||
ENV IP_ADDRESS "127.0.0.1"
|
||||
ENV REDIS_HOST localhost
|
||||
ENV REDIS_PORT 6379
|
||||
|
||||
USER root
|
||||
ADD ./metricbeat.yml /usr/share/metricbeat/metricbeat.yml
|
||||
RUN chown root:metricbeat /usr/share/metricbeat/metricbeat.yml && chmod go-w /usr/share/metricbeat/metricbeat.yml
|
||||
USER metricbeat
|
||||
|
||||
CMD ["metricbeat", "-c", "metricbeat.yml"]
|
||||
31
metricbeat/metricbeat.yml
Normal file
31
metricbeat/metricbeat.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
metricbeat.modules:
|
||||
- module: prometheus
|
||||
period: 15s
|
||||
hosts:
|
||||
- validator1:9545
|
||||
- validator2:9545
|
||||
- validator3:9545
|
||||
- validator4:9545
|
||||
- rpcnode:9545
|
||||
- member1besu:9545
|
||||
- member2besu:9545
|
||||
- member3besu:9545
|
||||
metrics_path: /metrics
|
||||
|
||||
output.redis:
|
||||
enabled: true
|
||||
hosts: ["${REDIS_HOST}:${REDIS_PORT}"]
|
||||
key: metricbeat
|
||||
|
||||
|
||||
logging:
|
||||
level: error
|
||||
to_files: false
|
||||
json: true
|
||||
files:
|
||||
path: /var/log/metricbeat
|
||||
name: metricbeat-all.log
|
||||
keepfiles: 0
|
||||
#rotateonstartup: true
|
||||
|
||||
Reference in New Issue
Block a user