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

    • Follow the GitHub OAuth app

    • 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'

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

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.

  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

Note: Refer to official docs for detailed configuration

Prometheus

Alerting

Note: Enable Alertmanager present under Prometheus Operator

Slack Alerts

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

Email Alerts

Note: Follow this article in order to setup SMTP server for Gmails

Last updated

Was this helpful?