Skip to content

Commit

Permalink
few tweaks, updated dash image, changed docker to 16-slim as 18 crash…
Browse files Browse the repository at this point in the history
…es on Ubuntu 16 LTS
  • Loading branch information
jaisor committed Nov 10, 2023
1 parent 8157d06 commit f6f9b98
Show file tree
Hide file tree
Showing 4 changed files with 510 additions and 392 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-slim AS BUILD_IMAGE
FROM node:16-slim AS BUILD_IMAGE

WORKDIR /usr/src/app

Expand All @@ -7,7 +7,7 @@ RUN npm ci --omit=dev

COPY src/ .

FROM node:18-slim AS build
FROM node:16-slim AS build

RUN mkdir -p /config

Expand All @@ -19,6 +19,6 @@ COPY --from=BUILD_IMAGE /usr/src/app/index.js ./index.mjs
COPY --from=BUILD_IMAGE /usr/src/app/*.mjs ./
COPY --from=BUILD_IMAGE /usr/src/app/node_modules ./node_modules

ENV CONFIG_PATH="${CONFIG_PATH}"
ENV CONFIG_PATH="${CONFIG_PATH}"

ENTRYPOINT [ "node", "index.mjs" ]
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# tesla-api-prometheus-exporter
Prometheus exporter for Tesla API metrics

Example Grafana dashboard [grafana_dash.json]
Dashboard snapshot https://snapshots.raintank.io/dashboard/snapshot/V8ReJsr79g4LfgzLlWVphFmZDIKP2Wp1
![Example Grafana dashboard](img/dash.png)

Grafana JSON exported in [grafana_dash.json](grafana_dash.json)

GitHub repo: https://github.com/jaisor/tesla-api-prometheus-exporter

# Tesla API auth

See https://github.com/adriankumpf/tesla_auth for instructions on how to generate access and refresh tokens
Expand Down
Loading

0 comments on commit f6f9b98

Please sign in to comment.