sensu / catalog

Monitoring as code for Sensu Go. "There's a template for that!"
8 stars 4 forks source link

Enhancement: Use secret for sumologic url in built in sumologic metrics handler #226

Closed jspaleta closed 2 years ago

jspaleta commented 2 years ago

Talked with engineering. the built in sumologic metrics handler resource type does have support for url using env_var backed secrets.

So it should be possible to update the integration to use the same workflow as the slack integration's secret url. Here's an example I was given, but haven't tested yet.

type: SumoLogicMetricsHandler
api_version: pipeline/v1
metadata:
name: demo-sumo-handler
namespace: default
spec:
url: https://long-events.sumologic.net/receiver/v1/http/$SUMO_HTTP_KEY
secrets:
- name: SUMO_HTTP_KEY
secret: sumo_http_key
max_connections: 10
timeout: 30s