Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Monolithic mode (单体模式) - Metrics

Monolithic mode

The monolithic mode runs all required components in a single process and is the default mode of operation, which you can set by specifying -target=all.

Monolithic mode is the simplest way to deploy Grafana Mimir and is useful if you want to get started quickly or want to work with Grafana Mimir in a development environment.

flowchart LR
    A -->|writes| GW --->|writes| D  --> |writes| I --> |writes| M
    G -.->|reads | GW -.->|reads | QF -.->|reads | Q -.->|reads | SG -.->|reads| M

    subgraph Minio
        M{"Object Storage"}
    end
    subgraph Agent["Grafana Alloy"]
        A("alloy")
    end
    subgraph Grafana
        G("grafana")
    end
    subgraph Gateway["Load Balancer"]
        GW{"Nginx"}
    end

    subgraph Mimir["mimir -target=all"]
        I("ingester")
        D("distributor")
        SG("store-gateway")
        QF("query-frontend")

        Q("querier")  -.->|reads | I 
        C("compactor") -->|writes| M

        C -.->|reads | M
    end
Loading

Scaling monolithic mode

Monolithic mode can be horizontally scaled out by deploying multiple Grafana Mimir binaries with -target=all. This approach provides high-availability and increased scale without the configuration complexity of the full microservices deployment.

flowchart LR
    A  -->|writes| GW     -->|writes| Mimir -->|writes| M
    GW -->|writes| Mimir2 -->|writes| M
    GW -->|writes| MimirN -->|writes| M
    
    G  -.->|reads| GW     -.->|reads| Mimir -.->|reads| M    
    GW -.->|reads| Mimir2 -.->|reads| M
    GW -.->|reads| MimirN -.->|reads| M

    subgraph Minio
        M{"Object Storage"}
    end
    subgraph Agent["Grafana Alloy"]
        A("alloy")
    end
    subgraph Grafana
        G("grafana")
    end

    subgraph Gateway["Load Balancer"]
        GW{"Nginx"}
    end

    subgraph Mimir["mimir -target=all"]
        CP["Mimir Components ..."]
    end
    subgraph Mimir2["mimir-2 -target=all"]
        CP-2["Mimir Components ..."]
    end
    subgraph MimirN["mimir-n -target=all"]
        CP-N["Mimir Components ..."]
    end
Loading

Quick Start

git clone https://github.com/qclaogui/codelab-monitoring.git && cd "$(basename "$_" .git)"

make up-monolithic-mode-metrics

That's it.

Once all containers are up and running you can search for metrics in Grafana.

Navigate to http://localhost:3000/explore and select the search tab.

Clean up

make down-monolithic-mode-metrics