The Prometheus monitoring system and time series database.
1049 matches across 10 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .golangci.yml | 161 | # Suggest replacing omitempty with omitzero for struct fields. |
| LOW | cmd/prometheus/reload_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/prometheus/main_upgrade_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/prometheus/scrape_failure_log_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/prometheus/upload_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/prometheus/query_log_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/prometheus/features_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/prometheus/main_unix_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/prometheus/main.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/prometheus/main_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/prometheus/main_test.go | 1001 | require.Zero(t, highestTimestamp) |
| LOW | cmd/promtool/rules_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/query.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/backfill_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/unittest.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/metrics.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/analyze_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/metrics_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/rules.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/unittest_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/sd_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/tsdb_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/archive.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/debug.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/backfill.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/tsdb_posix_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/analyze.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/tsdb.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/sd.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/main.go | 1 | // Copyright The Prometheus Authors |
| LOW | cmd/promtool/main_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | tracing/tracing_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | tracing/tracing.go | 1 | // Copyright The Prometheus Authors |
| LOW | documentation/examples/prometheus-marathon.yml | 21 | # in their app definitions. Example using a port mapping (container or bridge networking): |
| LOW | documentation/examples/prometheus-kubernetes.yml | 1 | # A scrape configuration for running Prometheus on a Kubernetes cluster. |
| LOW | documentation/examples/prometheus-kubernetes.yml | 61 | action: keep |
| LOW | documentation/examples/prometheus-kubernetes.yml | 101 | # retrieve those metrics. |
| LOW | documentation/examples/prometheus-kubernetes.yml | 121 | |
| LOW | documentation/examples/prometheus-kubernetes.yml | 161 | # regex: true |
| LOW | documentation/examples/prometheus-kubernetes.yml | 261 | |
| LOW | documentation/examples/prometheus-kubernetes.yml | 281 | # - source_labels: [__meta_kubernetes_pod_annotation_example_io_metric_path] |
| LOW | documentation/examples/prometheus-dockerswarm.yml | 21 | - source_labels: [__meta_dockerswarm_node_address] |
| LOW | documentation/examples/prometheus-eureka.yml | 21 | # eureka: |
| LOW | documentation/examples/prometheus-eureka.yml | 41 | # Example relabel to customize metric path based on application |
| LOW | documentation/examples/prometheus-eureka.yml | 61 | # |
| LOW | documentation/examples/prometheus-nomad.yml | 1 | # An example scrape configuration for running Prometheus with |
| LOW | …cumentation/examples/custom-sd/adapter/adapter_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | documentation/examples/custom-sd/adapter/adapter.go | 1 | // Copyright The Prometheus Authors |
| LOW | documentation/examples/custom-sd/adapter-usage/main.go | 1 | // Copyright The Prometheus Authors |
| LOW | …xamples/remote_storage/example_write_adapter/server.go | 1 | // Copyright The Prometheus Authors |
| LOW | …examples/remote_storage/remote_storage_adapter/main.go | 1 | // Copyright The Prometheus Authors |
| LOW | …mote_storage/remote_storage_adapter/influxdb/client.go | 1 | // Copyright The Prometheus Authors |
| LOW | …storage/remote_storage_adapter/influxdb/client_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | …orage/remote_storage_adapter/opentsdb/tagvalue_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | …mote_storage/remote_storage_adapter/opentsdb/client.go | 1 | // Copyright The Prometheus Authors |
| LOW | …te_storage/remote_storage_adapter/opentsdb/tagvalue.go | 1 | // Copyright The Prometheus Authors |
| LOW | …te_storage/remote_storage_adapter/opentsdb/tagvalue.go | 21 | ) |
| LOW | …te_storage/remote_storage_adapter/opentsdb/tagvalue.go | 41 | // - If ':' is encountered, it is replaced by '_.'. |
| LOW | …storage/remote_storage_adapter/opentsdb/client_test.go | 1 | // Copyright The Prometheus Authors |
| LOW | …mote_storage/remote_storage_adapter/graphite/escape.go | 1 | // Copyright The Prometheus Authors |
| 951 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tsdb/ooo_head_read.go | 515 | ir.ch.head.metrics.seriesNotFound.Inc() |
| CRITICAL | tsdb/ooo_head_read.go | 528 | getOOOSeriesChunks(s, ir.ch.head.opts.EnableXOR2Encoding.Load(), ir.ch.mint, ir.ch.maxt, 0, ir.ch.lastMmapRef, false, 0 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | cmd/prometheus/scrape_failure_log_test.go | 56 | // Step 1: Set up an initial Prometheus configuration that globally |
| LOW | cmd/prometheus/scrape_failure_log_test.go | 99 | // Step 2: Update the Prometheus configuration to remove the scrape failure |
| LOW | cmd/prometheus/scrape_failure_log_test.go | 133 | // Step 3: Re-add the scrape failure log file setting, but this time under |
| LOW | tsdb/head_append_v2_test.go | 4824 | // Step 1: Establish a series with histogram data |
| LOW | tsdb/head_append_v2_test.go | 4830 | // Step 2: Add a float staleness marker |
| LOW | tsdb/head_test.go | 7627 | // Step 1: Establish a series with histogram data |
| LOW | tsdb/head_test.go | 7633 | // Step 2: Add a float staleness marker |
| LOW | tsdb/head_test.go | 8062 | // Step 1: Create a batch of series and make them stale. |
| LOW | tsdb/head_test.go | 8074 | // Step 2: Truncate stale series. This removes them from the Head and |
| LOW | tsdb/head_test.go | 8086 | // Step 3: Add new series AFTER the truncation. In the WAL, these series |
| LOW | tsdb/head_test.go | 8099 | // Step 4: Close and re-open the Head to trigger WAL replay. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | prompb/io/prometheus/client/decoder.go | 33 | // We leverage the fact those two don't collide. |
| MEDIUM | tsdb/fileutil/direct_io_force.go | 14 | // This allows seamless testing of the Direct I/O writer across all tsdb tests. |
| MEDIUM | web/api/v1/search_test.go | 1099 | // No line should decode as a success trailer. This is robust to a |
| MEDIUM | scrape/st_synthesis.go | 47 | // to leverage native DetectReset and Sub methods. |
| MEDIUM | promql/functions.go | 541 | // extrapolationThreshold below. Essentially, we are assuming a more or |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | documentation/examples/prometheus-dockerswarm.yml | 10 | # Create a job for Docker daemons. |
| MEDIUM | documentation/examples/prometheus-dockerswarm.yml | 25 | # Create a job for Docker Swarm containers. |
| MEDIUM | documentation/examples/prometheus-docker.yml | 9 | # Create a job for Docker daemon. |
| MEDIUM | documentation/examples/prometheus-docker.yml | 18 | # Create a job for Docker Swarm containers. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | cmd/prometheus/main.go | 1229 | // Don't forget to release the reloadReady channel so that waiting blocks can exit normally. |
| MEDIUM | documentation/examples/prometheus-eureka.yml | 19 | # If you are using SpringBoot, you can add metadata using eureka.instance.metadataMap like this: |
| LOW | .github/ISSUE_TEMPLATE/bug_report.yml | 52 | description: Insert relevant configuration here. Don't forget to remove secrets. |
| LOW | .github/ISSUE_TEMPLATE/bug_report.yml | 68 | description: Insert relevant configuration here. Don't forget to remove secrets. |
| MEDIUM | model/textparse/benchmark_test.go | 42 | // For local iteration, feel free to adjust cases/comment out code etc. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | web/ui/react-app/src/pages/graph/HistogramHelpers.ts | 5 | export function calculateDefaultExpBucketWidth( |
| LOW | …/ui/mantine-ui/src/pages/AlertmanagerDiscoveryPage.tsx | 12 | export default function AlertmanagerDiscoveryPage() { |
| LOW | web/ui/mantine-ui/src/pages/query/HistogramHelpers.ts | 3 | export function calculateDefaultExpBucketWidth( |
| LOW | web/ui/module/codemirror-promql/src/complete/hybrid.ts | 143 | function getMetricNameInVectorSelector(tree: SyntaxNode, state: EditorState): string { |
| LOW | web/ui/module/codemirror-promql/src/complete/hybrid.ts | 182 | export function computeEndCompletePosition(node: SyntaxNode, pos: number): number { |
| LOW | web/ui/module/codemirror-promql/src/complete/hybrid.ts | 222 | function computeStartCompleteLabelPositionInLabelMatcherOrInGroupingLabel(node: SyntaxNode, pos: number): number { |
| LOW | web/ui/module/codemirror-promql/src/complete/hybrid.ts | 240 | export function computeStartCompletePosition(state: EditorState, node: SyntaxNode, pos: number): number { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | util/annotations/annotations_test.go | 46 | warnings, infos := annos.AsStrings("lorem ipsum dolor sit amet", 0, 0) |
| LOW | util/annotations/annotations_test.go | 46 | warnings, infos := annos.AsStrings("lorem ipsum dolor sit amet", 0, 0) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | web/api/testhelpers/request.go | 30 | // Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/sync_repo_files.sh | 293 | # Check if a PR is already opened for the branch from the prombot fork. |