Skip to content

Commit

Permalink
[prometheus] add optional thanos query (#74)
Browse files Browse the repository at this point in the history
* add thanos query

* lint

---------

Co-authored-by: Anderw Aikawa <[email protected]>
  • Loading branch information
asaiacai and Anderw Aikawa authored Dec 12, 2024
1 parent a987863 commit 9214ad0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion konduktor/dashboard/backend/sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
cors_allowed_origins="*", ping_interval=25, ping_timeout=60, async_mode="asgi"
)

logger = logging.getLogger(__name__)
logger = konduktor_logging.get_logger(__name__)

# Global variables
CLIENT_CONNECTED = False
Expand Down
30 changes: 30 additions & 0 deletions manifests/bitnami-thanos.values
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Install with:
## helm install thanos oci://registry-1.docker.io/bitnamicharts/thanos \
## --values bitnami-thanos.values \
## --namespace prometheus
##
## Check the thanos storegateway and query with
## kubectl port-forward -n prometheus svc/thanos-query-frontend 9090:9090

storegateway:
enabled: true
# If you want to set resource requests/limits:
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 500Mi

existingObjstoreSecret: "thanos-objstore-config"

existingObjstoreSecretItems:
- key: thanos-config.yaml
path: objstore.yml

query:
enabled: true
# Point to the store gateway using service discovery or static addresses
stores:
- "dnssrv+_grpc._tcp.thanos-storegateway-headless.prometheus.svc.cluster.local"

0 comments on commit 9214ad0

Please sign in to comment.