Skip to content

Commit

Permalink
stardog: Unset custom scrape interval (#503)
Browse files Browse the repository at this point in the history
The current interval of 3s is quite idiotic; there is no real value in
scraping data every 3 seconds if in the end you're more interested in
data over a day or so.

This commit
- removes the value by default, which will cause the scrapeconfig to use
  the default value configured in Prometheus' global config
- allows us to overwrite the interval and timeouts via values

Signed-off-by: Manuel Hutter <manuel@hutter.io>
Co-authored-by: Nick Marti <62108979+martini-source@users.noreply.github.com>
  • Loading branch information
mhutter and martini-source committed Jul 2, 2024
1 parent be81f27 commit 58a9dd5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ helm repo add appuio https://charts.appuio.ch
| [![chart downloads](https://img.shields.io/github/downloads/appuio/charts/secret-1.1.0/total)](https://github.com/appuio/charts/releases/tag/secret-1.1.0) | [secret](appuio/secret/README.md) |
| [![chart downloads](https://img.shields.io/github/downloads/appuio/charts/signalilo-0.12.1/total)](https://github.com/appuio/charts/releases/tag/signalilo-0.12.1) | [signalilo](appuio/signalilo/README.md) |
| [![chart downloads](https://img.shields.io/github/downloads/appuio/charts/snappass-1.0.0/total)](https://github.com/appuio/charts/releases/tag/snappass-1.0.0) | [snappass](appuio/snappass/README.md) |
| [![chart downloads](https://img.shields.io/github/downloads/appuio/charts/stardog-0.25.0/total)](https://github.com/appuio/charts/releases/tag/stardog-0.25.0) | [stardog](appuio/stardog/README.md) |
| [![chart downloads](https://img.shields.io/github/downloads/appuio/charts/stardog-0.26.0/total)](https://github.com/appuio/charts/releases/tag/stardog-0.26.0) | [stardog](appuio/stardog/README.md) |
| [![chart downloads](https://img.shields.io/github/downloads/appuio/charts/stardog-userrole-operator-0.3.0/total)](https://github.com/appuio/charts/releases/tag/stardog-userrole-operator-0.3.0) | [stardog-userrole-operator](appuio/stardog-userrole-operator/README.md) |
| [![chart downloads](https://img.shields.io/github/downloads/appuio/charts/trifid-2.0.2/total)](https://github.com/appuio/charts/releases/tag/trifid-2.0.2) | [trifid](appuio/trifid/README.md) |

Expand Down
2 changes: 1 addition & 1 deletion appuio/stardog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: stardog
version: 0.25.0
version: 0.26.0
appVersion: 10.0.1
description: Stardog is the world’s leading knowledge graph platform for the enterprise. Stardog makes it fast and easy to turn enterprise data into knowledge.
home: "https://www.stardog.com/"
Expand Down
6 changes: 4 additions & 2 deletions appuio/stardog/README.gotmpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ The following table lists the configurable parameters chart. For default values
| `ingress.host` | Host name which the ingress should resolve |
| `ingress.tls.enabled` | If TLS should be enabled on the ingress |
| `ingress.tls.secretName` | Name of the secret containing the TLS certificate and key |
| `metrics.stardogRules.extraLabels` | A hash of labels to add to Stardog's PrometheusRules |
| `metrics.zookeeperRules.extraLabels` | A hash of labels to add to ZooKeeper's PrometheusRules |
| `metrics.stardogRules.extraLabels` | A hash of labels to add to Stardog's PrometheusRules |
| `metrics.zookeeperRules.extraLabels` | A hash of labels to add to ZooKeeper's PrometheusRules |
| `metrics.serviceMonitor.interval` | Overwrite Prometheus' default scrape interval for the Stardog ServiceMonitor |
| `metrics.serviceMonitor.timeout` | Overwrite Prometheus' default scrape timeout for the Stardog ServiceMonitor |
| `persistence.enabled` | Enable persistence using PVC |
| `persistence.storageClass` | PVC storage class for Stardog data volume |
| `persistence.size` | PVC storage request size for Stardog data volume |
Expand Down
8 changes: 5 additions & 3 deletions appuio/stardog/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# stardog

![Version: 0.25.0](https://img.shields.io/badge/Version-0.25.0-informational?style=flat-square) ![AppVersion: 10.0.1](https://img.shields.io/badge/AppVersion-10.0.1-informational?style=flat-square)
![Version: 0.26.0](https://img.shields.io/badge/Version-0.26.0-informational?style=flat-square) ![AppVersion: 10.0.1](https://img.shields.io/badge/AppVersion-10.0.1-informational?style=flat-square)

Stardog is the world’s leading knowledge graph platform for the enterprise. Stardog makes it fast and easy to turn enterprise data into knowledge.

Expand Down Expand Up @@ -78,8 +78,10 @@ The following table lists the configurable parameters chart. For default values
| `ingress.host` | Host name which the ingress should resolve |
| `ingress.tls.enabled` | If TLS should be enabled on the ingress |
| `ingress.tls.secretName` | Name of the secret containing the TLS certificate and key |
| `metrics.stardogRules.extraLabels` | A hash of labels to add to Stardog's PrometheusRules |
| `metrics.zookeeperRules.extraLabels` | A hash of labels to add to ZooKeeper's PrometheusRules |
| `metrics.stardogRules.extraLabels` | A hash of labels to add to Stardog's PrometheusRules |
| `metrics.zookeeperRules.extraLabels` | A hash of labels to add to ZooKeeper's PrometheusRules |
| `metrics.serviceMonitor.interval` | Overwrite Prometheus' default scrape interval for the Stardog ServiceMonitor |
| `metrics.serviceMonitor.timeout` | Overwrite Prometheus' default scrape timeout for the Stardog ServiceMonitor |
| `persistence.enabled` | Enable persistence using PVC |
| `persistence.storageClass` | PVC storage class for Stardog data volume |
| `persistence.size` | PVC storage request size for Stardog data volume |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ spec:
# unless there is a cleaner way of doing this, the name "admin" must be stored in a secret:
name: {{ template "stardog.fullname" . }}-admin-username
key: adminusername
interval: 3s
{{- if .Values.metrics.serviceMonitor.interval }}
interval: {{ quote .Values.metrics.serviceMonitor.interval }}
{{- end }}
path: /admin/status/prometheus
port: stardog
scrapeTimeout: 3s
{{- if .Values.metrics.serviceMonitor.timeout }}
scrapeTimeout: {{ quote .Values.metrics.serviceMonitor.timeout }}
{{- end }}
jobLabel: app.kubernetes.io/instance
podTargetLabels:
- app.kubernetes.io/component
Expand Down
6 changes: 6 additions & 0 deletions appuio/stardog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ persistence:
metrics:
enabled: false
prometheusOperator: false
serviceMonitor:
# Scrape interval and timeout.
# Interval may not be smaller than timeout.
# interval: 10s
# timeout: 10s
stardogRules:
extraLabels: null
zookeeperRules:
Expand All @@ -92,6 +97,7 @@ metrics:
repository: sscaling/jmx-prometheus-exporter
tag: 0.12.0
pullPolicy: IfNotPresent

alerts:
httpCheck:
for:
Expand Down

0 comments on commit 58a9dd5

Please sign in to comment.