add configurable environment value (#1421)
* add configurable prometheus env label * Update pkg/config/config.go Co-authored-by: Mathew Kamkar <578302+matkam@users.noreply.github.com> * Update cmd/server/main.go Co-authored-by: Mathew Kamkar <578302+matkam@users.noreply.github.com> * Update config-sample.yaml Co-authored-by: Mathew Kamkar <578302+matkam@users.noreply.github.com> * set config.Environment value to dev when in dev mode * be more precise for config-sample --------- Co-authored-by: Mathew Kamkar <578302+matkam@users.noreply.github.com>
This commit is contained in:
co-authored by
Mathew Kamkar
parent
4367e93855
commit
1848a21eda
@@ -46,7 +46,7 @@ func init() {
|
||||
Config: logger.Config{Level: "debug"},
|
||||
})
|
||||
|
||||
prometheus.Init("test", livekit.NodeType_SERVER)
|
||||
prometheus.Init("test", livekit.NodeType_SERVER, "test")
|
||||
}
|
||||
|
||||
func setupSingleNodeTest(name string) (*service.LivekitServer, func()) {
|
||||
|
||||
Reference in New Issue
Block a user