BASE

Prometheus

Prometheus

Self-hosted development platform · Free

A metrics collection system with time-series storage and PromQL: it helps monitor your services and build alert rules.

Also known as: prometheus/prometheus; prometheus-monitoring; prometheus-system

Resource illustration: Prometheus

Open resource ↗

What you can use for free

Code and local use under Apache-2.0.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Collect service metrics and detect deviations
  • Create a PromQL query and alert rule for an observed deviation

Example workflow

A possible workflow; this is not a report of hands-on testing.

Collect service metrics and detect deviations.

Before you start

  • One working workflow and test data.
  • The project's server environment and integrations.

Steps

  1. Choose application metrics and configure collection from endpoints.
  2. Create a PromQL query and alert rule for an observed deviation.
  3. Configure permissions, backups, and monitoring before production use.

Check your result

  • The workflow works with minimal permissions and error handling.
  • Compare the chosen hosting method's terms with the task; account for infrastructure and external service costs.

Choosing Prometheus

Collect service metrics and detect deviations

Choose this when

  • Collect service metrics and detect deviations
  • Create a PromQL query and alert rule for an observed deviation

Requirements

  • Choose a client library to instrument a Go service; run the Prometheus server as a separate program.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
  • The Prometheus server repository is not intended to be embedded in another program as a Go library.

Frequently asked questions

What can you use for free in Prometheus?

Code and local use under Apache-2.0.

What additional costs might arise with Prometheus?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Prometheus?

Apache-2.0 for the code; third-party components retain their own terms.

How do you get started with Prometheus?

Choose application metrics and configure collection from endpoints. Create a PromQL query and alert rule for an observed deviation. Configure permissions, backups, and monitoring before production use.

Can I import the Prometheus server into my Go application?

The README explicitly separates the standalone Prometheus program from libraries. prometheus/common is specified for shared functions and prometheus/client-golang for instrumentation. This differs from importing internal server code.

License

Apache-2.0 for the code; third-party components retain their own terms.

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Technologies and topics

  • Prometheus
  • service
  • Development

Sources

Other resources