Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A admin-fe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pleroma
  • admin-fe
  • Issues
  • #173

Closed
Open
Created Dec 04, 2020 by feld@feldContributor

Add Prometheus settings

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]
      }
    ]
  }
Assignee
Assign to
Time tracking