Skip to content

Commit

Permalink
DM-45522 mobu: app metrics sasquatch config
Browse files Browse the repository at this point in the history
  • Loading branch information
fajpunk committed Oct 9, 2024
1 parent 88a2a5b commit eb0ba48
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion applications/sasquatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Rubin Observatory's telemetry service
| app-metrics.debug | bool | false | Run Telegraf in debug mode. |
| app-metrics.env | list | See `values.yaml` | Telegraf agent enviroment variables |
| app-metrics.envFromSecret | string | `""` | Name of the secret with values to be added to the environment. |
| app-metrics.globalAppConfig | object | `{}` | app-metrics configuration in any environment in which the subchart is enabled. This should stay globally specified here, and it shouldn't be overridden. See [here](https://sasquatch.lsst.io/user-guide/app-metrics.html#configuration) for the structure of this value. |
| app-metrics.globalAppConfig | object | See `values.yaml` | app-metrics configuration in any environment in which the subchart is enabled. This should stay globally specified here, and it shouldn't be overridden. See [here](https://sasquatch.lsst.io/user-guide/app-metrics.html#configuration) for the structure of this value. |
| app-metrics.globalInfluxTags | list | `["service"]` | Keys in an every event sent by any app that should be recorded in InfluxDB as "tags" (vs. "fields"). These will be concatenated with the `influxTags` from `globalAppConfig` |
| app-metrics.image.pullPolicy | string | `"Always"` | Image pull policy |
| app-metrics.image.repo | string | `"docker.io/library/telegraf"` | Telegraf image repository |
Expand Down
2 changes: 1 addition & 1 deletion applications/sasquatch/charts/app-metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Kafka topics, users, and a telegraf connector for metrics events.
| debug | bool | false | Run Telegraf in debug mode. |
| env | list | See `values.yaml` | Telegraf agent enviroment variables |
| envFromSecret | string | `""` | Name of the secret with values to be added to the environment. |
| globalAppConfig | object | `{}` | app-metrics configuration in any environment in which the subchart is enabled. This should stay globally specified here, and it shouldn't be overridden. See [here](https://sasquatch.lsst.io/user-guide/app-metrics.html#configuration) for the structure of this value. |
| globalAppConfig | object | See `values.yaml` | app-metrics configuration in any environment in which the subchart is enabled. This should stay globally specified here, and it shouldn't be overridden. See [here](https://sasquatch.lsst.io/user-guide/app-metrics.html#configuration) for the structure of this value. |
| globalInfluxTags | list | `["service"]` | Keys in an every event sent by any app that should be recorded in InfluxDB as "tags" (vs. "fields"). These will be concatenated with the `influxTags` from `globalAppConfig` |
| image.pullPolicy | string | `"Always"` | Image pull policy |
| image.repo | string | `"docker.io/library/telegraf"` | Telegraf image repository |
Expand Down
7 changes: 6 additions & 1 deletion applications/sasquatch/charts/app-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
# overridden.
# See [here](https://sasquatch.lsst.io/user-guide/app-metrics.html#configuration)
# for the structure of this value.
globalAppConfig: {}
#
# @default -- See `values.yaml`
globalAppConfig:
mobu:
influxTags:
- "type"

# -- A list of applications that will publish metrics events, and the keys that should be ingested into InfluxDB as tags.
# The names should be the same as the app names in Phalanx.
Expand Down
5 changes: 5 additions & 0 deletions applications/sasquatch/values-idfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,8 @@ chronograf:
GENERIC_API_KEY: sub
PUBLIC_URL: https://data-dev.lsst.cloud/
STATUS_FEED_URL: https://raw.githubusercontent.com/lsst-sqre/rsp_broadcast/main/jsonfeeds/idfdev.json

app-metrics:
enabled: true
apps:
- mobu

0 comments on commit eb0ba48

Please sign in to comment.