Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support multiple sites metrics in separate namespaces #11

Copy link
Copy link

Description

@danlsgiga
Issue body actions

Is it possible to report multiple websites metrics?

Here is my Caddyfile:

(global-tls) {
  tls {
    dns route53
    wildcard
  }
}

(global-logs) {
  log / stdout "{combined}"
  errors stderr
}

(global-headers) {
  header / Strict-Transport-Security "max-age=31536000;"
}

site1.io {
  import global-tls
  import global-logs
  import global-headers
  gzip

  proxy / srv+https://site1.backend {
    insecure_skip_verify
    transparent
  }

  datadog {
    namespace caddy_site1.
  }
}

site2.io {
  import global-tls
  import global-logs
  import global-headers
  gzip

  proxy / srv+https://site2.backend {
    transparent
  }

  datadog {
    namespace caddy_site2.
  }
}

Using this config I only see caddy_site2. metrics in Datadog.

The primarly use of Caddy for us is to act as a proxy, so we will have multiple sites being served and wanted metrics for each of them in separate namespaces.

Is it possible?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.