You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Telegraf is a metrics collection daemon from InfluxData. It contains numerous input and output plugins that allows the user to customize what data they collect and where it is sent. This image is based on the official [drycc base image](https://github.com/drycc/docker-base).
4
+
Telegraf is a metrics collection daemon from InfluxData. It contains numerous input and output plugins that allows the user to customize what data they collect and where it is sent. This image is based on the official [drycc base image](https://github.com/drycc/base).
5
5
6
6
## Configuration
7
7
Telegraf configuration is based largely on a toml file that is passed in when the binary starts. The issue with doing this in a containerized environment is how can you "dynamically" build this file based on values passed into the container at runtime. Therefore, this image relies on a project called [envtpl](https://github.com/arschles/envtpl) to produce the telegraf configuration file. It can take environment variables and through using go templates produce the necessary stanzas in the toml file to start telegraf. Currently, the go template only supports basic if checks and outputting values that have been set.
@@ -29,15 +29,15 @@ The provided `Makefile` has various targets to help support building and publish
29
29
### Environment variables
30
30
There are a few key environment variables you should be aware of when interacting with the `make` targets.
31
31
32
-
*`BUILD_TAG` - The tag provided to the docker image when it is built (defaults to the git-sha)
32
+
*`BUILD_TAG` - The tag provided to the container image when it is built (defaults to the git-sha)
33
33
*`SHORT_NAME` - The name of the image (defaults to `grafana`)
34
34
*`DRYCC_REGISTRY` - This is the registry you are using (default `dockerhub`)
35
35
*`IMAGE_PREFIX` - This is the account for the registry you are using (default `drycc`)
36
36
37
37
### Make targets
38
38
39
-
*`make build` - Build docker image
40
-
*`make push` - Push docker image to a registry
39
+
*`make build` - Build container image
40
+
*`make push` - Push container image to a registry
41
41
*`make upgrade` - Replaces the running grafana instance with a new one
42
42
43
43
The typical workflow will look something like this - `DRYCC_REGISTRY= IMAGE_PREFIX=foouser make build push upgrade``
0 commit comments