Skip to content

Instantly share code, notes, and snippets.

@pweil-
Created June 14, 2017 20:06
Show Gist options
  • Save pweil-/b99dd413cf73ec85b232bbe9b0968f73 to your computer and use it in GitHub Desktop.
Save pweil-/b99dd413cf73ec85b232bbe9b0968f73 to your computer and use it in GitHub Desktop.
Usage of ./elasticsearch_exporter:
-es.all
Export stats for all nodes in the cluster.
-es.ca string
Path to PEM file that conains trusted CAs for the Elasticsearch connection.
-es.client-cert string
Path to PEM file that conains the corresponding cert for the private key to connect to Elasticsearch.
-es.client-private-key string
Path to PEM file that conains the private key for client auth when connecting to Elasticsearch.
-es.timeout duration
Timeout for trying to get stats from Elasticsearch. (default 5s)
-es.uri string
HTTP API address of an Elasticsearch node. (default "http://localhost:9200")
-web.listen-address string
Address to listen on for web interface and telemetry. (default ":9108")
-web.telemetry-path string
Path under which to expose metrics. (default "/metrics")
@pweil-
Copy link
Author

pweil- commented Jun 14, 2017

    - name: elasticsearch-prom-exporter
      image: 'docker.io/pweil/elasticsearch_exporter:latest'
      args:
        - '-es.uri=https://localhost:9200'
        - '-es.ca=/etc/elasticsearch/secret/admin-ca'
        - '-es.client-cert=/etc/elasticsearch/secret/admin-cert'
        - '-es.client-private-key=/etc/elasticsearch/secret/admin-key'
      ports:
        - name: scraper
          containerPort: 9108
          protocol: TCP
      resources:
        limits:
          memory: 256Mi
        requests:
          memory: 256Mi
      volumeMounts:
        - name: elasticsearch
          readOnly: true
          mountPath: /etc/elasticsearch/secret
      terminationMessagePath: /dev/termination-log
      imagePullPolicy: Always

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment