-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: document victoriametrics usage
Adds documentation and examples regarding the setup with a VictoriaMetrics storage backend.
- Loading branch information
Showing
5 changed files
with
123 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This is a sample compose file for deploying the zettelkasten-exporter | ||
# using an VictoriaMetrics storage. | ||
volumes: | ||
grafana-data: {} | ||
victoriametrics-data: {} | ||
|
||
services: | ||
grafana: | ||
image: grafana/grafana | ||
restart: unless-stopped | ||
volumes: | ||
- grafana-data:/var/lib/grafan | ||
ports: | ||
- 3000:3000 | ||
victoriametrics: | ||
image: victoriametrics/victoria-metrics:latest | ||
# In your own setup you'll probably want to specify a longer | ||
# retention period. | ||
command: -retentionPeriod=1w | ||
restart: unless-stopped | ||
ports: | ||
- 8428:8428 | ||
volumes: | ||
- victoriametrics-data:/victoria-metrics-data | ||
zettelkasten-exporter: | ||
image: ghcr.io/luissimas/zettelkasten-exporter:latest | ||
restart: unless-stopped | ||
depends_on: | ||
- victoriametrics | ||
environment: | ||
LOG_LEVEL: INFO | ||
# Here we use a local directory for simplicity, but check out the | ||
# README to see how to configure different sources such as git repositories. | ||
ZETTELKASTEN_DIRECTORY: /sample | ||
COLLECTION_INTERVAL: 10s | ||
VICTORIAMETRICS_URL: http://victoriametrics:8428 | ||
volumes: | ||
- ./sample:/sample |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# This is a sample manifest for deploying the zettelkasten-exporter using an VictoriaMetrics | ||
# storage. | ||
# To deploy VictoriaMetrics, see: https://github.com/VictoriaMetrics/helm-charts | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: monitoring | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: zettelkasten-exporter-env | ||
namespace: monitoring | ||
type: Opaque | ||
data: | ||
# These are placeholder values. Replace them with the | ||
# appropriate values for your setup. | ||
github-token: YW55LXRva2Vu | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: zettelkasten-exporter | ||
namespace: monitoring | ||
labels: | ||
app.kubernetes.io/name: zettelkasten-exporter | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: zettelkasten-exporter | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: zettelkasten-exporter | ||
spec: | ||
containers: | ||
- name: zettelkasten-exporter | ||
image: "ghcr.io/luissimas/zettelkasten-exporter:latest" | ||
env: | ||
- name: LOG_LEVEL | ||
value: INFO | ||
- name: COLLECTION_INTERVAL | ||
value: 5m | ||
- name: ZETTELKASTEN_GIT_URL | ||
value: <YOUR_REPOSITORY_GIT_URL> | ||
- name: ZETTELKASTEN_GIT_BRANCH | ||
value: master | ||
- name: ZETTELKASTEN_GIT_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: zettelkasten-exporter-env | ||
key: github-token | ||
- name: VICTORIAMETRICS_URL | ||
value: http://victoriametrics |