This file contains hidden or 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
apiVersion: cert-manager.io/v1alpha2 | |
kind: Certificate | |
metadata: | |
name: custom-metrics-apiserver-tls-keys | |
labels: | |
app: prometheus-custom-metrics | |
namespace: prometheus | |
spec: | |
secretName: custom-metrics-apiserver-tls-keys | |
commonName: custom-metrics-apiserver.prometheus.svc |
This file contains hidden or 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
FROM zookeeper:3.5.6 | |
# Disable Java's built-in DNS cache | |
RUN sed -i 's/#networkaddress\.cache\.ttl=-1$/networkaddress.cache.ttl=0/' "${JAVA_HOME}/lib/security/java.security" | |
# Enable prometheus stats export | |
COPY zookeeper-jmx-exporter-rules.yaml /opt/jmx-exporter/zookeeper-jmx-exporter-rules.yaml | |
RUN mkdir -p /opt/jmx-exporter && wget -O /opt/jmx-exporter/jmx-exporter.jar "https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.12.0/jmx_prometheus_javaagent-0.12.0.jar" | |
ENV SERVER_JVMFLAGS -javaagent:/opt/jmx-exporter/jmx-exporter.jar=9101:/opt/jmx-exporter/zookeeper-jmx-exporter-rules.yaml |
This file contains hidden or 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
FROM apache/drill:1.17.0 | |
# Disable Java's built-in DNS cache | |
RUN sed -i 's/#networkaddress\.cache\.ttl=-1$/networkaddress.cache.ttl=0/' "/usr/lib/jvm/jre/lib/security/java.security" | |
# Install JMX Prometheus Exporter | |
RUN mkdir -p /opt/jmx-exporter && \ | |
curl -o "/opt/jmx-exporter/jmx-exporter.jar" "https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.12.0/jmx_prometheus_javaagent-0.12.0.jar" | |
COPY drill-jmx-exporter-rules.yaml /opt/jmx-exporter/drill-jmx-exporter-rules.yaml |
This file contains hidden or 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
$ curl -v "https://api.xero.com/api.xro/2.0/Accounts" | |
> GET /api.xro/2.0/Accounts HTTP/1.1 | |
> Host: api.xero.com | |
> User-Agent: curl/7.58.0 | |
> Accept: */* | |
> | |
< HTTP/1.1 401 Unauthorized | |
< Content-Type: text/html; charset=utf-8 | |
< Strict-Transport-Security: max-age=31536000 | |
< WWW-Authenticate: OAuth Realm="api.xero.com" |
This file contains hidden or 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
$ curl -vH "Authorization: Bearer eyJhbGc" "https://api.xero.com/api.xro/2.0/Accounts" | |
> GET /api.xro/2.0/Accounts HTTP/1.1 | |
> Authorization: Bearer eyJhbGc | |
> | |
< HTTP/1.1 401 Unauthorized | |
< Server: Kestrel | |
< WWW-Authenticate: Bearer error=invalid_token | |
< Xero-Correlation-Id: e3ec736b-3932-4630-a701-89098e09d5c9 | |
< Content-Length: 125 | |
< Expires: Wed, 22 Jan 2020 05:53:57 GMT |
This file contains hidden or 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
apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: postgres-backup | |
spec: | |
schedule: "0 12 * * *" | |
jobTemplate: | |
spec: | |
backoffLimit: 0 | |
template: |
This file contains hidden or 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
#!/usr/bin/env bash | |
ENVIRONMENT=$1 | |
NAMESPACE=$2 | |
SERVICE_NAME=$3 | |
DEFAULT_LOCAL_PORT=4000 | |
DEFAULT_TARGET_PORT=80 | |
case $ENVIRONMENT in |
This file contains hidden or 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
<filter kubernetes.**> | |
@type kubernetes_metadata | |
</filter> | |
# Use tag as index name prefix by default | |
<filter **> | |
@type record_modifier | |
<record> | |
_es_index ${tag_parts[0]}.${Time.at(time).strftime('%F')} | |
</record> |
This file contains hidden or 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
Show hidden characters
{ | |
"presets": [ | |
"@babel/preset-typescript", | |
[ | |
"@babel/preset-env", | |
{ "ignoreBrowserslistConfig": true, "targets": { "node": true } } | |
], | |
"@babel/react" | |
] | |
} |
This file contains hidden or 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
{ | |
"presets": [ | |
"@babel/preset-typescript", | |
[ | |
"@babel/preset-env", | |
{ "ignoreBrowserslistConfig": true, "targets": { "node": true } } | |
], | |
"@babel/react" | |
] | |
} |