Sign inSign up

ivanprotchenko/elastic2prometeus

By ivanprotchenko

Updated almost 5 years ago

Image
0

1.0K

ivanprotchenko/elastic2prometeus repository overview

docker-compose.yml

version: '3.7'
services:
    elastic2prometeus:
        image: ivanprotchenko/elastic2prometeus:latest
        volumes:
            - /etc/localtime:/etc/localtime:ro
            - /etc/timezone:/etc/timezone:ro
        environment:
            - INSTANCE=ivanprotchenko
            - JOB=elasticsearch_job
            - PUSHGATEWAY=127.0.0.1:9091
            - ELASTICSEARCHURL=http://127.0.0.1:9200
            - UPDATEINTERVALSCRAP=15
            - "ELASTICSEARCHQUERY={'count':{'nginx-*':{'all':'*','5xx':'status: [500 TO 599]'},'syslog-*':{'all':'*'}}}"
        container_name: elastic2prometeus
        restart: always

UPDATEINTERVALSCRAP задаётся в зависимости от времени заданного в prometeus в данном случае 15 секунд

данные из эластика запрашиваются с задержкой в 15s

Tag summary

Content type

Image

Digest

Size

122.5 MB

Last updated

almost 5 years ago

docker pull ivanprotchenko/elastic2prometeus