[{"data":1,"prerenderedAt":149},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fdeployment\u002Fmulti-instance":3,"docs-navigation":74},{"id":4,"title":5,"body":6,"description":65,"extension":66,"meta":67,"navTitle":68,"navigation":69,"path":70,"seo":71,"stem":72,"__hash__":73},"docs\u002Fdocs\u002F4.deployment\u002F1.multi-instance.md","Multi-instance deployments",{"type":7,"value":8,"toc":61},"minimark",[9,18,58],[10,11,12,13,17],"p",{},"Nafas has no concept of a central collector — each instance that calls\n",[14,15,16],"code",{},"AddNafasServer()"," ingests and stores its own process's telemetry. Two\ncommon setups:",[19,20,21,37],"ul",{},[22,23,24,28,29,32,33,36],"li",{},[25,26,27],"strong",{},"Single instance"," — the default. Nothing to configure; ",[14,30,31],{},"ServiceName","\nresolves to ",[14,34,35],{},"IHostEnvironment.ApplicationName",".",[22,38,39,42,43,46,47,50,51,53,54,57],{},[25,40,41],{},"Multiple instances sharing one SQL Server database"," — point every\ninstance's ",[14,44,45],{},"ConnectionString","\u002F",[14,48,49],{},"ConnectionStringName"," at the same\ndatabase and give each a distinct ",[14,52,31],{},". All of them write to\nthe same tables and are distinguishable in every dashboard view by\nservice name; any instance's ",[14,55,56],{},"\u002Fnafas"," mount shows data from all of them.",[10,59,60],{},"SQLite is a single-file, single-process store and is not meant to be\nshared across instances — use SQL Server for that case.",{"title":62,"searchDepth":63,"depth":63,"links":64},"",2,[],"No central collector — each instance ingests its own telemetry, optionally sharing one SQL Server database.","md",{},"Multi-instance",true,"\u002Fdocs\u002Fdeployment\u002Fmulti-instance",{"title":5,"description":65},"docs\u002F4.deployment\u002F1.multi-instance","Bz0fiVMh_wOV3rk9SjhM_CJfO8zNNMx-wQJym7gXe4g",[75],{"title":76,"path":77,"stem":78,"children":79},"Docs","\u002Fdocs","docs",[80,83,101,114,127,137,145],{"title":81,"path":77,"stem":82},"Documentation","docs\u002Findex",{"title":84,"path":85,"stem":86,"children":87,"page":100},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[88,92,96],{"title":89,"path":90,"stem":91},"Why Nafas","\u002Fdocs\u002Fgetting-started\u002Fwhy-nafas","docs\u002F1.getting-started\u002F1.why-nafas",{"title":93,"path":94,"stem":95},"Quick start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F2.quick-start",{"title":97,"path":98,"stem":99},"Requirements","\u002Fdocs\u002Fgetting-started\u002Frequirements","docs\u002F1.getting-started\u002F3.requirements",false,{"title":102,"path":103,"stem":104,"children":105,"page":100},"How It Works","\u002Fdocs\u002Fhow-it-works","docs\u002F2.how-it-works",[106,110],{"title":107,"path":108,"stem":109},"What gets captured, and how","\u002Fdocs\u002Fhow-it-works\u002Fwhat-gets-captured","docs\u002F2.how-it-works\u002F1.what-gets-captured",{"title":111,"path":112,"stem":113},"How it's built internally","\u002Fdocs\u002Fhow-it-works\u002Finternals","docs\u002F2.how-it-works\u002F2.internals",{"title":115,"path":116,"stem":117,"children":118,"page":100},"Configuration","\u002Fdocs\u002Fconfiguration","docs\u002F3.configuration",[119,123],{"title":120,"path":121,"stem":122},"Configuration options","\u002Fdocs\u002Fconfiguration\u002Foptions","docs\u002F3.configuration\u002F1.options",{"title":124,"path":125,"stem":126},"Security","\u002Fdocs\u002Fconfiguration\u002Fsecurity","docs\u002F3.configuration\u002F2.security",{"title":128,"path":129,"stem":130,"children":131,"page":100},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F4.deployment",[132,133],{"title":5,"path":70,"stem":72},{"title":134,"path":135,"stem":136},"Desktop and other non-ASP.NET Core apps","\u002Fdocs\u002Fdeployment\u002Fdesktop-apps","docs\u002F4.deployment\u002F2.desktop-apps",{"title":138,"path":139,"stem":140,"children":141,"page":100},"Alerting","\u002Fdocs\u002Falerting","docs\u002F5.alerting",[142],{"title":138,"path":143,"stem":144},"\u002Fdocs\u002Falerting\u002Falert-rules","docs\u002F5.alerting\u002F1.alert-rules",{"title":146,"path":147,"stem":148},"Contributing","\u002Fdocs\u002Fcontributing","docs\u002F6.contributing",1789838144292]