Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

3.8 KB
Raw Blame
{
  loki = {
    auth_enabled = false;
    server = {
      http_listen_address = "127.0.0.1";
      http_listen_port = 3100;
      grpc_listen_address = "127.0.0.1";
      grpc_listen_port = 9095;
    };
    common = {
      instance_addr = "127.0.0.1";
      path_prefix = "/srv/observability/loki";
      replication_factor = 1;
      ring.kvstore.store = "inmemory";
    };
    schema_config.configs = [
      {
        from = "2024-01-01";
        store = "tsdb";
        object_store = "s3";
        schema = "v13";
        index = {
          prefix = "index_";
          period = "24h";
        };
      }
    ];
    storage_config = {
      aws = {
        region = "\${AWS_REGION}";
        bucketnames = "\${LOGS_BUCKET}";
      };
      tsdb_shipper = {
        active_index_directory = "/srv/observability/loki/index";
        cache_location = "/srv/observability/loki/index-cache";
      };
    };
    ingester.wal = {
      enabled = true;
      dir = "/srv/observability/loki/wal";
    };
    pattern_ingester.enabled = true;
    compactor = {
      working_directory = "/srv/observability/loki/compactor";
      retention_enabled = true;
      delete_request_store = "s3";
    };
    limits_config = {
      retention_period = "720h";
      allow_structured_metadata = true;
      volume_enabled = true;
      discover_log_levels = true;
      ingestion_rate_mb = 8;
      ingestion_burst_size_mb = 16;
      max_query_parallelism = 4;
      # The CI dashboard groups PR steps by workflow, job and step: about 600 a day.
      max_query_series = 2000;
    };
    querier.max_concurrent = 4;
    analytics.reporting_enabled = false;
  };
  tempo = {
    server = {
      http_listen_address = "127.0.0.1";
      http_listen_port = 3200;
      grpc_listen_address = "127.0.0.1";
      grpc_listen_port = 9096;
    };
    memberlist.bind_addr = [ "127.0.0.1" ];
    distributor.receivers.otlp.protocols.grpc.endpoint = "127.0.0.1:4317";
    ingester = {
      max_block_duration = "5m";
      lifecycler.address = "127.0.0.1";
    };
    compactor.compaction.block_retention = "168h";
    metrics_generator = {
      ring.instance_addr = "127.0.0.1";
      processor = {
        service_graphs.dimensions = [ "deployment.environment" ];
        local_blocks = {
          filter_server_spans = false;
          flush_to_storage = true;
          max_live_traces = 10000;
          max_block_bytes = 50000000;
          concurrent_blocks = 2;
        };
        span_metrics = {
          # Keep unbounded span names out of Prometheus; they remain searchable in Tempo.
          intrinsic_dimensions.span_name = false;
          dimensions = [ "deployment.environment" ];
        };
      };
      traces_storage.path = "/srv/observability/tempo/generator/traces";
      storage = {
        path = "/srv/observability/tempo/generator/wal";
        remote_write = [
          {
            url = "http://127.0.0.1:9090/api/v1/write";
            send_exemplars = true;
          }
        ];
      };
    };
    overrides.defaults.metrics_generator = {
      processors = [
        "local-blocks"
        "span-metrics"
        "service-graphs"
      ];
      max_active_series = 50000;
    };
    query_frontend.metrics.concurrent_jobs = 4;
    storage.trace = {
      backend = "s3";
      wal.path = "/srv/observability/tempo/wal";
      s3 = {
        bucket = "\${TRACES_BUCKET}";
        region = "\${AWS_REGION}";
        endpoint = "s3.\${AWS_REGION}.amazonaws.com";
      };
    };
    usage_report.reporting_enabled = false;
  };
  prometheus = {
    global.scrape_interval = "30s";
    scrape_configs = [
      {
        job_name = "observability";
        static_configs = [
          {
            targets = [
              "127.0.0.1:9090"
              "127.0.0.1:3100"
              "127.0.0.1:3200"
              "127.0.0.1:12345"
            ];
          }
        ];
      }
    ];
  };
}