Mimir Query 404 Not Found

Hello, I’m working on Mimir configuration as a single node. And I have 404 error trying to add a data source in Grafana. I suppose there is an error in Miimir configuration. Could someone prompt me?

multitenancy_enabled: false
no_auth_tenant: "rnd"
  
# We only want to run the query-frontend module.
# target: query-frontend

frontend_worker:
  frontend_address: '0.0.0.0:9095'
  scheduler_address: ""
  dns_lookup_duration: 10s

common:
  storage:
    backend: s3
    s3:
      endpoint: s3.eu-central-1.amazonaws.com
      region: eu-central-1
      secret_access_key: {{ aws_s3_secret_key }} # This is a secret injected via an environment variable
      access_key_id: {{ aws_s3_id_key }} # This is a secret injected via an environment variable

blocks_storage:
  storage_prefix: blocks
  s3:
    bucket_name: {{ bucket_name_data }}

  tsdb:
    dir: /tmp/mimir/tsdb
    ship_interval: 1m
    block_ranges_period: [ 2h ]
    retention_period: 2h

  bucket_store:
    sync_dir: /tmp/mimir/tsdb-sync

alertmanager_storage:
  storage_prefix: alerts
  # fallback_config_file: /etc/alertmanager-fallback-config.yaml
  # external_url: http://localhost:9009/alertmanager
  s3:
    bucket_name: {{ bucket_name_alertmanager}}

ruler_storage:
  storage_prefix: ruler
  # alertmanager_url: http://127.0.0.1:8080/alertmanager
  s3:
    bucket_name: {{ bucket_name_rules }}

compactor:
  data_dir: /tmp/mimir/compactor

store_gateway:
  sharding_ring:
    replication_factor: 1

server:
  http_listen_address: 0.0.0.0
  http_listen_port: 9009

  # Configure the server to allow messages up to 100MB.
  grpc_server_max_recv_msg_size: 104857600
  grpc_server_max_send_msg_size: 104857600
  grpc_server_max_concurrent_streams: 1000

limits:
  # Delete from storage metrics data older than 1 year.
  compactor_blocks_retention_period: 1y

distributor:
  ring:
    instance_addr: 0.0.0.0
    kvstore:
      store: memberlist
  pool:
    health_check_ingesters: true

ingester:
  ring:
    # The address to advertise for this ingester.  Will be autodiscovered by
    # looking up address on eth0 or en0; can be specified if this fails.
    # address: 0.0.0.0
    instance_addr: 0.0.0.0

    # We want to start immediately and flush on shutdown.
    min_ready_duration: 0s
    final_sleep: 0s
    num_tokens: 512

    # Use an in memory ring store, so we don't need to launch a Consul.
    kvstore:
      store: memberlist
      # store: inmemory
    replication_factor: 1

You need to add /prometheus for Mimir’s Prometheus endpoint that you can add as a data source.

1 Like