Skip to content
Snippets Groups Projects
  • Antoine R. Dumont's avatar
    471f27eb
    opentelemetry: Unify index names in environments · 471f27eb
    Antoine R. Dumont authored
    - {staging,production}-swh-logs
    - {staging,production}-system-logs
    
    This will fix the misnaming in production [1]. The data stream 'logs-*-*' pattern exists
    which prevented the index name to be correctly built (and historically, the staging ones
    were named differently too so the issue was not detected earlier).
    
    [1]
    ```
    curl -s ${ES_SERVER}/_cat/indices | grep "staging\|production"
    ...
    green open  .ds-logs-swh-production-2023.05.16-000001    OMdrZ9DXRZ2t2SP4PEhwVA 1 1  5398438      0   2.1gb     1gb
    green open  .ds-logs-system-production-2023.05.16-000001 WcV164JHSgOIOWjVUddeHg 1 1
    6097451      0   3.4gb     2gb
    ...
    ```
    
    Refs. swh/infra/sysadm-environment#4524
    opentelemetry: Unify index names in environments
    Antoine R. Dumont authored
    - {staging,production}-swh-logs
    - {staging,production}-system-logs
    
    This will fix the misnaming in production [1]. The data stream 'logs-*-*' pattern exists
    which prevented the index name to be correctly built (and historically, the staging ones
    were named differently too so the issue was not detected earlier).
    
    [1]
    ```
    curl -s ${ES_SERVER}/_cat/indices | grep "staging\|production"
    ...
    green open  .ds-logs-swh-production-2023.05.16-000001    OMdrZ9DXRZ2t2SP4PEhwVA 1 1  5398438      0   2.1gb     1gb
    green open  .ds-logs-system-production-2023.05.16-000001 WcV164JHSgOIOWjVUddeHg 1 1
    6097451      0   3.4gb     2gb
    ...
    ```
    
    Refs. swh/infra/sysadm-environment#4524
_collector.tpl 9.95 KiB