Skip to content

Commit

Permalink
Improve Cosmos DB scraper documentation & validation (#500)
Browse files Browse the repository at this point in the history
Improve Cosmos DB scraper documentation & validation.

Relates to #329
  • Loading branch information
tomkerkhove authored Apr 8, 2019
1 parent 05afaac commit 02aceb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You can declare to scrape Cosmos Db via the `CosmosDb` resource type.
The following fields need to be provided:
- `dbName`- The name of the Cosmos Db to be scraped

All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftcontainerinstancecontainergroups).
All supported metrics are documented in the official [Azure Monitor documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftdocumentdbdatabaseaccounts).

Example:
```yaml
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/metrics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ We also provide a simplified way to configure the following Azure resources:
- [Azure Virtual Machine](virtual-machine)
- [Azure Network Interface](network-interface)
- [Azure Storage Queue](storage-queue)
- [Cosmos DB](cosmosdb)
- [Cosmos DB](cosmos-db)

Want to help out? Create an issue and [contribute a new scraper](https://github.com/tomkerkhove/promitor/blob/master/adding-a-new-scraper.md).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protected override IEnumerable<string> Validate(CosmosDbMetricDefinition cosmosD

if (string.IsNullOrWhiteSpace(cosmosDbMetricDefinition.DbName))
{
yield return "No Cosmos db Name is configured";
yield return "No Cosmos DB name is configured";
}
}
}
Expand Down

0 comments on commit 02aceb5

Please sign in to comment.