Skip to content

Commit

Permalink
feat: upgrade to promethues v3.0.0 (#128)
Browse files Browse the repository at this point in the history
* feat: upgrade to promethues v3.0.0

* fix: Prometheus v3.0.0 removed unsupported features

* feat: grafana minor version bump to v11.3.1

https://github.com/grafana/grafana/releases/tag/v11.3.1

* feat: added Pyroscope in docs
  • Loading branch information
saidsef authored Nov 23, 2024
1 parent 63d8d17 commit 86b3a43
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Grafana, Prometheus, Loki, Promtail, Tempo and Mimir (LGTM)
# Grafana, Prometheus, Loki, Promtail, Tempo, Pyroscope and Mimir (LGTM)

[Loki](https://grafana.com/oss/loki/) is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate, as it does not index the contents of the logs, but rather a set of labels for each log stream.

Expand All @@ -8,6 +8,8 @@

[Mimir](https://grafana.com/oss/mimir/) lets you scale metrics to 1 billion active series and beyond, with high availability, multi-tenancy, durable storage, and blazing fast query performance over long periods of time.

[Pyroscope](https://grafana.com/docs/pyroscope/latest/) is a multi-tenant, continuous profiling aggregation system, aligning its architectural design with Grafana Mimir, Grafana Loki, and Grafana Tempo. This integration enables a cohesive correlation of profiling data with existing metrics, logs, and traces.

I am assuming you are already familiar with [Grafana](https://grafana.com/oss/grafana/) and [Prometheus](https://prometheus.io/docs/prometheus/latest/getting_started/)

## Prerequisites
Expand Down
2 changes: 1 addition & 1 deletion deployment/grafana/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
subPath: dashboards
containers:
- name: grafana
image: docker.io/grafana/grafana:11.3.0-security-01
image: docker.io/grafana/grafana:11.3.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
Expand Down
11 changes: 2 additions & 9 deletions deployment/prometheus/cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@ data:
groups:
- name: http_request_duration
rules:
- record: job:request_duration_seconds:rate
- record: job:request_duration_seconds:sum_rate5m
expr: |
sum(rate(hubble_http_request_duration_seconds_bucket{
cluster=~"${cluster}",
destination_namespace=~"${destination_namespace}",
destination_workload=~"${destination_workload}",
reporter="${reporter}",
source_namespace=~"${source_namespace}",
source_workload=~"${source_workload}"
}[5m])) by (cluster, destination_namespace, destination_workload, le)
sum(rate(hubble_http_request_duration_seconds_bucket{}[5m])) by (cluster, destination_namespace, destination_workload, le)
- name: Memory
rules:
- alert: ContainerUsedMemoryPercent
Expand Down
7 changes: 5 additions & 2 deletions deployment/prometheus/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,22 @@ spec:
runAsNonRoot: true
containers:
- name: prometheus
image: docker.io/prom/prometheus:v2.55.1
image: docker.io/prom/prometheus:v3.0.0
imagePullPolicy: IfNotPresent
args:
- '--storage.tsdb.retention.time=15d'
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus/data/'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--enable-feature=concurrent-rule-eval,promql-experimental-functions,new-service-discovery-manager,exemplar-storage,remote-write-receiver,promql-per-step-stats'
- '--enable-feature=concurrent-rule-eval,promql-experimental-functions,exemplar-storage,promql-per-step-stats,native-histograms'
- '--web.enable-remote-write-receiver'
- '--web.enable-otlp-receiver'
- '--web.enable-lifecycle'
- '--log.level=warn'
- '--log.format=json'
- '--no-auto-gomaxprocs'
- '--no-auto-gomemlimit'
ports:
- containerPort: 9090
name: http
Expand Down

0 comments on commit 86b3a43

Please sign in to comment.