MCPcopy Index your code
hub / github.com/cloudflare/pint

github.com/cloudflare/pint @v0.86.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.86.0 ↗ · + Follow
1,683 symbols 6,008 edges 222 files 83 documented · 5%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

nav_exclude: true

pint

pint is a Prometheus rule linter.

You can find online docs on GitHub Pages.

Alternatively you can read raw Markdown documentation here:

Changelog is kept at docs/changelog.md.

Check examples dir for sample config files.

License

Copyright (c) Cloudflare, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Extension points exported contracts — how you extend this code

RuleChecker (Interface)
(no doc) [34 implementers]
internal/checks/base.go
Value (Interface)
(no doc) [55 implementers]
internal/comments/comments.go
CheckSettings (Interface)
(no doc) [8 implementers]
internal/config/check.go
Reporter (Interface)
(no doc) [5 implementers]
internal/reporter/reporter.go
RangeQueryTimes (Interface)
(no doc) [2 implementers]
internal/promapi/range.go
CommandRunner (FuncType)
(no doc)
internal/git/git.go
Visitor (FuncType)
(no doc)
internal/parser/source/source.go
Discoverer (Interface)
(no doc) [3 implementers]
internal/config/discovery.go

Core symbols most depended-on inside this repo

String
called by 388
internal/checks/base.go
MustTemplatedRegexp
called by 192
internal/checks/template.go
Run
called by 181
internal/promapi/prometheus.go
Lines
called by 124
internal/parser/models.go
Name
called by 110
internal/parser/models.go
NewPathFilter
called by 79
internal/git/filter.go
printNode
called by 66
cmd/pint/parse.go
Query
called by 63
internal/parser/promql.go

Shape

Function 661
Method 638
Struct 332
TypeAlias 30
FuncType 12
Interface 10

Languages

Go100%

Modules by API surface

internal/parser/source/source.go65 symbols
internal/checks/base_test.go55 symbols
internal/parser/models.go40 symbols
internal/reporter/bitbucket.go37 symbols
internal/promapi/failover.go34 symbols
internal/checks/promql_series.go34 symbols
internal/reporter/gitlab.go32 symbols
internal/git/changes.go30 symbols
internal/checks/alerts_template.go30 symbols
internal/promapi/prometheus.go29 symbols
internal/reporter/comments.go26 symbols
internal/comments/comments.go26 symbols

For agents

$ claude mcp add pint \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact