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
* Update profiler and configuration to serve on a non-default mux
* Add a healthcheck handler, configuration, and HTTP endpoint
* Update example config and README with healthcheck configuration
Copy file name to clipboardexpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,8 @@ line options.
111
111
| DATASET_FILTER | --dataset-filter | BigQuery label to filter datasets for metric collection |
112
112
| GCP_PROJECT_ID | --gcp-project-id | (Required) The Google Cloud project containing the BigQuery tables to retrieve metrics from |
113
113
| GOOGLE_APPLICATION_CREDENTIALS || File containing service account details to authenticate to Google Cloud using |
114
+
| HEALTHCHECK_ENABLED | --healthcheck.enabled | Whether to enable the health check endpoint at /health. Defaults to *false*|
115
+
| HEALTHCHECK_PORT | --healthcheck.port | The port to run the health check server on. Defaults to *8080*|
114
116
| LOG_LEVEL || The logging level (e.g. trace, debug, info, warn, error). Defaults to *info*|
115
117
| METRIC_INTERVAL | --metric-interval | The interval between metric collection rounds. Must contain a unit and valid units are "ns", "us" (or "µs"), "ms", "s", "m", "h". Defaults to *30s*|
116
118
| METRIC_PREFIX | --metric-prefix | The prefix for the metric names exported to Datadog. Defaults to *custom.gcp.bigquery*|
flags.String("metric-prefix", DefaultMetricPrefix, fmt.Sprintf("The prefix for the metrics names exported to Datadog (Default %s)", DefaultMetricPrefix))
177
202
flags.Duration("metric-interval", defInterval, fmt.Sprintf("The interval between metrics submissions (Default %s)", DefaultMetricInterval))
178
203
flags.StringSlice("metric-tags", []string{}, "Comma-delimited list of tags to attach to metrics")
179
-
flags.Bool("enable-profiler", false, "Enables the profiler")
204
+
flags.Bool("profiler.enabled", false, "Enables the profiler")
205
+
flags.Int("profiler.port", 6060, "The port on which to run the profiler server")
206
+
flags.Bool("healthcheck.enabled", false, "Enables the health check endpoint")
207
+
flags.Int("healthcheck.port", 8080, "The port on which to run the server providing the health check endpoint")
0 commit comments