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
@@ -250,7 +250,7 @@ func startServer(c *cli.Context) error {
return err
}
prometheus.Init(currentNode.Id, currentNode.Type)
prometheus.Init(currentNode.Id, currentNode.Type, conf.Environment)
server, err := service.InitializeServer(conf, currentNode)
if err != nil {