Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/.vscode
/sql_exporter
/sql_exporter.yml
.idea/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Use the `-help` flag to get help information.
$ ./sql_exporter -help
Usage of ./sql_exporter:
-config.file string
SQL Exporter configuration file name. (default "sql_exporter.yml")
SQL Exporter configuration file path. (default "sql_exporter.yml")
-web.listen-address string
Address to listen on for web interface and telemetry. (default ":9399")
-web.metrics-path string
Expand Down
6 changes: 3 additions & 3 deletions documentation/sql_exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ collectors:
# The result columns conceptually fall into two categories:
# * zero or more key columns: their values will be directly mapped to labels of the same name;
# * one or more value columns:
# * if exactly one value column, the column name name is ignored and its value becomes the metric value
# * if exactly one value column, the column name is ignored and its value becomes the metric value
# * with multiple value columns, a `value_label` must be defined; the column name will populate this label and
# the column value will popilate the metric value.
# the column value will populate the metric value.
metrics:
# The metric name, type and help text, as exported to /metrics.
- metric_name: mssql_log_growths
Expand Down Expand Up @@ -97,7 +97,7 @@ collectors:
#
# Required when multiple value columns are configured.
value_label: operation
# Multiple value columns: their name is recorded in the label defined by `attrubute_label` (e.g.
# Multiple value columns: their name is recorded in the label defined by `attribute_label` (e.g.
# `operation="io_stall_read_ms"`).
values:
- io_stall_read
Expand Down