# Raises an error if we have 2 instances with the same name (one using default name)
! exec karma --config.file=karma.yaml
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=INFO msg="Reading configuration file" path=karma.yaml
level=INFO msg="Version: dev"
level=INFO msg="Configured Alertmanager source" name=default cluster=default uri=https://127.0.0.1:9093 proxy=false readonly=false
level=ERROR msg="Execution failed" error="failed to register Alertmanager 'default' with URI 'https://127.0.0.1:9094': alertmanager upstream 'default' already exist"
-- karma.yaml --
alertmanager:
  servers:
    - name: default
      uri: https://127.0.0.1:9093
    - uri: https://127.0.0.1:9094
