Browse Source

Add symbols for mime_types to the default config

tags/1.1.2
Vsevolod Stakhov 8 years ago
parent
commit
846687c186
2 changed files with 26 additions and 0 deletions
  1. 22
    0
      conf/metrics.conf
  2. 4
    0
      conf/modules.d/mime_types.conf

+ 22
- 0
conf/metrics.conf View File

@@ -1201,4 +1201,26 @@ metric {
description = "DMARC failed";
}
}
group {
name = "mime_types";

symbol {
weight = -0.1;
name = "MIME_GOOD";
description = "Known content-type";
one_shot = true;
}
symbol {
weight = 1.0;
name = "MIME_BAD";
description = "Known bad content-type";
one_shot = true;
}
symbol {
weight = 0.1;
name = "MIME_UNKNOWN";
description = "Missing or unknown content-type";
one_shot = true;
}
}
}

+ 4
- 0
conf/modules.d/mime_types.conf View File

@@ -0,0 +1,4 @@
mime_types {
.include(try=true,priority=1) "${DBDIR}/dynamic/mime_types.conf"
file = "${ETCDIR}/mime_types.inc";
}

Loading…
Cancel
Save