Skip to the content.

Opster Metricbeat Helm Chart

Requirements

Configuring

This helm charts create a deployment with Opster’s MetricBeat service and also create the needed secrets from your configuration setted in .Values.secrets. . We recommend this option. To run the chart please isert to the ‘charts’ directory.

values

Edit values.yaml file.

For the minimal setup set values for the following keys in Values.secrets.conf section:

If your ElasticSearch has basic authentication enabled, please set values for the following keys in the Values.secrets.basicauth section:

By default metricbeat uses as output endpoint receiver.opster.io:5044. Sometimes because of the firewall issues, etc. you can’t use port 5044 for outbound connections. If this is not a problem for you just skip this part and if it’s actually the problem we have prepared another endpoint that uses port 443, to use it please also edit following keys in the Values.secrets.conf section:

For arm64 architecture please change imageTag value to latest-arm64.

For simple installation use the values.yaml file that include all needed parameters. for more details and configurations (like ‘annotations’, ‘nodeSelector’ and more) please use with extended-values.yaml values file.

Running

Execute this command in the unpacked chart directory:

helm install metricbeat ./

OR

helm install metricbeat -f extended-values.yaml ./

If you have your own secret deployed in your k8s cluster and don’t want to create a new one follow the instructions :

selfSecrets:
  created: true
  name: “external-secret”
  ...
selfSecrets:
  type: “awsIamAuth”
  ...

Use:

If you have a custom keys in your secret for the same values, you can uncomment the value and specify the new secret key name for every key that required.

  keys:
    env:
      es_url: “ES_URL”
      opster_token: “OPSTER_TOKEN”
      opster_host: “OPSTER_HOST”

    basicAuth:
      es_password: “”
      es_user: “”

    awsIamAuth:
      access_key_id: “”
      aws_region: “”
      secret_access_key: “”

If you leave “”, helm’ll search the key name in uppercase inside the secret configured.

If the secrets doesn’t exist or key name is not found inside the secret, helm deploy will failed with a message like this:

Error: UPGRADE FAILED: execution error at (opster-metricbeat/templates/deployment.yaml:121:14): Secret key ‘ES_URL’ given for ‘es_url’ does not exist in ‘external-secret’ secret

This will help you to fix the deploy configuration.