-
Notifications
You must be signed in to change notification settings - Fork 1
Prometheus: Refresh usage guide based on Docker Compose #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughAdds Prometheus integration documentation and artifacts: a Docker/Podman Compose stack, Prometheus config, a CrateDB Prometheus adapter configuration, and a metrics DDL. Reworks Prometheus docs pages and updates the how-to index by removing the 2022 rubric and expanding 2025 entries. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Compose as Docker/Podman Compose
participant Prom as Prometheus
participant Adapter as CrateDB Prometheus Adapter
participant Crate as CrateDB
User->>Compose: up -d
Compose->>Crate: start CrateDB
Compose->>Prom: start Prometheus (scrape & remote endpoints)
Compose->>Adapter: start adapter (cratedb_endpoints)
Note over Prom,Adapter: remote_write / remote_read via adapter
loop scrape
Prom->>Prom: scrape targets
end
Prom->>Adapter: remote_write(samples)
Adapter->>Crate: INSERT into `testdrive.metrics`
Crate-->>Adapter: ACK
Adapter-->>Prom: Success
User->>Prom: query/graph
Prom->>Adapter: remote_read(query)
Adapter->>Crate: SELECT from `testdrive.metrics`
Crate-->>Adapter: Rows
Adapter-->>Prom: Timeseries
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
:::{rubric} 2022 | ||
::: | ||
|
||
- {ref}`prometheus-usage` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refreshing this article did not take many efforts. It was merely just copy/paste from a series of others following the same scheme, then slotting in the Docker Compose file and configuration files from the original article. If you agree with those kinds of changes, we'd like to encourage you to find similar spots to modernize easily.
:::{grid-item-card} Blog: Getting started | ||
:link: https://cratedb.com/blog/getting-started-prometheus-cratedb-long-term-storage | ||
:link-type: url | ||
Getting started with Prometheus and CrateDB for long-term storage. | ||
::: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michaelkremmel: The article Getting Started With Prometheus and CrateDB for Long-Term Storage still uses CrateDB 2.2 and already bears the admonition This article is more than 4 years old. That's fine, but let's stop referring to it hereby.
Now that the canonical documentation page will be modernized, can you prominently refer here at the top of the page instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for letting me know @amotl. I unpublished the blog post and created a redirect to the documentation. No need to keep old blog posts if they could confuse readers and also LLMs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, let's review and bring in the updated content (this patch) to make the modernization complete.
About
This patch compresses the fundamental tutorial about Storing long-term metrics with Prometheus in CrateDB into a more concise usage guide, while still retaining a few screenshots from the original article written in 2022.
Preview
References
/cc @karynzv, @juanpardo, @WalBeh