https://github.com/prometheus/docs
Prometheus documentation: content and static site generator
https://github.com/prometheus/docs
documentation hacktoberfest prometheus prometheus-documentation
Last synced: 6 months ago
JSON representation
Prometheus documentation: content and static site generator
- Host: GitHub
- URL: https://github.com/prometheus/docs
- Owner: prometheus
- License: apache-2.0
- Created: 2014-12-19T15:06:35.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T20:46:07.000Z (7 months ago)
- Last Synced: 2025-03-17T21:39:13.718Z (7 months ago)
- Topics: documentation, hacktoberfest, prometheus, prometheus-documentation
- Language: HTML
- Homepage: https://prometheus.io
- Size: 31 MB
- Stars: 679
- Watchers: 37
- Forks: 1,029
- Open Issues: 270
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Prometheus Documentation
This repository contains both the content and the static-site generator code for the
Prometheus documentation site.## Contributing Changes
See [`CONTRIBUTING.md`](CONTRIBUTING.md) for general instructions for new Prometheus contributors.
The main documentation contents of this website are located in the [`content/docs`](content/docs) directory.
Documentation concerning the Prometheus server is [maintained in the Prometheus server repository](https://github.com/prometheus/prometheus/tree/main/docs) and cloned into the website at build time.
As a guideline, please keep the documentation generally applicable and avoid use-case-specific changes.
## Prerequisites
You need to have a working Ruby environment set up (including [bundler](https://bundler.io/))
and then install the necessary gems:```bash
make bundle
```## Building
To generate the static site, run:
```bash
make build
```The resulting static site will be stored in the `output` directory.
Optionally, you can use an API token to avoid rate limits on the API. You can get an API token from https://github.com/settings/tokens/new.
```bash
export GITHUB_AUTHENTICATION='-u user:token'
```## Development Server
To run a local server that displays the generated site, run:
```bash
# Rebuild the site whenever relevant files change:
make guard
# Start the local development server in a separate shell:
make serve
```You should now be able to view the generated site at
[http://localhost:3000/](http://localhost:3000).## Automatic Deployment
This site is automatically deployed using [Netlify](https://www.netlify.com/).
If you have the prerequisite access rights, you can view the Netlify settings here:
* GitHub webhook notifying Netlify of branch changes: https://github.com/prometheus/docs/settings/hooks
* Netlify project: https://app.netlify.com/sites/prometheus-docsChanges to the `main` branch are deployed to the main site at https://prometheus.io.
Netlify also creates preview deploys for every pull request. To view these for a PR where all checks have passed:
1. In the CI section of the PR, click on "Show all checks".
2. On the "deploy/netlify" entry, click on "Details" to view the preview site for the PR.You may have to wait a while for the "deploy/netlify" check to appear after creating or updating the PR, even if the other checks have already passed.
## License
Apache License 2.0, see [LICENSE](LICENSE).