Skip to content

Must Sermant Metrics specify a separate port for each service? #1810

@lcjing

Description

@lcjing

What do you want to ask?

Sermant Version:2.3.0

Agent Path:/apps/agent/sermant-agent-2.3.0/agent/sermant-agent.jar

According to the documentation, the following configurations need to be enabled to use the Sermant Metrics service:

# HTTP server switch
agent.service.httpserver.enable=true
# Metric service switch
agent.service.metric.enable=true`
Image

I am using two services for testing now. I started them through the docker container on the same host machine. The Sergant Agent paths mounted on my two services are the same. I want to use the indicator service. Do I need to specify 2 metrics port numbers now? Because starting one and continuing to start another will report an error Address already in use。

Image

If I have many services, do I need to assign a separate port number to each service?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions