Application metrics configuration#
Phalanx applications can use Sasquatch to publish metrics events.
This guide describes how to configure application metrics in Sasquatch to create a Kafka user and topic, and a Telegraf connector to write to the lsst.square.metrics database in Sasquatch.
The messages are expected to be in Avro format, and schemas are expected to be in the Schema Registry for any messages that are encoded with a schema ID.
See connect to kafka to publish metrics to Sasquatch, or if you have a Safir app, you can use the Safir metrics helpers to streamline this integration.
Phalanx applications that want to publish metrics events need to:
Set
app-metrics.enabledtotruein every Sasquatch environment values files where app metrics should be enabledSet the app name to the
app-metrics.appslist in the Sasquatch environment values fileSet an entry to the
globalAppConfigdict in the app-metricsvalues.yamlfile in Phalanx.
This entry should be structured like this:
globalAppConfig:
# App name
some-app: # App name
# An array of events keys that will be tags (vs. fields) in InfluxDB
influxTags: [ "foo", "bar" ]
some-other-app:
influxTags: [ "foo", "bar", "baz" ]
This will:
Provision a Kafka topic to which the app can publish events
Provision a Kafka user with access to publish messages to that topic
Update the
sasquatch-telegraf-app-metricsTelegraf instance to: