Skip to content

Commit

Permalink
fix(metrics):add metrics port env for compute node (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfish.zhang authored Apr 10, 2023
1 parent 76e7db6 commit 1862c9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/factory/risingwave_object_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,10 @@ func (f *RisingWaveObjectFactory) envsForComputeArgs(cpuLimit int64, memLimit in
Name: envs.RWConnectorRPCEndPoint,
Value: fmt.Sprintf("%s:%d", f.componentName(consts.ComponentConnector, ""), connectorPorts.ServicePort),
},
{
Name: envs.RWPrometheusListenerAddr,
Value: fmt.Sprintf("0.0.0.0:%d", computePorts.MetricsPort),
},
}

if cpuLimit != 0 {
Expand Down

0 comments on commit 1862c9d

Please sign in to comment.