atlantis icon indicating copy to clipboard operation
atlantis copied to clipboard

Metrics statsd only takes ip address

Open zhangluva opened this issue 2 years ago • 1 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Overview of the Issue

The statsd host key only accept IP address. When hostname (short or FQDN) is supplied, the server errors out.

Reproduction Steps

  • Create /etc/repo.yaml file like below
    metrics:
      statsd: 
        host: localhost
        port: 9125
    
  • Start the server with the required env and parameters

Logs

Error: initializing server: parsing /local/repo.yaml file: metrics: (statsd: (host: must be a valid IP address.).).

Environment details

If not already included, please provide the following:

  • Atlantis version: v0.19.6
  • If not running the latest Atlantis version have you tried to reproduce this issue on the latest version:
  • Atlantis flags: --repo-allowlist * --repo-config /etc/repo.yaml --log-level debug

Atlantis server-side config file:

# config file
metrics:
  statsd:
    host: localhost
    port: 9125

Repo atlantis.yaml file:

# config file

Additional Context

zhangluva avatar Jul 15 '22 14:07 zhangluva

We experience the same issue. It seems using fqdn isn't possible

therapy-lf avatar Jul 25 '22 11:07 therapy-lf