Add Prometheus settings #173

Closed
opened 2020-12-04 15:50:40 +00:00 by feld · 0 comments
Owner

The following settings are in the backend config/description.exs:

  %{
    group: :prometheus,
    key: Pleroma.Web.Endpoint.MetricsExporter,
    type: :group,
    description: "Prometheus app metrics endpoint configuration",
    children: [
      %{
        key: :enabled,
        type: :boolean,
        description: "[Pleroma extension] Enables app metrics endpoint."
      },
      %{
        key: :ip_whitelist,
        type: [{:list, :string}, {:list, :charlist}, {:list, :tuple}],
        description:
          "[Pleroma extension] If non-empty, restricts access to app metrics endpoint to specified IP addresses."
      },
      %{
        key: :auth,
        type: [:boolean, :tuple],
        description: "Enables HTTP Basic Auth for app metrics endpoint.",
        suggestion: [false, {:basic, "myusername", "mypassword"}]
      },
      %{
        key: :path,
        type: :string,
        description: "App metrics endpoint URI path.",
        suggestions: ["/api/pleroma/app_metrics"]
      },
      %{
        key: :format,
        type: :atom,
        description: "App metrics endpoint output format.",
        suggestions: [:text, :protobuf]
      }
    ]
  }
The following settings are in the backend `config/description.exs`: ``` %{ group: :prometheus, key: Pleroma.Web.Endpoint.MetricsExporter, type: :group, description: "Prometheus app metrics endpoint configuration", children: [ %{ key: :enabled, type: :boolean, description: "[Pleroma extension] Enables app metrics endpoint." }, %{ key: :ip_whitelist, type: [{:list, :string}, {:list, :charlist}, {:list, :tuple}], description: "[Pleroma extension] If non-empty, restricts access to app metrics endpoint to specified IP addresses." }, %{ key: :auth, type: [:boolean, :tuple], description: "Enables HTTP Basic Auth for app metrics endpoint.", suggestion: [false, {:basic, "myusername", "mypassword"}] }, %{ key: :path, type: :string, description: "App metrics endpoint URI path.", suggestions: ["/api/pleroma/app_metrics"] }, %{ key: :format, type: :atom, description: "App metrics endpoint output format.", suggestions: [:text, :protobuf] } ] } ```
Sign in to join this conversation.
No labels
blocked
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/admin-fe#173
No description provided.