-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from genebean/prometheus
Add statsd-exporter sidecar, drop permissions
- Loading branch information
Showing
11 changed files
with
340 additions
and
198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
helm-extra-args: --timeout 600 | ||
helm-extra-args: --timeout 300s --set lightstep.satelliteKey=$CR_TOKEN,resources.requests.memory=7Gi | ||
check-version-increment: true | ||
debug: true | ||
validate-maintainers: false |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
HELM_DOCS_VERSION="0.11.0" | ||
HELM_DOCS_VERSION="1.3.0" | ||
|
||
# install helm-docs | ||
curl --silent --show-error --fail --location --output /tmp/helm-docs.tar.gz https://github.com/norwoodj/helm-docs/releases/download/v"${HELM_DOCS_VERSION}"/helm-docs_"${HELM_DOCS_VERSION}"_Linux_x86_64.tar.gz | ||
tar -xf /tmp/helm-docs.tar.gz helm-docs | ||
|
||
# validate docs | ||
./helm-docs | ||
./helm-docs -l debug | ||
git diff --exit-code |
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,2 @@ | ||
.DS_STORE | ||
charts/lightstepsatellite/README.md |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v1 | ||
name: lightstep | ||
version: 1.0.2 | ||
version: 1.1.0 | ||
appVersion: latest | ||
description: Lightsep satellite to collect telemetry data. | ||
home: https://lightstep.com/ | ||
icon: https://go.lightstep.com/rs/260-KGM-472/images/logo-medium-color-400x100.jpg | ||
engine: gotpl | ||
engine: gotpl |
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
53 changes: 53 additions & 0 deletions
53
charts/lightstepsatellite/templates/configmap-statsd-mapping.yaml
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,53 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: statsd-mapping | ||
labels: | ||
{{- include "lightstep.labels" . | nindent 4 }} | ||
data: | ||
config: | | ||
mappings: | ||
- match: "{{ .Values.statsd.prefix }}.{{ .Values.statsd.client_prefix }}.spans.dropped.*" | ||
name: "lightstep_client_spans" | ||
match_metric_type: counter | ||
labels: | ||
prefix: "{{ .Values.statsd.prefix }}" | ||
client_prefix: "{{ .Values.statsd.client_prefix }}" | ||
lightstep_project: "$1" | ||
action: "dropped" | ||
- match: "{{ .Values.statsd.prefix }}.{{ .Values.statsd.satellite_prefix }}.access_tokens.invalid.*" | ||
name: "lightstep_access_token_invalid" | ||
match_metric_type: counter | ||
labels: | ||
prefix: "{{ .Values.statsd.prefix }}" | ||
satellite_prefix: "{{ .Values.statsd.satellite_prefix }}" | ||
lightstep_project: "$1" | ||
- match: "{{ .Values.statsd.prefix }}.{{ .Values.statsd.satellite_prefix }}.bytes.received.*" | ||
name: "lightstep_bytes_received" | ||
match_metric_type: counter | ||
labels: | ||
prefix: "{{ .Values.statsd.prefix }}" | ||
satellite_prefix: "{{ .Values.statsd.satellite_prefix }}" | ||
protocol: "$1" | ||
- match: "{{ .Values.statsd.prefix }}.{{ .Values.statsd.satellite_prefix }}.spans.*.*" | ||
name: "lightstep_spans" | ||
match_metric_type: counter | ||
labels: | ||
prefix: "{{ .Values.statsd.prefix }}" | ||
satellite_prefix: "{{ .Values.statsd.satellite_prefix }}" | ||
action: "$1" | ||
lightstep_project: "$2" | ||
- match: "{{ .Values.statsd.prefix }}.{{ .Values.statsd.satellite_prefix }}.index.queue.length.*" | ||
name: "lightstep_index_queue_${3}" | ||
match_metric_type: gauge | ||
labels: | ||
prefix: "{{ .Values.statsd.prefix }}" | ||
satellite_prefix: "{{ .Values.statsd.satellite_prefix }}" | ||
lightstep_project: "$1" | ||
- match: "{{ .Values.statsd.prefix }}.{{ .Values.statsd.satellite_prefix }}.current.recall.seconds.*" | ||
name: "lightstep_current_recall_seconds" | ||
match_metric_type: gauge | ||
labels: | ||
prefix: "{{ .Values.statsd.prefix }}" | ||
satellite_prefix: "{{ .Values.statsd.satellite_prefix }}" | ||
lightstep_project: "$1" |
Oops, something went wrong.