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:
Dan McFaul
2023-02-15 14:41:44 -07:00
committed by GitHub
co-authored by Mathew Kamkar
parent 4367e93855
commit 1848a21eda
9 changed files with 39 additions and 32 deletions
+1 -1
View File
@@ -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()) {