Search code examples
kubernetespluginskubernetes-helmmetricsopensearch

How to install prometheus exporter plugin to openSearch in helm managed environment


I want to collect metrics from my opensearch

I've found this plugin https://github.com/aiven/prometheus-exporter-plugin-for-opensearch

but I have no idea how to connect it to my opensearch:

My current definition looks like this:

chart.yaml:

  - name: opensearch
    version: 1.8.0
    repository: https://opensearch-project.github.io/helm-charts/

values.yaml:

opensearch:
  plugins:
    enabled: true
    installList:
      - what should I write here ?

  addIndexedAt: true
  clusterName: ...
  masterService:...
  resources:
    requests:
      cpu: 500m
      memory: 1000Mi
    limits:
      cpu: 3000m
      memory: 2000Mi
  config:
    opensearch.yml: ...

Could you please help me how to connetc plugin to opensearch ?


Solution

  • - what should I write here ?

    Try specify the plugin download URL:

    ...
    installList:
    - "https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/download/2.1.0.0/prometheus-exporter-2.1.0.0.zip"
    ...
    

    The url you passed gets to here for installation.