1. Configuration

Helmfile

Update the environments as required with their relevant file-paths of environment & secrets file and the namespace to be used.

In below config "demo" is the environment with default namespace being set & environment files being provided.

# config-as-code/helm/charts/monitoring/monitoring-helmfile.yaml

environments:
  demo:
    values:
      - namespace: monitoring
      - ../../../environments/egov-demo.yaml
      - ../../../environments/egov-demo-secrets.yaml

Environment Configuration

Grafana

  1. GitHub OAuth App Creation

    • Homepage URL https://<your_domain_name>

    • Authorization callback URL https://<your_domain_name>/monitoring/login/github

    • Generate Client ID & Client secret

  2. Update Client ID & Client secret in secrets config.

    # config-as-code/environments/egov-demo-secrets.yaml
    
    cluster-configs:
      secrets:
        grafana:
          clientID: <OAuth-key>
          clientSecret: <OAuth-token>

  3. Update environment config to allow GitHub organization & teams specific role-based access

    # config-as-code/environments/egov-demo.yaml
    
    grafana:
      github:
        allowed_organizations: ["<organization>"]
        role_attribute_path: contains(groups[*], '@<organization>/<team>') && 'Viewer'
circle-info

Note: Valid roles are None, Viewer, Editor, Admin or GrafanaAdmin Visit official documentation for more information Grafana GitHub OAutharrow-up-right

Loki Stack

Filesystem as a storage

AWS s3 as storage

Caution: Use the sub claim instead of aud when setting up Web Identity (OIDC) IAM roles to ensure correct identity matching.

circle-exclamation
  1. Create AWS Web Identity (OIDC) IAM role with following policy.

  2. Update s3 details & role ARN in below config.

Azure Blob Store as storage

circle-info

Note: Refer to official docsarrow-up-right for detailed configuration

Prometheus

Alerting

circle-info

Note: Enable Alertmanager present under Prometheus Operator

Slack Alerts

circle-info

Note: Generate Slack Incoming Webhookarrow-up-right & update slack_api_url under global config & slack-channel under receivers config.

Email Alerts

circle-info

Note: Follow this articlearrow-up-right in order to setup SMTP server for Gmails

Last updated

Was this helpful?