This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected virtual ItemModel DoSearch(object value, Plugins.ResolveSitecoreItemEnhancedSettings resolveItemSettings, IItemModelRepository repository, ILogger logger, PipelineContext pipelineContext) | |
{ | |
if (!(GetValueReader(resolveItemSettings.MatchingFieldValueAccessor) is SitecoreItemFieldReader sitecoreItemFieldReader)) | |
{ | |
Log( | |
logger.Error, | |
pipelineContext, | |
"The matching field value accessor is not a valid Sitecore item field reader."); | |
return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IEnumerable<ItemModel> enumerable = repository.Search(new ItemSearchSettings | |
{ | |
SearchFilters = | |
{ | |
new SearchFilter | |
{ | |
FieldName = sitecoreItemFieldReader.FieldName, | |
Value = text | |
}, | |
new SearchFilter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected ItemModel GetBucketItem(object identifierValue, IItemModelRepository repository, | |
Plugins.ResolveSitecoreItemSettings resolveItemSettings, PipelineContext pipelineContext) | |
{ | |
string[] identifierSegments = identifierValue.ToString().Split(new[] { '-' }); | |
var itemPath = string.Join("/", identifierSegments, 0, resolveItemSettings.BucketFolderDepth); | |
var bucketItemPath = resolveItemSettings.BucketRootPath + itemPath + "/" + identifierValue; | |
ItemModel itemModel = repository.Get(bucketItemPath); | |
if (itemModel != null) | |
{ | |
Log( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"read": "2019-12-02T14:24:52.3532632-05:00", | |
"preread": "2019-12-02T14:24:51.3437784-05:00", | |
"pids_stats": {}, | |
"blkio_stats": { | |
"io_service_bytes_recursive": null, | |
"io_serviced_recursive": null, | |
"io_queue_recursive": null, | |
"io_service_time_recursive": null, | |
"io_wait_time_recursive": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.4' | |
networks: | |
prom.local: | |
services: | |
prometheus: | |
image: prom/prometheus | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grafana: | |
image: grafana/grafana | |
ports: | |
- '3000:3000' | |
networks: | |
prom.local: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# global specifies parameters that are valid in all other configuration contexts. | |
global: | |
scrape_interval: 15s # how frequently to scrape targets by default. | |
scrape_timeout: 10s # how long until a scrape request times out. | |
evaluation_interval: 15s # how frequently to evaluate rules | |
# Rule files specifies a list of globs. Rules and alerts are read from all matching files | |
rule_files: | |
# scrape_config section specifies a set of targets and parameters describing how to scrape them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config file version | |
apiVersion: 1 | |
# list of datasources that should be deleted from the database | |
deleteDatasources: | |
- name: Prometheus | |
orgId: 1 | |
# list of datasources to insert/update depending | |
# whats available in the database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: 1 | |
providers: | |
- name: 'Prometheus' | |
orgId: 1 | |
folder: '' | |
type: file | |
disableDeletion: false | |
editable: true | |
options: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.4' | |
networks: | |
prom.local: | |
services: | |
prometheus: | |
image: prom/prometheus | |
volumes: |
OlderNewer